1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00
Commit graph

11 commits

Author SHA1 Message Date
HaseHarald
b76f630440 fix(weather_temp_): Better match temperature and dew point
For whatever reason, sometimes linebreaks are only denoted as \n in the
querry-result. This lead to the temperature RegEx matching the dew point. This
caused the temperature to be reported the same as the dew point. These changes
should make the RegEx more specific and work consistently, no matter if
linebreaks are actual linebreaks or just \n.
2023-07-23 15:10:29 +02:00
HaseHarald
d8b4732c4a fix(weather_press_/temp_): Use https
In 2023, it should be the default to use an encrypted connection, which
totally is supported by the data-source.
2023-07-23 15:10:29 +02:00
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
Lars Kruse
86bee01637 Port some python2 plugins to python3 2019-12-18 00:27:02 +01:00
Lars Kruse
7063330e03 Fix python style issues reported by flake8
Additionally some python2-only "print" statements are now compatible
with python3.
2019-12-18 00:25:39 +01:00
Lars Kruse
ebdbf1a92c Plugins weather_*: specify regular expressions as raw strings
New versions of flake8 already complain about the non-raw nature of the
strings (respectively the improper escaping in the regular expression).
2019-08-13 23:03:07 +02:00
Lars Kruse
e216f1be01 Plugin: weather_temp_: fix style issues 2018-03-27 04:21:46 +02:00
dipohl
95de964ec9 Plugin-Gallery: Get better 2nd level headings
sensors, weather, snmp
2017-02-24 17:30:35 +01:00
Samuel Smith
2d95020da7 NOAA decommissioned weather.noaa.gov
Change weather.noaa.gov -> tgftp.nws.noaa.gov
2016-08-29 12:23:25 -05:00
Maxim Kravets
a160dea034 Proper shebang for flexibility 2012-04-11 16:08:02 +06:00
Steve Schnepp
08346aac58 - have some dirs 2012-02-13 18:24:46 +01:00
Renamed from plugins/other/weather_temp_ (Browse further)