[
{
"id": "ae845d09.71def",
"type": "http request",
"z": "5a11cc5.689e934",
"name": "DarkSky API Request",
"method": "GET",
"ret": "txt",
"paytoqs": false,
"url": "https://api.darksky.net/forecast/96d2fb3d4672e9deb78606a58023320f/49.0,9.0?units=si&lang=de",
"tls": "",
"proxy": "",
"authType": "basic",
"x": 340,
"y": 560,
"wires": [
[
"39dc384d.801f98"
]
]
},
{
"id": "fc189d06.c5c26",
"type": "inject",
"z": "5a11cc5.689e934",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 120,
"y": 560,
"wires": [
[
"ae845d09.71def"
]
]
},
{
"id": "39dc384d.801f98",
"type": "json",
"z": "5a11cc5.689e934",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 520,
"y": 560,
"wires": [
[
"370ecf51.0a74f"
]
]
},
{
"id": "370ecf51.0a74f",
"type": "function",
"z": "5a11cc5.689e934",
"name": "",
"func": "var currentTime = msg.payload.currently.time*1000\n\nvar Temp = msg.payload.currently.temperature\nvar Hum = msg.payload.currently.humidity * 100\nvar Dew = msg.payload.currently.dewPoint\nvar Pres = msg.payload.currently.pressure\n\nvar newMsg1 = {payload:currentTime};\nvar newMsg2 = {payload:Temp};\nvar newMsg3 = {payload:Hum};\nvar newMsg4 = {payload:Dew};\nvar newMsg5 = {payload:Pres};\n\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Temp: \" + Temp + \"°C, Hum: \" + Hum + \"%rH\" + \", Dew: \" + Dew + \"°C\" });\nreturn [newMsg1, newMsg2, newMsg3, newMsg4, newMsg5];",
"outputs": 5,
"noerr": 0,
"x": 700,
"y": 560,
"wires": [
[
"13f90fdd.9c227"
],
[
"635f1a83.f86194"
],
[
"d5e72b7c.a91138"
],
[
"a9b6f59.3f3f608"
],
[
"e8019b8f.06aee8"
]
]
},
{
"id": "4ca64f67.38c2a",
"type": "debug",
"z": "5a11cc5.689e934",
"name": "Current Time",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 1050,
"y": 480,
"wires": []
},
{
"id": "635f1a83.f86194",
"type": "debug",
"z": "5a11cc5.689e934",
"name": "Temp",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 1030,
"y": 520,
"wires": []
},
{
"id": "d5e72b7c.a91138",
"type": "debug",
"z": "5a11cc5.689e934",
"name": "Hum",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 1030,
"y": 560,
"wires": []
},
{
"id": "a9b6f59.3f3f608",
"type": "debug",
"z": "5a11cc5.689e934",
"name": "Dew",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 1030,
"y": 600,
"wires": []
},
{
"id": "e8019b8f.06aee8",
"type": "debug",
"z": "5a11cc5.689e934",
"name": "Pressure",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 1040,
"y": 640,
"wires": []
},
{
"id": "13f90fdd.9c227",
"type": "moment",
"z": "5a11cc5.689e934",
"name": "",
"topic": "",
"input": "",
"inputType": "msg",
"inTz": "ETC/GMT",
"adjAmount": 0,
"adjType": "days",
"adjDir": "add",
"format": "dddd, DD. MMMM YYYY HH:mm:ss Z",
"locale": "de_DE",
"output": "",
"outputType": "msg",
"outTz": "Europe/Berlin",
"x": 860,
"y": 480,
"wires": [
[
"4ca64f67.38c2a"
]
]
}
]
Comments