Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
sonoff [24.07.2018 09:17] – [Making the installation permanent] Pascal Suter | sonoff [08.12.2018 09:57] – [Rules Engine - node-red] Pascal Suter | ||
---|---|---|---|
Line 130: | Line 130: | ||
In order to turn the lights on in a room, you can publish to the topic '' | In order to turn the lights on in a room, you can publish to the topic '' | ||
mosquitto_pub -h mqtt.psuter.ch -u sonoffs -P sonoff -t set/ | mosquitto_pub -h mqtt.psuter.ch -u sonoffs -P sonoff -t set/ | ||
+ | |||
===== Rules Engine - node-red ===== | ===== Rules Engine - node-red ===== | ||
Line 159: | Line 160: | ||
and here is what it looks like: | and here is what it looks like: | ||
{{ : | {{ : | ||
+ | ==== a word about retention ==== | ||
+ | it seems node-red sets the retention flag of mqtt by default. I learned this when i used it together with the mqtt-dss-connector: | ||
+ | |||
===== Making the installation permanent ===== | ===== Making the installation permanent ===== | ||
this might be different in your setup, but I would like to install the npm modules globally and then run them as non-root users through a systemd script to make sure they are auto-startet as soon as my system boots. | this might be different in your setup, but I would like to install the npm modules globally and then run them as non-root users through a systemd script to make sure they are auto-startet as soon as my system boots. |