From 2bed3a84c8f7bf84b45c44d808c41e91384225ed Mon Sep 17 00:00:00 2001 From: Artanicus Date: Sat, 4 Feb 2017 22:47:18 +0200 Subject: [PATCH 1/2] wego doesn't have a city flag anymore, it's location now --- bin/srv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/srv.py b/bin/srv.py index 809b3a5..60bf67c 100644 --- a/bin/srv.py +++ b/bin/srv.py @@ -128,8 +128,8 @@ def save_weather_data( location, filename ): location = DEFAULT_LOCATION else: location_not_found = False - - p = Popen( [ WEGO, '--city=%s' % location ], stdout=PIPE, stderr=PIPE ) + print(location) + p = Popen( [ WEGO, '-location=%s' % location ], stdout=PIPE, stderr=PIPE ) stdout, stderr = p.communicate() if p.returncode != 0: error( stdout + stderr ) From 3ae8d8ddfee4bc1ebbbbb4d3f936eba293d0425d Mon Sep 17 00:00:00 2001 From: Artanicus Date: Sat, 4 Feb 2017 23:20:09 +0200 Subject: [PATCH 2/2] Remove debug print I forgot in --- bin/srv.py | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/srv.py b/bin/srv.py index 60bf67c..d042bfa 100644 --- a/bin/srv.py +++ b/bin/srv.py @@ -128,7 +128,6 @@ def save_weather_data( location, filename ): location = DEFAULT_LOCATION else: location_not_found = False - print(location) p = Popen( [ WEGO, '-location=%s' % location ], stdout=PIPE, stderr=PIPE ) stdout, stderr = p.communicate() if p.returncode != 0: