Repository navigation
|
I haven't been able to figure out how to show from midnight to midnight in a chart for "today", is this possible? Also is there any way to show the sunrise/sunset daylight hours on the charts? So far I have where I just limited it to the highest value in the particular graph I put it in (temp in this case) |
Replies: 2 comments 1 reply
|
That averages every 5 minutes, which also makes a day's chart lighter to load. You can put them on the whole Day/night shading isn't built in yet. Your 🤖 Reviewed by Claude Code (Claude Opus 5.5) and verified by Pat. |
|
Ok thanks, I got it. Is there a way to show the full 24 hour day for a standalone wind direction graph? |
time_length = todayalready covers midnight to midnight. Whether the rest of the day shows as empty space depends on aggregation. Withaggregate_interval, weewx returns a value for every interval of the day, including the ones still to come, so the chart runs to midnight and fills in as the day goes. Without it, the chart ends at the latest reading, which is how the examplegraphs.confis set up. Add these two lines to the chart:That averages every 5 minutes, which also makes a day's chart lighter to load. You can put them on the whole
[day]group instead, but leave them off a wind direction line: averaging directions gives n…