• 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
Sunrise and daylight saving time issue
#21
Code:
replace DATE_ADD(CurrentDateTime, -1 HOUR) with "2018-03-27 19:49:44" in DATE_ADD(CurrentDateTime, -1 HOUR)
replace DATE_ADD(CurrentDateTime, -1 HOUR) with "2018-03-27 19:49:44" in wetterWangen.sunset == DATE_FORMAT(DATE_ADD(CurrentDateTime, -1 HOUR), "%Y-%m-%d %H:%M:%S",$
replace DATE_FORMAT("2018-03-27 19:49:44", "%Y-%m-%d %H:%M:%S", %H.%M) with 19.49 in wetterWangen.sunset == DATE_FORMAT("2018-03-27 19:49:44", "%Y-%m-%d %H:%M:%S", $
evaluate (OR) wetterWangen.sunset == 19.49
replace (wetterWangen.sunset == DATE_FORMAT(DATE_ADD(CurrentDateTime, -1 HOUR), "%Y-%m-%d %H:%M:%S", %H.%M)) with 0 in (wetterWangen.sunset == DATE_FORMAT(DATE_ADD($
evaluate (AND) 0 AND LichtTerrasseAuto.state IS on AND CurrentDateTime.second == 0
evaluate (AND) LichtTerrasseAuto.state IS on AND CurrentDateTime.second == 0
evaluate (AND) CurrentDateTime.second == 0
[Mar 27 18:54:16:251992] pilight-daemon: INFO: rule #10 LichtTerrasseSunset was parsed in 0.004192 seconds
That look good to me! Thank you for the fast fix.
 
Reply
#22
@apartmedia, the parenthesis issue as described in post #15 should be fixed in the latest event parser currently available in the development branch. Can you check.

I will write the documentation for it in the upcoming week.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
Bug Full cpu usage after random time andiwand 4 1,986 05-01-2016, 09:05 PM
Last Post: andiwand
  Time based calculations wo_rasp 7 2,528 03-19-2016, 01:28 AM
Last Post: wo_rasp
  [Solved] Time Stamp Information wo_rasp 5 2,133 03-05-2016, 11:29 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)