.timeout = 660,
.is_string = true,
},
+ {
+ .metric = "mill_temp,where=horni",
+ .value_name = "t",
+ .topic = "mill/thermostat/horni",
+ },
+ {
+ .metric = "mill_temp,where=dolni",
+ .value_name = "t",
+ .topic = "mill/thermostat/dolni",
+ },
+ {
+ .metric = "mill_temp,where=velky",
+ .value_name = "t",
+ .topic = "mill/thermostat/velky",
+ },
+ {
+ .metric = "mill_temp,where=kuchyn",
+ .value_name = "t",
+ .topic = "mill/thermostat/kuchyn",
+ },
};
/*** MQTT ***/
msg(L_DEBUG, "MQTT: Connection established, subscribing");
if (mosquitto_subscribe(mosq, NULL, "burrow/#", 1) != MOSQ_ERR_SUCCESS)
die("Mosquitto: subscribe failed");
+ if (mosquitto_subscribe(mosq, NULL, "mill/#", 1) != MOSQ_ERR_SUCCESS)
+ die("Mosquitto: subscribe failed");
mqtt_publish("status/influx", "ok");
}