• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT external Broker (not local) configuration
#1
Hello everybody,

I would like to configure an external broker but unfortunately I have not yet found any information. I would like to send all information from the local pilight mqtt to an external mqtt broker (openhab2 embedded). 
I changed mqtt.connect("127.0.0.1", 1883); at /usr/local/lib/pilight/hardware/mqtt.lua with IP from external mqtt broker but that doesn't work.
Can someone help me ?

br
Nicky
 
Reply
#2
You need to adapt the mqtt.lua with an additional connection to your broker so it forwards all messages to your external broker.
 
Reply
#3
(06-02-2020, 06:45 AM)curlymo Wrote: You need to adapt the mqtt.lua with an additional connection to your broker so it forwards all messages to your external broker.

Thanks for fast feedback.
Did you have an example for me ?

br
Nicky
 
Reply
#4
No, or else i would've implemented it Smile
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  MQTT cannot be disabled on nightly image ayeyebrazov 5 343 05-01-2020, 03:11 PM
Last Post: ayeyebrazov
  MQTT subscribe to a weather station? peteratoce 5 379 04-08-2020, 07:17 AM
Last Post: curlymo
  MQTT subscribe/publish in pilight? cactli 9 4,413 01-02-2018, 05:05 PM
Last Post: xelarep
  Configuration example with program and ACTION to control MPD tomk 0 805 09-12-2017, 07:02 PM
Last Post: tomk
  Time to handle configuration edits properly amahlaka 4 1,486 03-19-2017, 04:26 PM
Last Post: pilino1234
  Nexa doorbell (arctech) device configuration m0rph13 2 1,634 06-09-2016, 07:05 AM
Last Post: m0rph13
  configuration of pilight v7 noxx 28 11,275 07-07-2015, 08:43 PM
Last Post: diman87
  [Questions]Some issues with configuration temp 2 2,015 06-14-2015, 06:39 PM
Last Post: pilino1234
  Big configuration & API rewrite curlymo 53 21,092 01-20-2015, 01:09 PM
Last Post: wo_rasp

Forum Jump:


Browsing: 1 Guest(s)