NEWS
Tages/Nachtlänge berechnen
-
Hallo, ich würde mir gern berechnen, wie lange ist es tagsüber hell und wie lange es dunkel ist. Dazu hab ich die Sun positions Node die gewünschten Zeiten herausgesucht.
Jetzt müsst das ganze noch berechnet werden - leider fehlt mir dazu der Ansatz.
Vlt gibts auch schon fertige Lösungen?[ { "id": "1d8c27aff840b27c", "type": "tab", "label": "TEST", "disabled": false, "info": "", "env": [] }, { "id": "858b441eaddacfd7", "type": "sun-position", "z": "1d8c27aff840b27c", "name": "", "positionConfig": "d836509a.67bc4", "rules": [], "onlyOnChange": "true", "topic": "", "outputs": 1, "start": "", "startType": "none", "startOffset": 0, "startOffsetType": "none", "startOffsetMultiplier": 60000, "end": "", "endType": "none", "endOffset": 0, "endOffsetType": "none", "endOffsetMultiplier": 60000, "x": 430, "y": 240, "wires": [ [ "69184b9a38db4f0b", "e6e2c94479444efe", "a76942cd4a4957a5" ] ] }, { "id": "da350f3e507cd358", "type": "inject", "z": "1d8c27aff840b27c", "name": "Inject", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 270, "y": 240, "wires": [ [ "858b441eaddacfd7" ] ] }, { "id": "69184b9a38db4f0b", "type": "change", "z": "1d8c27aff840b27c", "name": "Sonnenuntergang", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.times.sunsetStart.value", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 690, "y": 260, "wires": [ [ "ee5148fbf0ef5947" ] ] }, { "id": "e6e2c94479444efe", "type": "change", "z": "1d8c27aff840b27c", "name": "Sonneaunaufgang", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.times.sunriseStart.value", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 690, "y": 220, "wires": [ [ "ee5148fbf0ef5947" ] ] }, { "id": "a76942cd4a4957a5", "type": "debug", "z": "1d8c27aff840b27c", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 630, "y": 160, "wires": [] }, { "id": "ee5148fbf0ef5947", "type": "join", "z": "1d8c27aff840b27c", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "2", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 890, "y": 240, "wires": [ [ "4d86b7feb800bad5" ] ] }, { "id": "4d86b7feb800bad5", "type": "debug", "z": "1d8c27aff840b27c", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1050, "y": 240, "wires": [] }, { "id": "d836509a.67bc4", "type": "position-config", "name": "Johnsdorf/Brunn", "isValide": "true", "longitude": "0", "latitude": "0", "angleType": "deg", "timeZoneOffset": 99, "timeZoneDST": 0, "stateTimeFormat": "3", "stateDateFormat": "3", "contextStore": "" } ]
Lg
-
@hpgo Wenn Du schon diese Nodes installiert hast, warum nutzt die dann nicht ?
Diese Node ist doch super komfortabel - um solche Aufgaben - out of the box zu lösen:
In der Hilfe zu der Node gibt es auch ein WIKI um Dir alles erklären zu lassen:
Ich habe zumindest mit dieser Bibliothek alle diese Nodes installiert bekommen:
-
@mickym
Vielen herzlichen Dank, ich hatte mir nur die Blind Control Node angeschaut.
Lg