Advertisement
cooperlees

Untitled

Feb 1st, 2019
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.09 KB | None | 0 0
  1. cooper@netcollection:~$ python3 /tmp/mt_weather_station.py
  2. [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)
  3. [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)
  4. Traceback (most recent call last):
  5.   File "/tmp/mt_weather_station.py", line 123, in <module>
  6.     loop.run_until_complete(test_mt_weather())
  7.   File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete
  8.     return future.result()
  9.   File "/tmp/mt_weather_station.py", line 110, in test_mt_weather
  10.     returned_json = await mt_client.get_weather_now(verify_ssl=False)
  11.   File "/tmp/mt_weather_station.py", line 80, in get_weather_now
  12.     json.loads(weather_result), floats
  13.   File "/tmp/mt_weather_station.py", line 91, in parse_returned_data
  14.     value = NWSCodes[value.replace("-", "")].value
  15.   File "/usr/lib/python3.6/enum.py", line 329, in __getitem__
  16.     return cls._member_map_[name]
  17. KeyError: ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement