Thank you @UnborN and @E1cid for your quick response.
To answer @UnborN questions first.
Please find below the code that generates an output as shown above.
It is a http request in order to get the solar forecast for a particular location.
It uses: https://forecast.solar/
Be aware that the "Public" API only uses estimate ( See: api:estimate [Forecast.Solar]) You can do 12 request/hour per IP Address (See: account_models [Forecast.Solar])
The lat/lon co-ordinates are the Central Railway Station in Amsterdam.
I do not live there
[{"id":"f062ea34411c9575","type":"function","z":"b3872b85ab49c693","name":"Prepare Solar Forecast","func":"var url = \"https://api.forecast.solar/\";\nvar lat = 52.379189;\nvar lon = 4.899431;\nvar dec = 10;\nvar az = -14;\nvar kwp = 2.4;\nmsg.url = url + \"estimate/\" + lat + \"/\" + lon + \"/\" + dec + \"/\" + az + \"/\" + kwp;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":650,"y":660,"wires":[["4b61faf70b1e3548"]]},{"id":"4b61faf70b1e3548","type":"http request","z":"b3872b85ab49c693","name":"Solar Forecast http request","method":"GET","ret":"obj","paytoqs":false,"url":"","tls":"","persist":false,"proxy":"","authType":"","x":940,"y":660,"wires":[["c3345b9b2799640e"]]},{"id":"c3345b9b2799640e","type":"debug","z":"b3872b85ab49c693","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1190,"y":660,"wires":[]},{"id":"a57e5a379ffc8781","type":"inject","z":"b3872b85ab49c693","name":"Inject timestamp","props":[{"p":"payload","v":"","vt":"date"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":660,"wires":[["45c4b344b9bbe227"]]},{"id":"45c4b344b9bbe227","type":"time-switch","z":"b3872b85ab49c693","name":"Day Time switch","lat":"52.379189","lon":"4.899431","startTime":"sunrise","endTime":"sunset","startOffset":"-30","endOffset":"+30","x":400,"y":660,"wires":[["f062ea34411c9575"],[]]}]
I know that the picture indicated data from July. I actually used the screeenshot I made for the post, as indicated in the link above.
I tested the JSONata expression in the "Change" node. It gave an error. When I changed the time indication from HH:00:00 into hh: 00:00 it worked, but it gave me the rounded current time.
@E1cid flow worked , but not with the received flow from forecast.solar.
I have to look how to use it in the received flow.
To use moments is not an issue for me. I have used it before