arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.23k stars 4.81k forks source link

beside sunrise and sunset solar noon is needed #6565

Closed salihys closed 5 years ago

salihys commented 5 years ago

Please add solar noon beside sunrise and sunset to be used in rules

meingraham commented 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.

ascillato commented 5 years ago

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?

meingraham commented 5 years ago

But, doesn't solar noon drift with respect to sunrise/sunset throughout the year?

s-hadinger commented 5 years ago

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.

meingraham commented 5 years ago

@s-hadinger yes, approximately 12:00 :wink:

s-hadinger commented 5 years ago

Well that's a big approximation 😀. It depends on your longitude in the time zone. The average of sunrise and sunset should do it.

salihys commented 5 years ago

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.

meingraham commented 5 years ago

@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

ascillato2 commented 5 years ago

Closing this issue as it has been answered.


Support Information (Guide)

See Wiki for more information. See FAQ for common questions/answers and links if none of your question is in the list. See Chat for more user experience. See Community for forum. See Code of Conduct

joba-1 commented 5 years ago

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...)

arendst commented 5 years ago

what do non deaf muslims use

Church bells?

jziolkowski commented 5 years ago

More likely the mu'azzin call

salihys commented 5 years ago

They hear the call for prayer "athan"

meingraham commented 5 years ago

Is it possible to perform %sunset%-%sunrise% arithmetic in a rule?

salihys commented 5 years ago

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.