Day or Night Plugin update request

How do i tell what times the plugin thinks is night and day?

For example right now i have a pleg event make nighttime arm the porch motion sensor and turn the light on each trigger resets the 5minute timer. Works like a charm, and easy quite easy with pleg.

I noticed though that it was a bit early maybe an hour early for my liking thinking it might not take DST in cosideration etc. I have set timezone and city correctly.
I would like some sort of visual presentation of current calculated day/night cycles. Perhaps above respective day/night button. so that i better can adjust offsets if need be.

Do i make sence?

Anyhow thanks for your work on these plugins, i like them plenty.

I will add to the todo list … I think it’s easy to do (at least using the previous days values.)

Somewhere on this forum I found another possibility. Create a scene and add luup:

local srtime = os.date(“%X”,luup.sunrise())
luup.variable_set(“urn:upnp-org:serviceId:VContainer1”,“Variable3”,srtime,34)

local sstime = os.date(“%X”,luup.sunset())
luup.variable_set(“urn:upnp-org:serviceId:VContainer1”,“Variable4”,sstime,34)

This writes to two of the variables of the variable-container plugin. But when Richard has done his magic this can go :slight_smile: