From: gregor herrmann Date: Fri, 8 Jun 2018 19:04:56 +0000 (+0200) Subject: add owm.py: get weather data from openweathermap X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/commitdiff_plain/f298d06827f121ec9b7219855c20439d0b86db82?hp=f298d06827f121ec9b7219855c20439d0b86db82 add owm.py: get weather data from openweathermap this script can replace wetter.at.pl: perl: 2018-06-08;19:00; 05:21 ;21:09 ;21 ;0 mm/h;7km/h O ;stark bewölkt ;93 python: 2018-06-08;20:20:00;05:20:24;21:10:53;17.13; ;2.6km/h O ;Überwiegend bewölkt;75 and can be extended to write to the mysql database and a csv file like seewasser.py (and probably parts of seewasser.py could be extracted as common functions) owm.py needs an api key from openweathermap and some config; cf. the comments ath the top questions: - is precipitation really missing from json and available in xml? - the str() casting at the end looks ugly ---