@Tyler-Brown Hey Tyler,
I think using the time in seconds would be very useful for you.
On the arduino that controls both your lights and your sprinklers seperately. You can shoot the time from your omega to the arduino constantly.
You then have an arduino sketch that is waiting for those specific numbers to come in:
If seconds is >= (6am in seconds) and <= (6:05 in seconds)
Turn Sprinkler on
else if seconds >= (dusk in seconds) or <= (dawn in seconds)
Turn Lights On
Reboot Omega and if you have network it will actualize your location/date/time.
I have everything set as per your post but the point is when you force a reboot by killing /etc/rc.local it brings up a fixed time, not a network time. With this extra line in /etc/rc.local it obtains the network time on reboot.
Like Vinicius said, if you have no real reason to use something like C and can get away with python, if it is not crucial to have a fast initialization time, I would go with Python. Also, the difference between python 2 and 3 is minimal. Really 3 is just making things a little more consistent. Mostly if you change your print "ok" to print("ok") that should do it. I would go with python 2.
One suggestion. I have found that it is faster to use os.system() for some things rather than their python equivalents. Perhaps you could look into that?
@Frederic-Baumann Yes, agreed. Sorry I missed your earlier reference to line 202 in zonenamePromise - that is exactly what I had found too. Though changing the code to what I think it should be still doesn't work properly for me. I will dig further and let you know how it goes.
Looks like your connection to Community was lost, please wait while we try to reconnect.