MQTT on another server
Posted: Thursday 03 March 2016 20:17
Just started to play around with MQTT which I installed on another Raspberry Pi Server so I could create a series of rules for the outside to DMZ.
I want to now tie this into Domoticz. At the moment I am just using MQTT to track phone locations and update stats on battery and lon/lat
Now how can I get this data into into a dummy switch... At the moment its just formated in the form from the device {_type,:lon:12.345,lat:-54.66,etc,etc,bat:12,etc,etc}
Can I make a json call from the MQTT server to the Domoticz server or should I pass the MQTT and send it out to MQTT on domoticz server and set that up? or can I set domoticz up as a client MQTT and so it pulls the data directly? A bit new to this and how domoticz gets its data if its not running the mqtt service.
I cannot find examples where data is pushed to Domoticz from another MQTT server or similar...Or what the best method is.
Thank you for any help.
I want to now tie this into Domoticz. At the moment I am just using MQTT to track phone locations and update stats on battery and lon/lat
Now how can I get this data into into a dummy switch... At the moment its just formated in the form from the device {_type,:lon:12.345,lat:-54.66,etc,etc,bat:12,etc,etc}
Can I make a json call from the MQTT server to the Domoticz server or should I pass the MQTT and send it out to MQTT on domoticz server and set that up? or can I set domoticz up as a client MQTT and so it pulls the data directly? A bit new to this and how domoticz gets its data if its not running the mqtt service.
I cannot find examples where data is pushed to Domoticz from another MQTT server or similar...Or what the best method is.
Thank you for any help.