Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cooper@netcollection:~$ python3 /tmp/mt_weather_station.py
- [2019-02-01 14:21:59,063] ERROR: MTWeatherAPIClient https://tgcpenms.dev.telekom.hu/api/getWSData is not using http basic auth (mt_weather_station.py:42)
- [2019-02-01 14:21:59,064] INFO: Grabbing weather for ['ws_marko.01', 'ws_mikebuda.01'] from https://tgcpenms.dev.telekom.hu/api/getWSData (mt_weather_station.py:69)
- Traceback (most recent call last):
- File "/tmp/mt_weather_station.py", line 123, in <module>
- loop.run_until_complete(test_mt_weather())
- File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete
- return future.result()
- File "/tmp/mt_weather_station.py", line 110, in test_mt_weather
- returned_json = await mt_client.get_weather_now(verify_ssl=False)
- File "/tmp/mt_weather_station.py", line 80, in get_weather_now
- json.loads(weather_result), floats
- File "/tmp/mt_weather_station.py", line 91, in parse_returned_data
- value = NWSCodes[value.replace("-", "")].value
- File "/usr/lib/python3.6/enum.py", line 329, in __getitem__
- return cls._member_map_[name]
- KeyError: ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement