Hi,
i need help. How set i a date in a variable from actual date + 6 months (serviceintervall).
Thank you.
Date + 6 months
Hi,
i need help. How set i a date in a variable from actual date + 6 months (serviceintervall).
Thank you.
Pimatic, my hobby.
Hi, the date must be converted to the decimal format before the mathematical operation and back to time format.
https://forum.pimatic.org/topic/2150/solved-time-offset
Pimatic = Smart Home
Hi,
no funktion in my example!
Pimatic, my hobby.
@jens timeDecimal only works for time of day strings and thus cannot be used to calculate date offsets.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Hi, okay.
I make the info with the chart- plugin!
Thank you.
Pimatic, my hobby.
Hi Jens,
How did you make the gauges?
Or is that an iframe? In that case, how do you update them to see actual info?
Thanks in advance
@lschip said in Date + 6 months:
How did you make the gauges?
Hi, he used a new plugin. https://forum.pimatic.org/topic/3908/new-plugin-pimatic-charts
Pimatic = Smart Home
Missed that, thanks.
Great new plugin…
I do not see how this is solved. Can someone show the final expression set please?
@heizelmann said in Date + 6 months:
solved
Hi, this is my way.
I have 3 Variable in my system.
$wasserfilter
$wasserfilter 2
$wasserdatum
and 2 Rules.
When Reset is pressed set $wasserfilter = 182 and set $wasserfilter2 = 1 and set $wasserdatum to $system-date.date
When its after 0:00 hour set $wasserfilter to $wasserfilter - 1 and set $wasserfilter2 to $wasserfilter2 + 1
“182” is the half year.
A Variable Device with $wasserdatum and $wasserfilter and Gauge Device with $wasserfilter 2 and $wasserfilter show the information.
A Button Device with “confirm enabled” for set and reset funktion.
Good night!
Pimatic, my hobby.
@jens Thanks for the reply. In your case it might be OK, but if Pimatic is off around midnight counts will be lost. I am still looking for a solution where I store the start date and calculate the elapsed time when ever is needed.
Hi,
with Linux know how find you a way.
Grüße aus Dresden.
Pimatic, my hobby.
Unix scripts are not an alternative for native users.
I opened a feature request https://forum.pimatic.org/topic/4141/date-time-difference-expressions-and-calculation.