Датчик SHT1x: различия между версиями
(Отметить эту версию для перевода) |
м |
||
(не показана 1 промежуточная версия этого же участника) | |||
Строка 1: | Строка 1: | ||
</languages> | |||
<translate> | <translate> | ||
Датчики Sensirion SHT1x (SHT10, SHT11, SHT15). | Датчики Sensirion SHT1x (SHT10, SHT11, SHT15). | ||
Пакет: wb-mqtt-sht1x | Пакет: wb-mqtt-sht1x | ||
Исходные коды: https://github.com/contactless/wb-mqtt-sht1x | Исходные коды: https://github.com/contactless/wb-mqtt-sht1x | ||
В автозагрузке демон wb-mqtt-sht1x, отправляющий результаты в MQTT: | В автозагрузке демон wb-mqtt-sht1x, отправляющий результаты в MQTT: | ||
<pre> | <pre> | ||
service wb-mqtt-sht1x stop | service wb-mqtt-sht1x stop | ||
Строка 18: | Строка 14: | ||
</pre> | </pre> | ||
Конфиг демона: | Конфиг демона: | ||
<pre> | <pre> | ||
/etc/wb-mqtt-sht1x.conf | /etc/wb-mqtt-sht1x.conf | ||
</pre> | </pre> | ||
Адреса в MQTT: | Адреса в MQTT: | ||
<pre> | <pre> | ||
Default MQTT topics are: | Default MQTT topics are: | ||
/devices/sht1x/meta/name SHT1x Sensor | /devices/sht1x/meta/name SHT1x Sensor | ||
/devices/sht1x/controls/temperature/meta/type temperature | /devices/sht1x/controls/temperature/meta/type temperature | ||
/devices/sht1x/controls/humidity/meta/type rel_humidity | /devices/sht1x/controls/humidity/meta/type rel_humidity | ||
Sensor data: | Sensor data: | ||
/devices/sht1x/controls/temperature | /devices/sht1x/controls/temperature | ||
/devices/sht1x/controls/humidity | /devices/sht1x/controls/humidity | ||
Example: | Example: | ||
$ mosquitto_sub -h 192.168.0.102 -t '/devices/sht1x/#' -v | $ mosquitto_sub -h 192.168.0.102 -t '/devices/sht1x/#' -v | ||
/devices/sht1x/controls/temperature 28.5 | /devices/sht1x/controls/temperature 28.5 | ||
Строка 57: | Строка 44: | ||
</pre> | </pre> | ||
Настройка в Zabbix: | Настройка в Zabbix: | ||
<pre> | <pre> | ||
mqtt.value[/devices/sht1x/controls/humidity] | mqtt.value[/devices/sht1x/controls/humidity] |
Версия 19:43, 11 июня 2019
</languages> Датчики Sensirion SHT1x (SHT10, SHT11, SHT15).
Пакет: wb-mqtt-sht1x Исходные коды: https://github.com/contactless/wb-mqtt-sht1x
В автозагрузке демон wb-mqtt-sht1x, отправляющий результаты в MQTT:
service wb-mqtt-sht1x stop service wb-mqtt-sht1x start service wb-mqtt-sht1x status
Конфиг демона:
/etc/wb-mqtt-sht1x.conf
Адреса в MQTT:
Default MQTT topics are: /devices/sht1x/meta/name SHT1x Sensor /devices/sht1x/controls/temperature/meta/type temperature /devices/sht1x/controls/humidity/meta/type rel_humidity Sensor data: /devices/sht1x/controls/temperature /devices/sht1x/controls/humidity Example: $ mosquitto_sub -h 192.168.0.102 -t '/devices/sht1x/#' -v /devices/sht1x/controls/temperature 28.5 /devices/sht1x/controls/temperature/meta/type temperature /devices/sht1x/controls/humidity 31.7 /devices/sht1x/controls/humidity/meta/type rel_humidity /devices/sht1x/meta/name SHT1x Sensor
Настройка в Zabbix:
mqtt.value[/devices/sht1x/controls/humidity] mqtt.value[/devices/sht1x/controls/temperature]