Skip to content

todr93/WeatherStation

Repository files navigation

WeatherStation

WeatherStation is an app which get the weather info from OpenWeather API. Its main purpose is generating of an image for RaspberryPi with e-Paper screen.

Requirements

App is compatible with Python 3.7 to Python 3.12.
All required modules are in requirements.txt file.

Application (screen mode) is created for Waveshare 7.5inch E-Ink (800×480) display.

.env file

Some data (e.g. API key) needs to be stored in .env file.

API_KEY=<your-open-weather-API-key>

# User defined variables
LATITUDE=<your-latitude-coordinate>
LONGITUDE=<your-longitude-coordinate>

FORECAST_HOURS_COUNT=16

Usage

It can be used in two modes:

  • screen mode with RaspberryPi and e-Paper screen,
  • test mode (save image on the local disk and show it).

Windows (only test mode)

  1. Clone repository by "git clone https://github.com/todr93/WeatherStation".
  2. Use "createEnvironment.bat" to create virtual environment and install all required modules.
  3. Use "runTestMode.bat" to run application in test mode.

Linux (test mode)

  1. Clone repository by "git clone https://github.com/todr93/WeatherStation".
  2. Make scripts executables:
    • "chmod +x createEnvironment.sh",
    • "chmod +x runTestMode.sh".
  3. Use "createEnvironment.sh" to create virtual environment and install all required modules.
  4. Use "runTestMode.sh" to run application in test mode.

Linux - RaspberryPi (screen mode)

  1. Clone repository by "git clone https://github.com/todr93/WeatherStation".
  2. Make scripts executables:
    • "chmod +x createEnvironmentRasp.sh",
    • "chmod +x runScreenMode.sh".
  3. Use "sudo createEnvironmentRasp.sh" to install all required modules.
  4. Use "runScreenMode.sh" to run application in screen mode.

About

WeatherStation is an app which get the weather info from OpenWeather API. Its main purpose is generating of an image for RaspberryPi with e-Paper screen.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages