Many of my scenes trigger on sunrise or sunset. I have a side project that could use access to the sunset time for the current day. Rather than go out to the web is there an HTTP query that can be run from the other device toward the VeraLite which would return the sunset time? Like I run http://:3480/data_request?id=sunset&output_format=json and it returns:
[{"id":"sunset","value":"184211"}] or something like this? JSON format would be best but that’s me just being picky ![]()
Alternatively, could I define a scene to run LUUP code to send an HTTP GET to the other device like http://<other_device>/?sunset=184211. I can parse this on the far end if it’s possible but don’t know how to get the var from VL.
Does VeraLite even expose this variable? I don’t see it in the wiki pages [url=http://wiki.micasaverde.com/index.php/Luup_Requests]http://wiki.micasaverde.com/index.php/Luup_Requests[/url] and [url=http://wiki.micasaverde.com/index.php/Luup_UPnP_Variables_and_Actions]http://wiki.micasaverde.com/index.php/Luup_UPnP_Variables_and_Actions[/url].
Thanks!