42 lines
1.7 KiB
Markdown
42 lines
1.7 KiB
Markdown
# WeatherToFreemobile
|
|
|
|
## English
|
|
A simple script that sends [OpenWeatherMap](https://openweathermap.org/) forecasts as a text message to a [FreeMobile](http://mobile.free.fr/) phone.
|
|
|
|
To run the script you need to fill in `config.sample.json` and to rename it to `config.json`.
|
|
|
|
You will need a [API key from OWM](https://home.openweathermap.org/api_keys), and [one from FreeMobile](https://www.freenews.fr/freenews-edition-nationale-299/free-mobile-170/nouvelle-option-notifications-par-sms-chez-free-mobile-14817).
|
|
|
|
See `Pipfile` for the script's requirements (you probably only need to install `pyowm`).
|
|
|
|
Sample output:
|
|
```
|
|
Saturday 19: light rain (min 13ºC, max 15ºC, rain:1.44mm)
|
|
- 09h : 0.3mm
|
|
- 12h : 0.2mm
|
|
- 15h : 0.2mm
|
|
- 18h : 0.1mm
|
|
- 21h : 0.2mm
|
|
Sunday 20: moderate rain (min 12ºC, max 12ºC, rain:11.94mm)
|
|
```
|
|
|
|
## French
|
|
Un simple script pour envoyer les prévisions météo [OpenWeatherMap](https://openweathermap.org/) par SMS sur un téléphone [FreeMobile](http://mobile.free.fr/).
|
|
|
|
Pour lancer le script, vous avez besoin d'ajuster les éléments du fichier `config.sample.json` et le renommer en `config.json`.
|
|
|
|
Vous aurez besoin d'une [clef API OpenWeatherMap](https://home.openweathermap.org/api_keys), et une [clef API SMS FreeMobile](https://www.freenews.fr/freenews-edition-nationale-299/free-mobile-170/nouvelle-option-notifications-par-sms-chez-free-mobile-14817).
|
|
|
|
Vous devrez installer les librairies décrites dans `Pipfile` (a priori uniquement `pyowm`).
|
|
|
|
Exemple de SMS:
|
|
```
|
|
Samedi 19: légère pluie (min 13ºC, max 15ºC, rain:1.44mm)
|
|
- 09h : 0.3mm
|
|
- 12h : 0.2mm
|
|
- 15h : 0.2mm
|
|
- 18h : 0.1mm
|
|
- 21h : 0.2mm
|
|
Dimanche 20: pluie modérée (min 12ºC, max 12ºC, rain:11.94mm)
|
|
```
|