Closed salihys closed 5 years ago
What is your use case that requires a precise solar noon? What timing do you have that is critical with +/- 2-3 minutes?
You may want to look into a HAB (e.g., openHAB) which can capture all kinds of astronomical information (sun elevation, moon elevation, civil dusk, ..., ..., ...). The HAB can then trigger on solar noon to take action on the Tasmota device.
In timers you can substract or add minutes to sunrise and sunset and then trigger a rule or relay.
Sorry, but I don't see the benefit of adding noon. Why you need that?
But, doesn't solar noon drift with respect to sunrise/sunset throughout the year?
On first approximation it should be at the same clock time everyday and dependubg only on location, right ? if you need sub-minute accuracy it's more complicated.
@s-hadinger yes, approximately 12:00 :wink:
Well that's a big approximation 😀. It depends on your longitude in the time zone. The average of sunrise and sunset should do it.
I want to use that to accurately turn on a light when it's time for Muslim prayer to alert a def person when it's time to pray with no internet connection. I hope that someone can help with this issue and thanks for your comments.
@salihys
I think I'd rather depend on a HAB running locally on the LAN (no Internet required). A Raspberry Pi suffices. It will keep it's time in sync with NTP when an Internet connection is available. It will capture astronomical information then as well. The HAB server can even implement logic for whatever events you need if necessary to have more autonomy. With all the necessary information, the HAB can command the Tasmota device to trigger the light exactly when needed. Heck, you could even re-write a Tasmota rule that gets updated on the device to perform the action at the appropriate time should the HAB be unavailable for any reason.
Mike
some more thoughts about this:
@salihys : 1) I found the time needs to be when sun is at zenith. That is a very precise point in time. You can mathematically prove, that if you have an infinite number of points like those on the path of the sun, the likelihood you will hit exactly that one point on the zenith is zero. So there is probably some allowance +/-. What interval around noon is acceptable for the reminder? Or if you dont know: what do non deaf muslims use?
2) How precise is the time on your device, how precise can it be set without internet?
@ tasmota experts: 1) what is the precision of tasmotas sunrise/sunset calculation used? It is usually +/- some minutes.
2) I think @s-hadinger 's rule should do it with enough precision: (sunrise - sunset) / 2 Could you show an example rule (I still dont grok them...)
what do non deaf muslims use
Church bells?
More likely the mu'azzin call
They hear the call for prayer "athan"
Is it possible to perform %sunset%-%sunrise% arithmetic in a rule?
Good news, I was able to do it through node-red by utilizing the Bigtimer node. The node has all the timers that represents the call for prayer times. Thanks to you all.
Please add solar noon beside sunrise and sunset to be used in rules