Change Sunrise/Sunset calculation from actual to civil #16795
Replies: 7 comments 11 replies
-
Anyone can propose edits to the docs, when "weak spots" are noticed. Edit link is the pencil near the top/right part of the text. While I do understand the point of changing the default, it would be a breaking change with the risk of existing users getting "surprised". |
Beta Was this translation helpful? Give feedback.
-
I didn't know this option. This feels like it should be a |
Beta Was this translation helpful? Give feedback.
-
The advantage of SetOption is that they are low touch low code impact, but create documentation complexity. |
Beta Was this translation helpful? Give feedback.
-
Given the original usecase I would invest in a light sensor and base switching lights on or off based on the sensor value. Citizens need light based on darkness, not on time. If seasonal changes of dusk and dawn duration already matter, then a light sensor will be better, since on a day with heavy clouds it will be on the desired darkness level much earlier than on a bright full moon evening. |
Beta Was this translation helpful? Give feedback.
-
In latest dev release introduced new command Another "useful" 200 bytes solution.... |
Beta Was this translation helpful? Give feedback.
-
@freedomlives could you please take care of updating the doc? |
Beta Was this translation helpful? Give feedback.
-
So I see this is now a run option rather then compile time option. For years, this is one of the settings I change at compile time. The use case is, I run these devices very far up north, and over there the difference between normal and civil can be very long. Hours even. My current compile time mod
Given that this is a brand new command option, would everyone and especially @freedomlives as you are likely the only current user of this, be OK if the values of In a compromise, in case we worry people are already using Sunrise 1 (civil, it is very unlikely people use the other ones) we could also have 1 remain the meaning of civil (6 degrees) because 1 degee is soo close to 0.8333 degrees, the 1 degree in itself would not have a lot of use. reference:
|
Beta Was this translation helpful? Give feedback.
-
For a year I've been using Tasmota to control the streetlights in our village. I've been bothered by the fact that the sunrise and sunset times available are the actual ones -- meaning, when the sun falls below or rises above the horizon. It remains light enough to see by for some time after and before these events, respectively. So I apply an offset on the timer, but the amount changes by season a bit, so not a nice solution. I was thinking to modify the code of Tasmota, till a few days ago, when for an ESP8285 device I needed to compile firmware with TLS support, and noticed that the sunset/sunrise type is a compile time option in
my_user_config.h
:SUNRISE_DAWN_ANGLE
Possible values are:
DAWN_NORMAL
(default) the moment the sun becomes visible/disappears at the horizonDAWN_CIVIL
when it begins to be / stops being possible to work outside without artificial lightDAWN_NAUTIC
when it begins to be / stops being possible to navigate a ship at sea (by looking on the coastline?)DAWN_ASTRONOMIC
when it stops being / starts being possible to see all of the starsI'd be willing to bet that most people using the sunrise / sunset times are trying to control lights, and civil sunrise/sunset is the time that is most relevant for them. And therefore this ought to be the default in the pre-compiled Tasmota binaries.
It would also be good to mention in the documentation for Tasmota that this a compile time option, just as the need to compile in support for TLS one ESP8266 is mentioned in the documentation. Perhaps someone is automating an astronomical observatory, and DAWN_ASTRONOMIC would be more useful for them.
9 votes ·
Beta Was this translation helpful? Give feedback.
All reactions