Time triggers not firing
-
Can someone tell me what I am missing?
I made this rule just to try to verify the date/time is working. I created the rule at 16:57. I would have expected the after trigger to be false and the before rule to be true. The time is correct on the top header bar. At 18:00 the log shows 12:00AM. It does appear the rules are 12 hours off. I have set the correct latitude/longitude for my location. Did I miss a setting?Edit: Fixed it by add TZ and my timezone to the Environment Variables of the Docker container.
Also as stated in the Documentation, You can check the time by entering the url: http://your-reactor-sys-ip:8111/diag/sun -
Just a note that log timestamps (the ones starting each log line) are always in Z/UTC, but many timestamps reported in the log line text are displayed in configured local time. As can be seen in the final image above, the Engine's master tick also periodically logs what it believes local time to be. The time displayed in the header of the UI is the local time of the browser, not the host system or Reactor, and so may still be different (i.e. you're sitting on a browser in California at UTC-8 working on your Pi in New York at UTC-5).
I will bind /etc/localtime to future docker containers.Not possible since it's a security risk, which makes sense (you don't want containers being able to arbitrarily mount things anywhere in the filesystem). So, looks like a TZ environment variable is where we'll be. I'll add it to the docs. -
T toggledbits locked this topic on