Raspberry Pi B1+
- Started with a fresh copy of Raspian Jessie Lite from https://www.raspberrypi.org/downloads/raspbian/
- Burned to 4GB SD card using https://etcher.io/
- Followed https://randomnerdtutorials.com/getting-started-with-node-red-on-raspberry-pi/
👍
Send number on click
- Followed https://learn.adafruit.com/adafruit-io/mqtt-api#connection-details and created
[{"id":"c865e6b4.8ad0c8","type":"inject","z":"e068acb9.a7ca9","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"x":137.5,"y":92,"wires":[["ede9f133.d5256","a94e654f.77a0a8"]]},{"id":"ede9f133.d5256","type":"debug","z":"e068acb9.a7ca9","name":"","active":true,"console":"false","complete":"false","x":375.5,"y":109,"wires":[]},{"id":"a94e654f.77a0a8","type":"mqtt out","z":"e068acb9.a7ca9","name":"Adafruit.IO","topic":"chrowe/feeds/red","qos":"0","retain":"","broker":"8a62cdaf.eb581","x":370.5,"y":187,"wires":[]},{"id":"8a62cdaf.eb581","type":"mqtt-broker","z":"","broker":"io.adafruit.com","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]
For some reason importing this seems to cause problems though. I had to build it by hand and it worked fine. 2. See https://io.adafruit.com/chrowe/feeds/red for data sent
👍
There doesn't seem to be a single clear way to do this
- Install npm
sudo apt install npm
- Install https://www.npmjs.com/package/node-red-contrib-1wire
sudo npm install -g node-red-contrib-1wire
https://nodered.org/docs/getting-started/adding-nodes - Restart node-red https://nodered.org/docs/hardware/raspberrypi
node-red-stop
node-red-start
This seems to leave you in the start command butcontrol-C
seems to not stop Node Red - In Node Red http://10.0.1.13:1880/# go to Hamburger menu > Manage palette.
- Select install tab and search for "1wire"
- Click "Install"
- Find "1 wire" node under Functions
👍
[{"id":"70699b9a.97fe84","type":"inject","z":"2663e24b.c2337e","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"10","crontab":"","once":false,"x":97.5,"y":137,"wires":[["df598541.6c5668","57fb7fc2.f52e5"]]}]
See https://io.adafruit.com/chrowe/dashboards/solar-hot-water for output
👍
No
wpa_supplicant.conf
was generated by https://github.com/pirate-sh/ip/blob/master/lib/ReconfigureWifi.js withpsk
populated