Skip to content

🌧 Simple notifications of recent precipitation near you

License

Notifications You must be signed in to change notification settings

sheriferson/spritz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spritz: simple notification of recent precipition near you

Spritz screenshots

'Spritz that Shit' is an inside joke. You can make the title whatever you want.

Setup

pip install -r requirements.txt

You'll need API tokens to OpenWeatherMap and Pushover, saved in a tokens.yml file:

owm_token: ...
pushover_token: '...'
pushover_user_key: '...'

Then set your TIMEZONE and LOCATION variables in spritz.py.

Usage

python3 spritz.py

Scheduling

I have this running on a Linux host, and I use cron to run the script early morning Pacific time.

crontab -e
# in the file
0 14 * * * python3 /home/sherif/projects/spritz/spritz.py

todos Nice to change one day

  • Detect user's local timezone automatically.
  • Set location in a different way other than hardcoding a variable inside spritz.py.

About

🌧 Simple notifications of recent precipitation near you

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages