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

[plugins/solar/fronius] Monitor Solar Inverters using the Fronius Solar API

This includes caching of the inverter info with a 12h TTL, so the graph
still renders when the inverter has gone to sleep at night.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>

squash! [plugins/solar/fronius] Monitor Solar Inverters using the Fronius Solar API

Use generic caching function to also cache real-time data. This allows
to avoid N/As overnight, which don't aggregate nicely on the yearly
graph.
This commit is contained in:
Olivier Mehani 2020-06-14 22:58:37 +10:00 committed by Lars Kruse
parent a731424cf0
commit 83737c4fe0
3 changed files with 289 additions and 1 deletions

View file

@ -38,7 +38,7 @@ multiple times, by symlinking it as 'internode_usage_SERVICEID'.
=head1 CACHING
As the API is sometimes flakey, the initial service information is cached
locally, with a one-hour lifetime, before hitting the base API again. However,
locally, with a day's lifetime, before hitting the base API again. However,
if hitting the API to refresh the cache fails, the stale cache is used anyway,
to have a better chance of getting the data out nonetheless.