mirror of
https://github.com/craigerl/aprsd.git
synced 2026-10-09 08:42:04 -04:00
get_weather_gov_metar() called json.loads(response) with the
requests.Response object, which raises TypeError ('the JSON object
must be str, bytes or bytearray'). Every METAR-by-station request
fell into the plugin's catch-all and returned 'Unable to find
station METAR'.
Parse response.text instead and return the dict. USMetarPlugin
was then double-parsing with json.loads(resp.text) on the result;
it now consumes the dict directly. The now-unused json import in
weather.py was dropped.