OpenWeatherMap
Weather App with data from OpenWeatherMap
About this flow
| System | Node-RED |
|---|---|
| AWTRIX version | AWTRIX 3 |
| Topic | Miscellaneous |
| Built by | Sinowine |
| File | R0ZVojLY5rGl.json · 16.7 KB |
| Icons | 10 |
| Published | 10 Aug 2023 · updated 30 Aug 2023 |
| Downloads | 74 |
Is this your flow?
If you created this flow, open your saved edit link to add it to your account. You can then manage it whenever you sign in. Adding it to your account replaces the edit link.
Flow description
This flow displays an icon and the current temperature + humidity for your configured location as a custom app on your Awtrix Light.
Dependency:
node-red-node-openweathermap
Configuration:
Enter your OpenWeatherMap API key, set your location and change the IP-Address in the "http-request"-Node to match with your Awtrix Light IP-Address.
This app comes with a separately possibility to call the data manually into a debug node to see the incoming data.
Feel free to modify this flow, icons, message-styles etc. in the way you like.
R0ZVojLY5rGl.json
[
{
"id": "9f11e2fee46b34a0",
"type": "group",
"z": "f1bd767b.b633f8",
"name": "App: Wetter",
"style": {
"label": true
},
"nodes": [
"3df88e12c3843524",
"cf0e08c4c83a90c6",
"b86469aa1c077b4c",
"b2e2846b5558d163",
"b39d729971d0536a",
"e901ea88957b162b",
"57756e66374021b1",
"09b6e03f3ab9eb5f",
"0e1b6808ba2a3c93",
"03523920b4f2be05",
"fb9051e590bb18d4",
"6db604f09964cd8f",
"8ce842145ee63a7f",
"a077ca8004df6487",
"9134a80df583952b",
"3ad113775b33dcf9",
"f8fd503e906f0f76",
"2c29123af68b49b9",
"0680be6c976c55de",
"9dcec8e6a0021c6f",
"17a5a0c7ac0ee338"
],
"x": 274,
"y": 1959,
"w": 1252,
"h": 662
},
{
"id": "3df88e12c3843524",
"type": "openweathermap in",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Wetter: Berlin",
"wtype": "current",
"lon": "",
"lat": "",
"city": "Berlin",
"country": "Deutschland",
"language": "de",
"credentials": {
"apikey": ""
},
"x": 390,
"y": 2220,
"wires": [
[
"b86469aa1c077b4c",
"0680be6c976c55de"
]
]
},
{
"id": "cf0e08c4c83a90c6",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Klarer Himmel (Tag)",
"func": "var temperature = msg.payload.tempc;\nvar humidity = msg.payload.humidity;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 2282,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 940,
"y": 2000,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "b86469aa1c077b4c",
"type": "switch",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Wetterlage",
"property": "payload.icon",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "01d",
"vt": "str"
},
{
"t": "eq",
"v": "01n",
"vt": "str"
},
{
"t": "eq",
"v": "02d",
"vt": "str"
},
{
"t": "eq",
"v": "02n",
"vt": "str"
},
{
"t": "eq",
"v": "03d",
"vt": "str"
},
{
"t": "eq",
"v": "03n",
"vt": "str"
},
{
"t": "eq",
"v": "04d",
"vt": "str"
},
{
"t": "eq",
"v": "04n",
"vt": "str"
},
{
"t": "eq",
"v": "09d",
"vt": "str"
},
{
"t": "eq",
"v": "09n",
"vt": "str"
},
{
"t": "eq",
"v": "10d",
"vt": "str"
},
{
"t": "eq",
"v": "10n",
"vt": "str"
},
{
"t": "eq",
"v": "11d",
"vt": "str"
},
{
"t": "eq",
"v": "11n",
"vt": "str"
},
{
"t": "eq",
"v": "13d",
"vt": "str"
},
{
"t": "eq",
"v": "13n",
"vt": "str"
},
{
"t": "eq",
"v": "50d",
"vt": "str"
},
{
"t": "eq",
"v": "50n",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 18,
"x": 650,
"y": 2220,
"wires": [
[
"cf0e08c4c83a90c6"
],
[
"b2e2846b5558d163"
],
[
"e901ea88957b162b"
],
[
"b39d729971d0536a"
],
[
"09b6e03f3ab9eb5f"
],
[
"57756e66374021b1"
],
[
"0e1b6808ba2a3c93"
],
[
"0e1b6808ba2a3c93"
],
[
"03523920b4f2be05"
],
[
"03523920b4f2be05"
],
[
"fb9051e590bb18d4"
],
[
"fb9051e590bb18d4"
],
[
"6db604f09964cd8f"
],
[
"6db604f09964cd8f"
],
[
"8ce842145ee63a7f"
],
[
"8ce842145ee63a7f"
],
[
"a077ca8004df6487"
],
[
"a077ca8004df6487"
]
]
},
{
"id": "b2e2846b5558d163",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Klarer Himmel (Nacht)",
"func": "var temperature = msg.payload.tempc;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 12181,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 950,
"y": 2040,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "b39d729971d0536a",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Leicht Bewölkt (Nacht)",
"func": "var temperature = msg.payload.tempc;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 53384,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 950,
"y": 2120,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "e901ea88957b162b",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Leicht Bewölkt (Tag)",
"func": "var temperature = msg.payload.tempc;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 53802,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 940,
"y": 2080,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "57756e66374021b1",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Bewölkt (Nacht)",
"func": "var temperature = msg.payload.tempc;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 53384,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 930,
"y": 2200,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "09b6e03f3ab9eb5f",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Bewölkt (Tag)",
"func": "var temperature = msg.payload.tempc;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 53802,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 920,
"y": 2160,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "0e1b6808ba2a3c93",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Stark Bewölkt (Tag/Nacht)",
"func": "var temperature = msg.payload.tempc;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 53384,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 960,
"y": 2240,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "03523920b4f2be05",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Regenschauer (Tag/Nacht)",
"func": "var temperature = msg.payload.tempc;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 49300,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 960,
"y": 2280,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "fb9051e590bb18d4",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Regen (Tag/Nacht)",
"func": "var temperature = msg.payload.tempc;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 2284,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 940,
"y": 2320,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "6db604f09964cd8f",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Gewitter (Tag/Nacht)",
"func": "var temperature = msg.payload.tempc;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 49299,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 940,
"y": 2360,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "8ce842145ee63a7f",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Schnee (Tag/Nacht)",
"func": "var temperature = msg.payload.tempc;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 2289,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 940,
"y": 2400,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "a077ca8004df6487",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Nebel (Tag/Nacht)",
"func": "var temperature = msg.payload.tempc;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 17055,\n \"text\": temperature + \"°\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 940,
"y": 2440,
"wires": [
[
"9dcec8e6a0021c6f"
]
]
},
{
"id": "9134a80df583952b",
"type": "debug",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Wetterdaten",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 850,
"y": 2580,
"wires": []
},
{
"id": "3ad113775b33dcf9",
"type": "openweathermap",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": " Wetter: Berlin",
"wtype": "current",
"lon": "",
"lat": "",
"city": "Berlin",
"country": "Deutschland",
"language": "de",
"credentials": {
"apikey": ""
},
"x": 600,
"y": 2580,
"wires": [
[
"9134a80df583952b"
]
]
},
{
"id": "f8fd503e906f0f76",
"type": "inject",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Manueller Abruf",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 400,
"y": 2580,
"wires": [
[
"3ad113775b33dcf9"
]
]
},
{
"id": "2c29123af68b49b9",
"type": "function",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "Awtrix: Luftfeuchtigkeit",
"func": "var humidity = msg.payload.humidity;\n\nmsg.payload = {\n \"repeat\": 1,\n \"icon\": 2423,\n \"text\": humidity + \"%\"\n };\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 930,
"y": 2500,
"wires": [
[
"17a5a0c7ac0ee338"
]
]
},
{
"id": "0680be6c976c55de",
"type": "junction",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"x": 540,
"y": 2500,
"wires": [
[
"2c29123af68b49b9"
]
]
},
{
"id": "9dcec8e6a0021c6f",
"type": "http request",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "AwtrixUlanzi/CustomApp",
"method": "POST",
"ret": "obj",
"paytoqs": "ignore",
"url": "http://192.168.178.23/api/custom?name=wetter",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [
{
"keyType": "Content-Type",
"keyValue": "",
"valueType": "other",
"valueValue": "application/json"
}
],
"x": 1380,
"y": 2240,
"wires": [
[]
],
"icon": "font-awesome/fa-align-left"
},
{
"id": "17a5a0c7ac0ee338",
"type": "http request",
"z": "f1bd767b.b633f8",
"g": "9f11e2fee46b34a0",
"name": "AwtrixUlanzi/CustomApp",
"method": "POST",
"ret": "obj",
"paytoqs": "ignore",
"url": "http://192.168.178.23/api/custom?name=luftfeuchtigkeit",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [
{
"keyType": "Content-Type",
"keyValue": "",
"valueType": "other",
"valueValue": "application/json"
}
],
"x": 1380,
"y": 2520,
"wires": [
[]
],
"icon": "font-awesome/fa-align-left"
}
]
This flow uses the following icons. Add them to your AWTRIX along with the flow.
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
Sign in to download these icons or send them to your AWTRIX.
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
More flows for Node-RED or Miscellaneous
Something wrong with this flow? Report it.
Have an idea?
Sign in to ask questions and join the conversation.