Using solar noon as scene trigger?

Hi!

Is it possible to use solar noon (the time when the sun is highest in the sky) as a trigger in scenes? Sunrise and sunset is possible, but how do I do if I want the specific time just between sunrise and sunset?

You should find the the average of sunrise and sunset for a particular day is a very good estimate of solar noon.

Be warned, however, that the Luup functions luup.sunrise() and luup.sunset() give the Unix epoch for the NEXT event. Thus if you use luup.sunrise() in the middle of the day then you will get TOMORROW’s sunrise. So, sadly, the calculation is not as simple as just the average of these two results.

Noon is never too far away from 12:00 (forgetting any DST offset), typically varying by up to +/-15 minutes.

[hr]

Edit:

  • you could consider using @futzle’s excellent Heliotrope plugin.
  • if you are using openLuup, you can access all the solar position calculations directly.

Heliotrope is your best bet…