This is a small rust script that checks the weather and send an email if it is raining. To run it, you just need docker.
First, you have to build it:
make buildSet your env variables properly:
export API_KEY='open weather api key'
export EMAIL_TO='email destination'
export SMTP_PASS='mailgun smtp pass'Then run it:
make runFor development mode, you can use cargo run instead of make, to run it
outside docker.
The deploy is currently manual, to heroku. To run it:
heroku plugins:install heroku-container-registry
heroku container:login
heroku container:push webThat's it!