I was publishing sunrise &sunset time but while using in code its not working. can anyone assist me?
I am using MQTT for a small project where through openweather API and Node-red i am publishing surise time of a location which is taken as input through a form in node-red dashboard. based on this time i was trying to turn led if its night and off if its day.
but i am unable extract two values from the topic.
i was publishing sunrise and sunset time but while using in code its not working.
can anyone assist me in this?
but i am unable extract two values from the topic.
i was publishing sunrise and sunset time but while using in code its not working.
can anyone assist me in this?
Solution
this is the sample payload i am publishing
it works now
thanks @LMtx @Umesh Lokhande @electro_coco and @techielew