After reboot stratum is 0, convert it to U. Include unknown_limit to
config to not send warning email.
I finally found a server where this workaround was needed.
* added millivolts to tasmota_ to get ANALOG/Range value
* allow to print_thresholds in tasmota plugin
* Experimented with different graph settings to obtain best axis labels
If voltage limits were eg 11 and 14 volts, the labels and limits
default terribly to 10 to 20, and if you fix limits, then labels read
"11, 11, 11, 12, 12, 12, 13, ...". alt-y-grid and alt-autoscale seem
to improve this a lot
* get_value -> get_status to better reflect what it's doing
* millivolts() forgot to account for invalid value "U"
---------
Co-authored-by: Tim Connors <tconnors@rather.puzzling.org>
* add multiplier_fetch that's much like common_fetch
* moved multiplier_fetch functionality to common_fetch
* power_emulated_multiplier env var added and Documented
---------
Co-authored-by: Tim Connors <tconnors@rather.puzzling.org>
system default python is now usually python3 - better make our code
compliant with it
`ceph` CLI itself has some slightly different usage and outputs
jq used instead of cut in a few places, because was easier to work out
what the original commands were intending to grab, now that those
outputs have moved location. Yes, jq is a new dependency for some of
the plugins, but it was already implicitly depended upon in ceph_osd
plugin
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.
This adds a plugin for relative humidity, based on the weather_press_ and
weather_temp_ plugins. It's basically a copy of these two plugins with only
minor adjustments.
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.