Skip to content

bearhudson/OWAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OWAlerter

A super simple container application that sends push weather alerts and notications to Pushsafer!
Requirements
Environment Variables
  • OW_API_KEY - OpenWeather API Key
  • PUSHSAFER_API = Pushsafer API Key
  • PUSHSAFER_DEVICE = Pushsafer Device/Group
  • ZIPCODE = Your Zipcode
  • COUNTRY_CODE = Two-letter country code. e.g. us
  • UNITS = imperial vs. metric
Runtime Notes
  • You can setup environment variables and envoke main.py after building the Poetry virtual environment. Timezone data might be incorrect if your system clock is not set to UTC.

    $ pip install poetry
    $ poetry install
    $ .venv/bin/python3 owawlert/main.py
  • Docker is the prefered way to run this script. Execute run.sh^ to build and launch a local instance which reads the environment variables from a .env file you will need to create. The format for is

    VARIABLE=VALUE
    
    $ ./run.sh

    ^ Script requires rootless docker.

About

A container application that emails weather alerts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published