X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/37d9d91c89b12b4c559f9e0ef10420acd1531c50..92f9f7fe9641e4a7ecc4892194e38d6ff7607f28:/owm.py?ds=inline diff --git a/owm.py b/owm.py index d42ebed..878e3eb 100755 --- a/owm.py +++ b/owm.py @@ -94,6 +94,7 @@ def main(configfile): config.read(configfile) apikey = config.get('openweathermap', 'apikey') cityid = config.get('openweathermap', 'cityid') + csvfile = config.get("openweathermap", 'csvfilename') weather_raw = getweather(apikey, cityid) if debug: @@ -106,7 +107,7 @@ def main(configfile): # write to db # write to csv - write_csv(config.get("openweathermap", 'csvfilename'), weather) + write_csv(os.path.expanduser(csvfile), weather) if __name__ == '__main__':