This flow was submitted before accounts existed, so nobody owns it yet. If you submitted it, open the edit link you were given — it still works — and you can attach the flow to an account from there. There is no deadline, and attaching it retires the link for good.
Buienradar Temperature
Reads the current temperature from Buienradar (dutch weather services) and displays it on the awtrix matrix. Based on the weather condition a matching icon is displayed.
| System | Node-RED |
|---|---|
| Firmware | AWTRIX 3 |
| Topic | Smarthome |
| Built by | RobG |
| File | LjDKBo9Eon3P.json · 3.2 KB |
| Icons | 14 |
| Published | 10 May 2023 · updated 10 May 2023 |
| Downloads | 25 |
This is a combination between a Nodered flow and an Homeassistant Sensor. It will show the temperature and a matching icon depending on the weather conditions.
Prerequisites
- Home Assistant
- Be able to read Home Assistant sensors from [nodered] (https://flows.nodered.org/node/node-red-contrib-home-assistant-websocket).
- [Buienradar integration] (https://www.home-assistant.io/integrations/buienradar/) is installed and working in Home Assistant.
- weather.buienradar sensor is available in Home Assistant.
Setup
- Make sure all the prerequisites are filled.
- Import the flow.
- Import the assets in awtrix.
- Edit the MQTT out node with your own awtrix topic and MQTT broker server
Customization
Feel free to edit
- The inject node (default it retrieves the data every minute from Home Assistant)
- The function node (Create Message), in the msg.payload part the message is setup.
LjDKBo9Eon3P.json
[{"id":"f78f1d974047d04d","type":"group","z":"e80c6f6f5e6792b3","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["813cb2a57b96b72f","3d3096e291bd5908","fe975b9e6903fe07","e37e25b68266789a","39ce1c9804e57833"],"x":54,"y":679,"w":892,"h":122},{"id":"813cb2a57b96b72f","type":"api-current-state","z":"e80c6f6f5e6792b3","g":"f78f1d974047d04d","name":"Get Weather","server":"d97797a8.1c4178","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"weather.buienradar","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":310,"y":760,"wires":[["fe975b9e6903fe07"]]},{"id":"3d3096e291bd5908","type":"inject","z":"e80c6f6f5e6792b3","g":"f78f1d974047d04d","name":"inject","props":[],"repeat":"60","crontab":"","once":true,"onceDelay":"10","topic":"","x":150,"y":760,"wires":[["813cb2a57b96b72f"]]},{"id":"fe975b9e6903fe07","type":"function","z":"e80c6f6f5e6792b3","g":"f78f1d974047d04d","name":"Create Message","func":"var icon = 'w-' + msg.payload;\nvar temp = msg.data.attributes.temperature;\nvar temp_unit = msg.data.attributes.temperature_unit;\n\nmsg.payload = { \n \"text\": temp + ' ' + temp_unit,\n \"icon\": icon, \n \"duration\": 10,\n \"repeat\": 2, \n \"pushIcon\": 0 \n};\n\nnode.status({ fill: 'green', shape: 'ring', text: 'icon:' + ' ' + icon + ' ' + temp + ' ' + temp_unit});\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":760,"wires":[["e37e25b68266789a"]]},{"id":"e37e25b68266789a","type":"mqtt out","z":"e80c6f6f5e6792b3","g":"f78f1d974047d04d","name":"","topic":"awtrix_id/custom/buienradar","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"11ca2309265fca75","x":800,"y":760,"wires":[]},{"id":"39ce1c9804e57833","type":"comment","z":"e80c6f6f5e6792b3","g":"f78f1d974047d04d","name":"Buienradar","info":"","x":140,"y":720,"wires":[]},{"id":"d97797a8.1c4178","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true},{"id":"11ca2309265fca75","type":"mqtt-broker","name":"","broker":"homeassistant","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]
These icons belong on the device, in /ICONS. Each one is at
most 32×8
pixels — shown here magnified, at their real proportions.
8×8 px
8×8 px
8×8 px
8×8 px
8×8 px
8×8 px
8×8 px
8×8 px
8×8 px
8×8 px
8×8 px
8×8 px
8×8 px
8×8 px