Hi TheMax74,
you KNX-ultimate Node is just awesome.
I am currently working on receiving several Data from openweathermap to My KNX.
I am struggling with the Sunset datapoint.
OWM offers the Sunset as
, See https://openweathermap.org/current
I would like to have the local sunset Time at KNX.
I used your example [/URL]https://github.com/Supergiovane/node...ateTime-to-BUS
https://openweathermap.org/current" to send the unixtime to KNX via DPT 10.001- unfortunatly not in local time.
What way do you recommend to convert UTC unixtime to local timezone and send that via your node to KNX?
can I use the js DateObject Functions (
https://developer.mozilla.org/de/doc...caleDateString)
kind regards
Alex
you KNX-ultimate Node is just awesome.
I am currently working on receiving several Data from openweathermap to My KNX.
I am struggling with the Sunset datapoint.
OWM offers the Sunset as
Code:
[LIST][*]sys.sunset Sunset time, unix, UTC[/LIST]
I would like to have the local sunset Time at KNX.
I used your example [/URL]https://github.com/Supergiovane/node...ateTime-to-BUS
https://openweathermap.org/current" to send the unixtime to KNX via DPT 10.001- unfortunatly not in local time.
What way do you recommend to convert UTC unixtime to local timezone and send that via your node to KNX?
can I use the js DateObject Functions (
https://developer.mozilla.org/de/doc...caleDateString)
kind regards
Alex
Kommentar