FHEM Forum

FHEM => Frontends => SVG / Plots / logProxy => Thema gestartet von: Nestor am 02 Januar 2020, 19:16:52

Titel: Offset months when fixedrange: year
Beitrag von: Nestor am 02 Januar 2020, 19:16:52
Is it possible to offset the months when fixedrange: year is set, so the plot displays from July 2019 to July 2020 for example?
Use case is to set energy consumption plot to start & end date of contract.

* fixedoffset seems to offset by year, contradicting the help text; fixedoffset <nDays> and it does not accept float values like -0.5 ;-)
* fixedrange [offset]: offset does not accept float values either.

Maybe this could be useful to offset by months or days?
Titel: Antw:Offset months when fixedrange: year
Beitrag von: rudolfkoenig am 02 Januar 2020, 22:19:55
fixedoffset must be an integer ($fo =~ m/^[+-]?\d+$/), and it simply replaces the off value from the URL.
That means days for the default zoom.