JsBergbau / MiTemperature2

Read the values of the Xiaomi Mi Bluetooth Temperature sensor 2 including custom encrypted format.
705 stars 162 forks source link

Question: Multiple sensors/influxdb? #117

Closed hancockks closed 2 years ago

hancockks commented 2 years ago

Looking at sendToInflux.sh, I'm not sure whether we can combine this with the sensors.ini file to send multiple sensors to influx at the same time or whether one has to run the process in parallel, once for each sensor?

JsBergbau commented 2 years ago

Hallo hancockks,

Multiple sensor is no problem, since the sensorname comes from sensors.ini and works as tag for the sensors. Just have a look at the callback file https://github.com/JsBergbau/MiTemperature2/blob/master/sendToInflux.sh

hancockks commented 2 years ago

Ah, I think I get it. The callback will call sendToInflux.sh once for each sensor? However, I don't want to use the skip identical if using passive mode? (I'm using the ATC firmware)

JsBergbau commented 2 years ago

The callback will call sendToInflux.sh once for each sensor?

Exactly.

Using skip identical option is indepent of the callback.