2
Watch
1
Star
3
Fork
23
Issue

Alert via an email if it will be raining today.

IvanVnucec
IvanVnucec
pushedAt 22 hours ago

IvanVnucec/rain_alert

App running

rain_alert

You will not forget your umbrella anymore.

About

Check every morning at 5 AM local time if it will be raining that day, if yes send an email with forecast message like this:

Hour [h] Probability [%]
6 0
7 0
8 0
9 0
10 10
11 22
12 35
13 60
14 86
15 100
16 100
17 100
18 100
19 72
20 36
21 5
22 0
23 0

Get started

  1. Create Gmail account and enable the Less secure app access and also create an OpenWeather API Key.
  2. Create credentials/credentials.yaml file and put Gmail and OpenWeather credentials from step 0.
senderEmail: <sender Gmail email>
senderPassword: <Gmail email password>
openWeatherApiKey: <OpenWeather API key>
  1. Create credentials/receivers.txt file put in email subscribers. For example:
[email protected], Zagreb
[email protected], Berlin
[email protected], Milwaukee
[email protected], Mobile Alabama
[email protected], Nashville Tennessee
[email protected], Nashville Indiana
  1. Run the app using Makefile as make run
  2. (Recommended) You can schedule the script to run on GitHub servers like we did in our GitHub Actions CI workflow. See the Instructions for more info.

License

MIT