forcekasce.blogg.se

Weather display raspberry pi
Weather display raspberry pi












weather display raspberry pi weather display raspberry pi
  1. #Weather display raspberry pi code#
  2. #Weather display raspberry pi plus#
  3. #Weather display raspberry pi download#
  4. #Weather display raspberry pi free#

As I'm running a Pi Zero for that I think I will find it another utility at the same time.įeel free to reproduce it and share the result :) It's not totally straight forward but I must have provided all the information you need to make it work. It's prettier than many commercial weather station. You will find all you need here : WAVESHARE WIKI LINK I'm sure Pillow can be replaced by another way to create a 800x480 array The documentation provided by the manufacturer makes it easily understandable. It is quite easy to use : create your interface thanks to pillow librairy and load it to the screen. The ePaper used is the "7.5inch e-Paper HAT (B)" from Waveshare. As a future improvement I will replace part of the news by a pollution or weather alert if there is one.

#Weather display raspberry pi download#

I currently download and parse these data but not use them. OpenWeatherMaps also provides weather alert (snow, wind.) and pollution data. I select the last 5 top news and just print the 120 first characters (sufficient most of the time). To get a "global" view I chose googlenews as a source (in french). It is simple to use and free up to 100 calls/day (I make 24). I chose to use NEWS API to get the last top news.

  • Historical values of pressure and temperature for the 6 passed days (graph) (updated once a day).
  • Daily forecast up to 4 days, printing, icon, min and max temperature and probability of rain.
  • Hourly forecast for +3h, +6h, +12h printing temperature, probability of precipitation and icon.
  • Rain forecast for the next hour (per 10min intervals).
  • Current Wind speed and orientation (convert degrees to "compass").
  • The following are the selected value for the station : You get current weather, rain forecast for the next hour, hourly forecast for 48h and daily forecast up to 7 days. To reduce the number of call, I chose the "One call" API. It is quite easy to make it work and free up to 60calls/minute (I make 1 a hour). The weather informations are download from OPEN WEATHER MAP.

    #Weather display raspberry pi code#

    The code is launch at boot thanks to crontab : PY FILES PROVIDED BY WAVESHARE TO MAKE IT WORK WITH ePAPER SCREEN (epd7in5b_V2.py & epdconfig.py), YOU WILL FIND THEM HERE Sure that the code can be enhanced but it works this way.įuture enhancement : make the display more parametric To enhance a bit the display the screen is a three color one. Also you easily find examples of use on the internet which ease the use. Nota : as a french guy, you will find some french in the code (labels, specified language for api)Īs the main idea was to have a nice display which consumed few power so I chose to get a e-paper from waveshare which is not expensive and seems to be some good quality.

    #Weather display raspberry pi plus#

    The idea behind was to discover and use API but also getting a nice weather station with the info I wanted plus the top news to stay update. : few bugs correction, added debug mode, added file saving and restoring for past pressure and temperature values Create a GUI thanks to PILLOW (suggest method by screen manufacturer).Parse the incoming JSON to use it later.Call a weather and news API to get information.














    Weather display raspberry pi