Replies: 16 comments 17 replies
-
In the context of Tasmota, what do you mean by this:
Tasmota sunset/sunrise calculation does not worry about twilight, but merely calculates the time of passing the geometric horizon. Sunrise is always the time of sunrise, any twilight is before that, and is outside of what the Tasmota Timers schedule supports. You can to some extent adjust for twilight by selecting a +/- offset, but that way cannot adjust for the very varying length of twilight when getting far from the equator. To make sure to config Tasmota devices for your lat/lon, I can recommend using https://tasmota-tz.netlify.app/ |
Beta Was this translation helpful? Give feedback.
-
From the Tasmota documentation
Could you please give some info about the Sunrise documentation, thx |
Beta Was this translation helpful? Give feedback.
-
Thanks to @Wintespe and @sfromis
I am completely familiar with the calculations for different types of twilight and so on (see: https://github.com/zwim/suntime, which is used in KOReader). So I would ask for either rename the "Sunset" and "Sunrise" menu entries to something generic like "End/start of the calculated day according to user settings like normal, civil, nautical or astronomical" (preferable shorter) or do a minimalistic switch case statement and
Cheers, |
Beta Was this translation helpful? Give feedback.
-
@sfromis You can find a very detailed and precise implementation in LUA (incl. citations of relevant papers) in https://github.com/zwim/suntime. For the next few centuries the errors in this implementation are within 90s in mean geographic latitudes (near the poles ((Iceland)) everything gets a bit complicated). I don't know how much Tasmota follows the scientific consensus, but I can give a leap of faith (as the times I have seen in my Tasmota devices) is not bad (in fact they are quite accurate). |
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed information and links. I will study the documentation |
Beta Was this translation helpful? Give feedback.
-
What about a dropbox matching the Sunrise command: Values from the dropbox would the one from the doc : Normal, Civil, Nautic, Astronomic |
Beta Was this translation helpful? Give feedback.
-
How about setting the Sunrise/Sunset text boxes with a command similar the WebButton command? |
Beta Was this translation helpful? Give feedback.
-
Working on a lowest cost solution: |
Beta Was this translation helpful? Give feedback.
-
Try latest dev branch. |
Beta Was this translation helpful? Give feedback.
-
@arendst I will test as soon as I am back at home (and have time). Thanks a lot. The screenshot looks exactly what I was asking for. |
Beta Was this translation helpful? Give feedback.
-
@arendst This looks very good. Please adjust the text as follows; Sonnenaufgang astronomisch -> Astronomischer Sonnenaufgang |
Beta Was this translation helpful? Give feedback.
-
@arendst Thanks! Works. @Wintespe I don't mind if it is "Sonnenaufgang astronomisch" or "Astronomischer Sonnenaufgang". |
Beta Was this translation helpful? Give feedback.
-
Please think about these two sentences I play with a ball red . |
Beta Was this translation helpful? Give feedback.
-
A comma is OK. Just a suggestion: This is how I solved this kind of problem in my projects: joue avec le ballon [1] I am playing with a [1] ball Ich spiele mit einem [1] Ball I call a function that takes the string abobe and a parameter. The parameter can be taken from the language file using a key or is a variable. This function then replaces the placeholder [1] with the parameter if it is found, otherwise it is / can removed. In the real world the number of parameters is variable and there are multiple placeholders. Maybe this idea is useful for Tasmota. |
Beta Was this translation helpful? Give feedback.
-
@sfromis |
Beta Was this translation helpful? Give feedback.
-
Final suggested change just made to dev branch. End of discussion ;-) |
Beta Was this translation helpful? Give feedback.
-
PROBLEM DESCRIPTION
Currently in the schedule you can select sunrise/sunset and depending on the sunset/sunrise setting normal, civil, nautic or atronomic times are used, which is totally correct.
See

As I have some devices using the normal sunset and others using the civil twilight it would be very nice (and make things a bit clearer) to show the type of sunset/sunrise in
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
The information, which type of twilight is used is missing.
EXPECTED BEHAVIOUR
Show type of twilight in the schedule
SCREENSHOTS
Add normal, civil, nautic, atronomic to the schedule (of course not in red)
ADDITIONAL CONTEXT
Beta Was this translation helpful? Give feedback.
All reactions