Your app depends upon knowing the current time - what happens if that time isn't known
You make a good point. I've not tried it, but I guess that the clock would initialise to sometime in the past (1st January 1970 perhaps) when the system boots until it is able to get the time from the internet. The plan is to not make any changes to the state of the curtains if the system time is before sometime in the past - probably 1st December 2020 to remind me when all this weird activity happened 😜
Once it knows the time, and knows it knows the time, it can go to work determining what state the curtains need to be in and putting them that way. There will be some 'fiddling' needed with the setup to get everything fine tuned as I cannot develop the system with a set of powered curtains to test it.
I have a Raspberry Pi. I am just starting to play with it - so I am a Pi newbie
Good luck!
It is proving to be an interesting and, at times frustrating process. Using an RPi Zero is frustrating at times as it is rather slow. Perflectly capable for the task it is to perform but very slow to set up and develop.