mirror of
https://github.com/acaloiaro/roam-location
synced 2026-07-21 18:29:11 +00:00
Detect twilight by checking when the solar radiation sensor reads low but positive values (< 30 W/m²) while the sun is geometrically near the horizon (sinusoidal fraction < 0.2 or outside model daylight hours). Morning/afternoon local time distinguishes dawn from dusk without hard-coding sunrise/sunset times. |
||
|---|---|---|
| .. | ||
| condition.go | ||
| weather.go | ||