Seems like it's SQL sorting it as part of the query because of the GROUP BY 
<https://github.com/poblabs/weewx-belchertown/blob/master/bin/user/belchertown.py#L1789-L1792>.
 
Need to research how to make it knock it off. 

On Tuesday, June 9, 2020 at 6:45:10 PM UTC-4 Pat wrote:

> Ah, wait, I think I understand even more now. If I set it to 14 days like 
> yours, I get the weird day offset happening. 
>
> It's showing the days in numerical order, not in calendar order (It should 
> be 9, 8, 7, 6, 5, 4, 3, 2, 1, 31, 30, 29, 28, 27, 26)
>
> Let me look into if there's a way to change the sort in graphs.conf
>
>
>
> On Tuesday, June 9, 2020 at 6:42:04 PM UTC-4 Pat wrote:
>
>> Thanks! I've been drinking a lot of it lately with my 2 month old and my 
>> 2 year old :) Sleep will get back to normal again, right?
>>
>> Ok I think I understand now. The time_length 
>> <https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation#time_length>of
>>  
>> "month" or "week" will begin on the 1st day of the month, or Sunday. You 
>> want time_length =  604800 - this is the number of seconds for the last 7 
>> days.  Adjust to however many seconds in the past you want to show. 
>>
>> The code below will give the result attached
>>
>> [raintotals]
>>     title = Rain Totals by Month
>>     show_button = true
>>     button_text = Rain Totals
>>     type = column
>>     time_length = 604800
>>     aggregate_type = max
>>     aggregate_interval = 86400 # 1 day
>>
>>     [[raindaytotals]]
>>         title = Historical Rain Totals For The Last 7 Days
>>         xAxis_groupby = day
>>         [[[rainTotal]]]
>>             name = Rain Total
>>             
>>
>> On Tuesday, June 9, 2020 at 5:49:43 PM UTC-4 [email protected] wrote:
>>
>>>
>>> I just bought you a cup of coffee.  Thanks for the great skin and 
>>> support!
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/80f590a4-ce4f-46ad-bafc-d26a951ee366n%40googlegroups.com.

Reply via email to