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 )