Running at https://clearmycal.herokuapp.com/api/wx/london
python3 -m venv .venv
source .venv/bin/activate
FLASK_DEBUG=1 FLASK_APP=app/app.py flask run
Then go to http://127.0.0.1:5000/
Test the API route http://127.0.0.1:8000/api/wx/london can also do latlong eg http://127.0.0.1:5000/api/wx/50.684021,-4.692920
An alerting system to let you know if the weather is going to be "relatively great" in the next 7 days.
Why: This inspired by someone who, if there is a great day forecast, will cancel all their meetings on that day.
Currently provides an alert when the upcoming maxTemp for a day exceeds the average over the previous 2 weeks by 25% (NB: doesn't yet consider wind/rain!)
About
- This is an xbar plugin,
- This uses the VisualCrossing weather API
- VisualCrossing API key added to
~/.env
asvisualcrossing
and theLOCATION
variable to be added to the code. Test this on Visualcrossing - Requires xbar to be installed, and
clearmycal.12h.py
to be copied to the folder
Test with python clearmycal.12h.py
The .12h.py
indicates to the xbar app how often to run the code.
- Compare different types of weather instead of just temperature. Asking here but might need to just make a best get
- number of days to look ahead in the forecast for alerts
- error messages for credit limit and API key