Hi Pat, for me the mistake is more than just a rounding.

Day     in the report      in graphics
26            20.0                23.4
27             3.4                  0.0
28             8.6                33.2
29           24.8                  0.2

01            13.4                18.6
02             5.4                 0.8
03             0.6                 0.0
10             9.0                15.0
11             8.6                 3.2
12             1.0                 0.4


Am Dienstag, 14. Juli 2020 19:44:15 UTC+2 schrieb Pat:
>
> Edit your bin/user/belchertown.py file. 
>
> Look for this line:
>
>         if time_length == "today" or time_length == "timespan_specific" or 
> isinstance(time_length, int):
>
>
> Change it to
>
>         if time_length == "today" or time_length == "timespan_specific":
>
>
>
> Update your graphs.conf with this
>
> [month]
>     # Chart Timespan Defaults
>     title = "Letzte 30 Tage"
>     show_button = true
>     button_text = "Letzte 30 Tage"
>     type = spline
>     time_length = 2592000 # Last 30 days
>     tooltip_date_format = "dddd LL"
>     aggregate_type = max
>     aggregate_interval = 86400 # 1 day
>     gapsize = 86400000 # 1 day in milliseconds
>    
>     [[chart3]]
>         title = Regenx
>         [[[rainTotal]]]
>             type = line
>             name = Rain Total
>         [[[rain]]]   
>             aggregate_type = sum
>             yAxis = 1
>             type = column
>
>
> Restart weewx and let me know if this works for you.
>
> Highcharts looks to be doing a little bit of rounding. I'm seeing my 2.42
>
>
> On Tuesday, July 14, 2020 at 12:59:42 PM UTC-4, Pat wrote:
>>
>> The rainTotal is the accumulation over the time span, so that will be 
>> your line graph. 
>>
>> The rain will show you rain over the aggregate_interval - so for this 
>> chart it's 1 day. 
>>
>> So your graph looks right, but I'm seeing the data a little wrong too. 
>> For example on June 28 I had 2.41 inches rain, but the graph shows it on 
>> June 29. 
>>
>> I'll look at why it's showing the wrong day. I think it's a setting with 
>> the way the json generator is running
>>
>>
>> On Tuesday, July 14, 2020 at 12:15:48 PM UTC-4, Geni 0815 wrote:
>>>
>>> I would like to have a graph of the last 30 days with a column with the 
>>> amount of rain per day and a curve that accumulates these daily amounts.
>>> What should the definition in fer Graphic.conf look like?
>>> Do these daily values have to match the NOAA reports?
>>>
>>> Am Dienstag, 14. Juli 2020 16:52:45 UTC+2 schrieb Pat:
>>>>
>>>> Which one is the error? rainTotal does not use the aggregate_type since 
>>>> it is already aggregating these totals. 
>>>>
>>>> On Monday, July 13, 2020 at 1:54:36 AM UTC-4, [email protected] 
>>>> wrote:
>>>>>
>>>>> @Pat: The error is not only with me, also with @Andre. I see the 
>>>>> error when the graphic "last 30 days" has been selected and the rain is 
>>>>> selected as the daily total bar. The graphics are one day late. No 
>>>>> daily value is correct, the sum of 3-4 days is correct again. In my 
>>>>> opinion the graphic has problems to calculate the correct local start and 
>>>>> end of the day. 
>>>>>
>>>>> [email protected] schrieb am Sonntag, 12. Juli 2020 um 10:47:51 
>>>>> UTC+2:
>>>>>
>>>>>> On 3 days we had rain of 9mm, 8.6mm and 0.6mm. The graphic now shows 
>>>>>> 0mm, 15mm and 3.2mm on the corresponding days. The sum is correct but 
>>>>>> wrongly divided. Where is the mistake?
>>>>>> [image: belch10.jpg]
>>>>>> [image: belch11.jpg]
>>>>>> [month]
>>>>>>     # Chart Timespan Defaults
>>>>>>     title = "Letzte 30 Tage"
>>>>>>     show_button = true
>>>>>>     button_text = "Letzte 30 Tage"
>>>>>>     type = spline
>>>>>>     time_length = 2592000 # Last 30 days
>>>>>>     tooltip_date_format = "dddd LL"
>>>>>>     aggregate_type = max
>>>>>>     aggregate_interval = 86400 # 1 day
>>>>>>     gapsize = 86400000 # 1 day in milliseconds
>>>>>>     
>>>>>>     [[chart3]]
>>>>>>         title = Regenx
>>>>>>         type = line
>>>>>>         aggregate_type=sum
>>>>>>         [[[rainTotal]]]
>>>>>>             name = Regen Total
>>>>>>         [[[rain]]]    
>>>>>>             yAxis = 1
>>>>>>             type = column
>>>>>>     
>>>>>> Live: https://affolter.familyds.net/wetter/graphs/?graph=month
>>>>>>
>>>>>

-- 
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/34034a73-3e96-49eb-a73b-f3add3487577o%40googlegroups.com.

Reply via email to