A simple Python script that sends OpenWeatherMap forecasts to a FreeMobile phone
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
djib 4989275968 Add city 8 meses atrás
.gitignore Improve rain display 10 meses atrás
LICENSE Initial commit 10 meses atrás
Pipfile Share initial script 10 meses atrás
Pipfile.lock Improve documentation 8 meses atrás
README.md Improve documentation 8 meses atrás
config.sample.json Add an option to configure the number of days to display 9 meses atrás
weather_to_freemobile.py Add city 8 meses atrás

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)