• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ideas for replacement of datetime protocol
Additionally if you completely replace the datetime protocol there has to be an alternative for timed triggers like for sunrise and sunset. I'm thinking of something like a function CURRENT_TIME(<format>) that you could use for example
IF weather.sunrise == CURRENT_TIME(hh.mm) THEN ...

then the inconvenient time conversion could be removed which is currently required.

And then maybe if the time triggers and monitors are reworked you could consider the time evaluation based on the interval used in the rule. I forgot once to set the validation for the second and then pilight tried to send mails every second ;-)
So what I mean is that you could scan the rule for CURRENT_TIME and if there no second is mentioned you could verify only each minute...

Messages In This Thread
RE: Ideas for replacement of datetime protocol - by Tobias - 03-12-2016, 02:03 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  program protocol missing in rewrite Niek 1 787 10-07-2017, 08:55 PM
Last Post: curlymo

Forum Jump:

Browsing: 1 Guest(s)