User Tools

Site Tools


ee:nodered

This is an old revision of the document!


Node-red und Mosquitto für MQTT auf den Raspberry Pi installieren: https://www.youtube.com/watch?v=heyH0hgENF8

WiFi - Relais mit Node-red über MQTT schalten: https://www.youtube.com/watch?v=aHiAVTuKL7M

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install curl

Node-Red installieren:

sudo apt-get install build-essential bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered) Mosquito installieren:

sudo apt install mosquitto mosquitto-clients sudo systemctl enable mosquitto sudo systemctl status mosquitto Mosquito testen

Subscribe im Terminal 1 mosquitto_sub -h localhost -t “test/message” Publish im Terminal 2 mosquitto_pub -h localhost -t “test/message” -m “Hello, world”

Code für ESP https://github.com/Edistechlab/Relais-per-MQTT-schalten/blob/master/MQTT_Output.ino

ee/nodered.1603137546.txt.gz · Last modified: 2021/03/08 13:39 (external edit)