Is it after sunset?

48 views
Skip to first unread message

Robin

unread,
Dec 26, 2020, 1:10:46 AM12/26/20
to weewx-user
I have a script that runs every five minutes, grabs an image from my webcam and adds some text before it is uploaded to my website. I would like to test if it is the first grab after sunset so that I can do some extra 'stuff' with the image.

I am getting more and more frustrated by my lack of skill, knowledge and diminishing brain power (not sure if it is advanced years or ouzo).

Please can somebody help.

Thank you.


Graham Eddy

unread,
Dec 26, 2020, 3:44:40 AM12/26/20
to weewx...@googlegroups.com
put a test into script to see if celestial time is in interval between now and now+5mins.
then either (a) generate the script, embedding the celestial time inside the script, or; (b) generate a file with the celestial timestamp, and your script reads the value from this generated file

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/95f868c7-1080-4d27-8faf-9640ba580750n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages