mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 10:28:36 +00:00
The read function on an urllib urlopen object returns an object as a response. Regular expressions using re can't be used on such objects. This causes the following error: ``` Traceback (most recent call last): File "/tmp/weather/./weather_press_LOWW", line 43, in <module> hpa = re_hpa.findall(txt)[0] TypeError: cannot use a string pattern on a bytes-like object ``` This can be easily fixed, because said object can simply be cast to string. Which is, what this patch does for both the US NOAA based plugins. |
||
---|---|---|
.. | ||
example-graphs | ||
buienradar_ | ||
humidity-sensor | ||
novra_s300 | ||
openweather_ | ||
temperature_ | ||
temperatures | ||
weather_ | ||
weather_press_ | ||
weather_temp_ | ||
wfrog | ||
wunderground_ |