Original source from github.com/AbnormalDistributions/e_paper_weather_display
Raspberry Pi weather display using Waveshare e-paper 7.5 inch display, Open Weather Map API, and Python.
If you like what you see, consider buying James a coffee.
Update this codebase to incorporate version 2.0 improvements from AbnormalDistributions including:
Upgraded to OpenWeatherMap One Call API 3.0: This update now uses the latest version of the OpenWeatherMap API (3.0), which may require users to update their subscriptions if they were previously using version 2.5. See the OpenWeatherMap One Call Migration Guide for details on the API changes and subscription requirements.>Automatic Log Management: Logs now rotate when they get too large, making maintenance easier.User-Friendly Settings: All essential settings are grouped together for quick customization.More Reliable Error Handling: Logs network and API errors for easier troubleshooting.Improved Directory Handling: The script finds the right directories automatically, without manual path adjustments.- Trash Day Reminders: Customize specific days to get reminders on the display.
And...
Use my preferred templateWrite the output bmp to disk for easier debuggingChange output to use whole temp numbers (floor(25.31)
)- Update output to display Internet speed
- Update readme to use markdown
- Initial Commit.
- Switched to more legible icons.
- Added support for connection errors.
- Added support for HTTP errors.
- Added "dispay_error" fuction to display respective errors if present.
- Added option to store retreived weather data in CSV file.
- Updated to use all 480 vertical pixels instead of just 450.
- Fixed error where "TAKEOUT TRASH TODAY!" was writing in incorrect font size.
- Increased size of fonts for "Humidity" and "Wind" for better legibility.
- Added clear screen function to reduce possibility of burn-in.
- Changed refresh time from 300 to 600 seconds.
Forked from AbnormalDistributions/e_paper_weather_display
- Added .env file and loader
- Changed display to 7.3inch 4 colour e-Paper HAT
Incorporated changes from version 2.0 improvements from AbnormalDistributions.
- Update to use my preferred layout
- Update to use my yellow colour for icons with sun
- Add daily weather summary
- Print last modified date
- The first thing you need is a free API key from https://home.openweathermap.org/users/sign_up.
- Open 'weather.py' and replace **Key Here** with your API key.
- **Location** can be left as it is unless you want to add it to your display.
- Get your **longitude** and **lattitude** using I used https://www.latlong.net and put that in as well.
- Set CSV_OPTION to False if you would not like weather data appended to 'records.csv' after every refresh.
- There is also a reminder for taking out the trash near the end of the script that you will want to change if your trash pickup doesn't come on Monday and Thursday like mine. :)
That's about it. Run the python file and you should see output on the display.
If you are not using a 7.5 inch Version 2 display, you will want to replace 'epd7in5_V2.py' in the 'lib' folder with whichever one you have from https://github.com/waveshare/e-Paper/tree/master/RaspberryPi_JetsonNano/python/lib/waveshare_epd
Fairly extensive adjustments will have to be made for other sized screens.
https://www.waveshare.com/wiki/7.5inch_e-Paper_HAT- 7.3inch e-Paper HAT (G), 800 × 480, Red/Yellow/Black/White
Raspberry Pi 3, but this will run on any of them except the Pi Zero that doesn't have soldered headers.- Raspberry Pi Zero 2 WH
- SD card for the Pi at least 8 GB.
- Power supply for the Pi.
- 5 x 7 inch photo frame from Officeworks
- Weather Icons licensed under [SIL OFL 1.1](http://scripts.sil.org/OFL)
- Code licensed under [MIT License](http://opensource.org/licenses/mit-license.html)
- Documentation licensed under [CC BY 3.0](http://creativecommons.org/licenses/by/3.0)