A simple Python script that sends OpenWeatherMap forecasts to a FreeMobile phone
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
djib 4989275968 Add city 4 月之前
.gitignore Improve rain display 5 月之前
LICENSE Initial commit 6 月之前
Pipfile Share initial script 6 月之前
Pipfile.lock Improve documentation 4 月之前
README.md Improve documentation 4 月之前
config.sample.json Add an option to configure the number of days to display 5 月之前
weather_to_freemobile.py Add city 4 月之前

README.md

WeatherToFreemobile

English

A simple script that sends OpenWeatherMap forecasts as a text message to a FreeMobile 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, and one from FreeMobile.

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 par SMS sur un téléphone FreeMobile.

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, et une clef API SMS FreeMobile.

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)