1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 10:28:36 +00:00
Munin-Contrib/plugins/weather
HaseHarald 05d820334a fix(weather_press_/temp_): Cast url-read object to string
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.
2023-07-23 15:10:29 +02:00
..
example-graphs Fix wrong "example-directory" names 2020-08-30 00:54:53 +02:00
buienradar_ Unify more author names with special characters 2020-10-19 21:25:19 +02:00
humidity-sensor Fix trivial instances of wrong autoconf exitcodes 2018-09-16 04:03:31 +02:00
novra_s300 Whitespace cleanup 2018-08-02 02:33:25 +02:00
openweather_ unify DIRTYCONFIG handling in shell and python plugins 2018-04-07 02:17:06 +02:00
temperature_ Fix trivial instances of wrong autoconf exitcodes 2018-09-16 04:03:31 +02:00
temperatures Fix trivial instances of wrong autoconf exitcodes 2018-09-16 04:03:31 +02:00
weather_ Update shebang of Python3-compatible plugins to Python3 2020-11-26 02:38:34 +01:00
weather_press_ fix(weather_press_/temp_): Cast url-read object to string 2023-07-23 15:10:29 +02:00
weather_temp_ fix(weather_press_/temp_): Cast url-read object to string 2023-07-23 15:10:29 +02:00
wfrog Whitespace cleanup 2018-08-02 02:33:25 +02:00
wunderground_ [wunderground_] update default api key 2023-01-13 21:55:49 -08:00