Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
StartTime with astronomical timer
#4
Hi Ronnie,

There has been a request for a plugin along those lines on the SIP GitHub repo:
https://github.com/Dan-in-CA/SIP/issues/177

I have been tinkering with Astral, a Python module for calculating sun rise/set times among other values:
https://astral.readthedocs.io/en/latest/

You can give Astral a location and a date and it will return the sun times you need. This should give us what we need to have SIP's program preview conform the the new start times. The timeline of SIP's home page is generated in JavaScript but it should be easy to pass the new start times from Python.

Astral is Phthon3 only. SIP can run under Python3. You just need to use the sip3.service file to start SIP at boot instead of sip.service. You will also need to install Python3 rpi-gpio:
Code:
sudo apt install python3-rpi.gpio


I will give this some thought as far as how to adjust program start times on a daily basis.

If you are familiar with GitHub it might be a good idea to start a topic in the new Discussions section of the SIP repo. It is a new feature of GhtHub but so far there seems to be a surprising amount of participation from programming savvy users.
https://github.com/Dan-in-CA/SIP/discussions

I will get back to you after I look into how to adjust program start times.

Dan
<p><br></p>
Reply


Messages In This Thread
StartTime with astronomical timer - by magrigian - 2016 Sep 05, 01:15 PM
RE: StartTime with astronomical timer - by dan - 2016 Sep 05, 04:23 PM
RE: StartTime with astronomical timer - by dan - 2021 May 04, 09:52 PM
RE: StartTime with astronomical timer - by dan - 2021 May 06, 03:53 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)