series and json tags

44 views
Skip to first unread message

bell...@gmail.com

unread,
Jul 12, 2021, 8:21:54 PM7/12/21
to weewx-development
I’ve started experimenting with the series and json tags.  Not surprising,  ‘ $week.outTemp.series(time_series='start', aggregate_type='avg', aggregate_interval='hour')’  returns data for the current week. So, this being Monday, I get Sunday and Monday data. What I really want is the last 7 days of data like is graphed in the seasons skin. Or possibly even a random series in the past… 
Thanks for any help/ideas. rich

gjr80

unread,
Jul 13, 2021, 3:39:37 AM7/13/21
to weewx-development
You need to define a tag to cover the period for which you want the stats and then add the newly defined tag to the search list. The stats example gives some example code for doing exactly that for $alltime and $seven_day  tags.

Gary

bell...@gmail.com

unread,
Jul 13, 2021, 8:49:39 AM7/13/21
to weewx-development
Perfect, thanks Gary!
rich

Reply all
Reply to author
Forward
0 new messages