Hello,
I try to grap Wheater Data to forward this to my NSPanel running with tasmota.
I have an JSON input and need to use the right parameters and join them again to have the right thing, but i have a huge Problem...
I need to added 2 vaues to tehe "range" parameter, the lower first than the higher one, but jon will only use one.
On the other heand i not able to make teh JSOn correct, maybe some one can give me a hand?
I use the openwheatermap.or node and the API as input.
i change all icons to NSPanle one.
The ID is for more Icons later.... not needed now.
here is my test:
[{"id":"d8b3e6a00ee508a7","type":"debug","z":"b0fa554.12ee8a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":970,"y":1680,"wires":[]},{"id":"b735b83c99137d7b","type":"change","z":"b0fa554.12ee8a8","name":"temperatur","rules":[{"t":"move","p":"payload.tempc","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"HMI_outdoorTemp.current","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":1680,"wires":[["75afc5fb7e4fcc35"]]},{"id":"87f88dbeba9eda77","type":"change","z":"b0fa554.12ee8a8","name":"temperur max","rules":[{"t":"move","p":"payload.temp_maxc","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"HMI_outdoorTemp.range","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":1720,"wires":[["75afc5fb7e4fcc35"]]},{"id":"78b95b25bf7f223c","type":"change","z":"b0fa554.12ee8a8","name":"temperur min","rules":[{"t":"move","p":"payload.temp_minc","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"HMI_outdoorTemp.range","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":1760,"wires":[["75afc5fb7e4fcc35"]]},{"id":"93b8e7bfab311f65","type":"debug","z":"b0fa554.12ee8a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":430,"y":1840,"wires":[]},{"id":"75afc5fb7e4fcc35","type":"join","z":"b0fa554.12ee8a8","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"2","count":"4","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":790,"y":1680,"wires":[["d8b3e6a00ee508a7"]]},{"id":"fd77f0e34c91249a","type":"inject","z":"b0fa554.12ee8a8","name":"Final request","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"HMI_weather\":1,\"HMI_outdoorTemp\":{\"current\":6,\"range\":\" 7, 10\"}}","payloadType":"json","x":240,"y":1840,"wires":[["93b8e7bfab311f65"]]}]