Track the day's progress and time to sunset using the Pimoroni InkyPhat
- It take a long 2 or 3 seconds to render the InkyPhat display making development slow.
- With a bit of hacking you can simulate the InkyPhat inside a jupyter notebook and speed up development.
- Inside a notebook its quick and easy to learn how to use the Python Image Library "PIL" and try out your code.
- Working example in
sunset_timer.ipynb
- Install the Inky-Phat, run the examples to know that it's working.
- Clone this code to your pi i.e.
git clone https://github.com/EnglishAlex/SunsetTracker.git
- Running
sunrise.py
opens thesunrise2020.csv
reads the sunrise/set times and renders the InkyPhat. - Set the crontab to run script every few minutes pi.cron.txt
- Explain how to generate your own sunrise sunset times from timeanddate.com
- Use API to fetch sunrise/sunset for your location
- Make it interactive with buttons
- Tidy the code a lot
- Better explanations of how it works
- https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-inky-phat
- https://github.com/pimoroni/inky
- https://shop.pimoroni.com/products/inky-phat
Convert a jupyter notebook to python script
jupyter nbconvert --to script <your notebook>.ipynb --output <your new scriptfile.py