Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.24 KB

File metadata and controls

36 lines (28 loc) · 1.24 KB

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.