Node-red auf einem Raspberry Pi

Hier findet ihr die begleitende Anleitung, wie man auf einem Raspberry Pi, Node-red und Mosquito installiert.

wpa_supplicant.conf - Datei

country=CH
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1
network={ssid="DeineSSID" psk="DeinPasswort" key_mgmt=WPA-PSK}

!!! Anmerkung:

In manchen Fällen kann es vorkommen, dass die “ ” bei ssid und psk entfernt werden müssen.

Im Terminal:

ssh pi@raspberrypi.local passwd

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”

Hostname ändern:

Wenn der Name im Netzwerk nicht mehr Raspberry sondern ein eigener gewählt werden will.

sudo nano /etc/hostname
–> CNTRL + X. – Y — Enter

sudo nano /etc/hosts

Raspberry Pi:

* https://amzn.to/2J3w8j4Raspberry Pi 3 Starterset

* https://amzn.to/2Uo9tDuRaspberry Pi 3

* https://amzn.to/3djpovzRaspberry Pi 4 -1GB Kit

* https://amzn.to/2QDoiBc –  Raspberry Pi 4 -1GB

* https://amzn.to/2WAgkMORaspberry Pi 4 -2GB Kit

* https://amzn.to/2Up5EhjRaspberry Pi 4 – 2GB

* https://amzn.to/2wr0rxDRaspberry Pi 4 -4GB Kit

* https://amzn.to/2UobpfeRaspberry Pi 4 – 4GB

Micro SD Speicherkarten:

* https://amzn.to/399tX8cSanDisk Ultra 16GB

* https://amzn.to/2UrI5Ex SanDisk Ultra 32GB

* https://amzn.to/3dmbo40SanDisk Ultra 64GB

* https://amzn.to/2J7rFfvSanDisk Ultra 128GB

* https://amzn.to/2U68eKaSanDisk Ultra 256GB

* https://amzn.to/2U68fxISanDisk Ultra 512GB

Netzteile:

* https://amzn.to/3beWY3V – 2er-Pack USB Ladegerät 5V/2A

* https://amzn.to/398WzP9 – Raspberry Pi 4 Netzteil, USB-C, 5.1V, 3A

* https://amzn.to/2wsS8Bh  – HomeSpot Netzteil 3A/5V inkl. 1,5M Micro USB Kabel 

USB Kabel:

* https://amzn.to/2y01THNUSB A auf Micro USB  Kabel 0.5m

* https://amzn.to/2xkgqgQ – USB auf Mini USB Kabel 0.5m

* https://amzn.to/2QBxCp7 – USB A zu USB B Kabel 0.5m

 

Alle Links mit “*” sind Amazon Affiliate Links. Ich bekomme bei einer Bestellung einen kleinen Teil vom Umsatz, ohne das euch dafür Mehrkosten entstehen.

★☆★ Wenn ihr den Kanal unterstützen wollt über ★☆★

oder über

Twint Spenden Code