Hi Pat, the Wicki doesn't get me any further because I don't understand
some things and I can't get any graphics as I wish. I want three examples
each the amount of rain per unit of time in mm as a column and the
cumulative total as a line.
Example 25h: The variant with mm / 10min works, but the variant with mm / h
only results in nonsense.
[25h]
# Chart Timespan Defaults
title = "Letzte 25h"
show_button = true
button_text = "Letzte 25h"
time_length = 90000
tooltip_date_format = "LLL"
gapsize = 600000 # This should be your archive_interval from weewx.conf
multiplied by 1000 to get milliseconds. Standard is 5 minutes
[[chart1]]
title = Regen
[[[rain]]]
yAxis = 1
type = column
name = Regen mm/10min
[[[rainTotal]]]
name = Regen Total
[[chart2]]
title = Regen
aggregate_interval = 86400
[[[rain]]]
aggregate_type = sum
yAxis = 1
type = column
name = Regen mm/h
[[[rainTotal]]]
name = Regen Total
[image: high-25h.jpg]
The two variants "Last 7 days" and "Last 30 days", because nothing is
plotted during my attempt.
Can I get the corrected samples?
Thank you for your help
Pat schrieb am Mittwoch, 15. Juli 2020 um 16:32:01 UTC+2:
> So if you don't want the last 2592000 seconds, maybe you want "the last 30
> days" as a rolling window?
>
> In that case, use time_length = days_ago
> <https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation#time_length>
>
> and time_ago = 30
> <https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation#to-graph-days-ago>
>
> Please do read the charts wiki
> <https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation>,
>
> everything is covered there.
>
>
> On Wednesday, July 15, 2020 at 10:26:52 AM UTC-4, Andre wrote:
>>
>> It was just a thought, because with "time_length = 2592000" we do not get
>> the desired values.
>>
>> Am Mittwoch, 15. Juli 2020 16:00:51 UTC+2 schrieb Pat:
>>>
>>> What do you mean real calendar days? The 2592000 is the previous 2592000
>>> seconds. This number can be anything you want.
>>>
>>> On Wednesday, July 15, 2020 at 9:47:21 AM UTC-4, Andre wrote:
>>>>
>>>> With "time_length = month" the values are correct of course.
>>>> Maybe we need a fix to generate real calendar days for "time_length =
>>>> 2592000".
>>>>
>>>> Am Mittwoch, 15. Juli 2020 15:08:23 UTC+2 schrieb Pat:
>>>>>
>>>>> Great point Manfred. If you guys change your time_length to month
>>>>> <https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation#time_length>,
>>>>>
>>>>> do the values match?
>>>>>
>>>>> On Wednesday, July 15, 2020 at 8:59:08 AM UTC-4, Manfred Maier wrote:
>>>>>>
>>>>>> Couldn't this just be an issue with how the timespan for the chart is
>>>>>> defined?
>>>>>> The chart displays the past 2592000 seconds and splits it into pieces
>>>>>> of 86400 seconds (24 hours). But those 24 hours might go from 11am -
>>>>>> 11am.
>>>>>>
>>>>>> Just a thought and probably wrong ...
>>>>>>
>>>>>> Pat schrieb am Mittwoch, 15. Juli 2020 um 14:48:25 UTC+2:
>>>>>>
>>>>>>> I'm at a loss because I can't recreate this.
>>>>>>>
>>>>>>> Please send me a copy of your database as well as your graphs.conf,
>>>>>>> and public_html/belchertown/json/weewx_data.json
>>>>>>>
>>>>>>> My time to dedicate to this is slim right now, so if anyone else
>>>>>>> finds the problem that'd be helpful and I can merge it to development
>>>>>>> branch.
>>>>>>>
>>>>>>>
>>>>>>> On Wednesday, July 15, 2020 at 8:44:58 AM UTC-4, Andre wrote:
>>>>>>>>
>>>>>>>> I can reproduce the display issues.
>>>>>>>> I have dropped all daily reports and rebuild daily.
>>>>>>>>
>>>>>>>> [image: noaa_2020-07.png]
>>>>>>>>
>>>>>>>>
>>>>>>>> Last 7 days
>>>>>>>>
>>>>>>>> [image: last_7_days.png]
>>>>>>>>
>>>>>>>> [image: last_30_days.png]
>>>>>>>> Last 30 days...
>>>>>>>>
>>>>>>>> Am Mittwoch, 15. Juli 2020 14:19:19 UTC+2 schrieb Pat:
>>>>>>>>>
>>>>>>>>> Sounds like you may have some problems with your database. I
>>>>>>>>> suggest you take a backup and follow the database drop-daily
>>>>>>>>> <http://www.weewx.com/docs/utilities.htm#Action_--drop-daily>and
>>>>>>>>> rebuild-daily
>>>>>>>>> <http://www.weewx.com/docs/utilities.htm#Action_--rebuild-daily>and
>>>>>>>>> see if that helps
>>>>>>>>>
>>>>>>>>> The graphs uses your archive table
>>>>>>>>>
>>>>>>>>> The reports uses your daily tables.
>>>>>>>>>
>>>>>>>>> Seems like those aren't in sync for you.
>>>>>>>>>
>>>>>>>>> On Wednesday, July 15, 2020 at 6:16:48 AM UTC-4, Geni 0815 wrote:
>>>>>>>>>>
>>>>>>>>>> Hi Pat, I just noticed the following:
>>>>>>>>>> As an example in the graphic "last 30 days", "rain per day".
>>>>>>>>>> These values sometimes change every hour!
>>>>>>>>>> For my understanding, the amount of rain per day is to be
>>>>>>>>>> understood on a calendar day within the last 30 days.
>>>>>>>>>> In the graphics, however, the day begins fluently.
>>>>>>>>>> I want a day to be a calendar day and not flowing 24h.
>>>>>>>>>> This is how it is handled in the Templete Season.
>>>>>>>>>> How do I have to make the graphic settings so that a day is a
>>>>>>>>>> calendar day?
>>>>>>>>>> I hope I have clearly described my wish.
>>>>>>>>>>
>>>>>>>>>> Am Sonntag, 12. Juli 2020 10:47:51 UTC+2 schrieb Geni 0815:
>>>>>>>>>>>
>>>>>>>>>>> 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/ab1dd54e-19f3-4aa6-acf7-a11352a0c1adn%40googlegroups.com.
# This is the Belchertown skin charting system which utilizes Highcharts to
display the chart data.
#
# PLEASE READ THE CHARTS WIKI! A lot of information is there and it will help
you!
# It is located here:
https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation
#
# Caution!
# The more charts you have, the slower things can become. This is especially
true at the YEAR level. These are interactive charts which have to build plot
points from the database on every archive interval. This could result in large
file sizes to generate, and for your website visitors to download. You're
welcome to customize as many charts as you want, but be warned things could
slow down if you do too much!
# The defaults in this skin have proven to be a good baseline for the number of
charts and options without overwhelming your system.
#
# Overview of options:
# A timespan refers to "day", "week", "month" or "year".
# The first configuration item is the graph group, such as [day], [week],
[month], [year] sections.
# The charts are defined under the graph group and can be renamed and
reorganized. They will display on your website in the order they appear here.
# Under the chart are the observation names from the WeeWX database. Any item
within your database "archive type" can be charted. For a list of "archive
types" refer to this chart. http://weewx.com/docs/customizing.htm#archive_types
# Each observation can be customized with built-in Highcharts "series" options.
Popular ones are color, name and zIndex. For a list of Highcharts Series
options refer to https://api.highcharts.com/highcharts/series
#
# If a custom option broke your charts:
# Undo your change and run wee_reports. You do not need to restart weewx if you
make a graphs.conf change.
# If that doesn't work, undo ALL changes and go back to the default
graphs.conf.example configuration.
# There is no guarantee that every customization option will work.
#
# Detailed settings overview can be found in the wiki under Detailed
Configuration Settings Overview
#
###############################################################################
# Global Chart Defaults
# These are fallback options that charts will use if an option is not defined.
aggregate_type = None
time_length = 90000 # Last 25 hours
type = line
colors = "#7cb5ec, #b2df8a, #f7a35c, #8c6bb1, #dd3497, #e4d354, #268bd2,
#f45b5b, #6a3d9a, #33a02c"
tooltip_date_format = "LLL"
[25h]
# Chart Timespan Defaults
title = "Letzte 25h"
show_button = true
button_text = "Letzte 25h"
time_length = 90000
tooltip_date_format = "LLL"
gapsize = 600000 # This should be your archive_interval from weewx.conf
multiplied by 1000 to get milliseconds. Standard is 5 minutes
[[chart1]]
title = Regen
[[[rain]]]
yAxis = 1
type = column
name = Regen mm/10min
[[[rainTotal]]]
name = Regen Total
[[chart2]]
title = Regen
aggregate_interval = 86400
[[[rain]]]
aggregate_type = sum
yAxis = 1
type = column
name = Regen mm/h
[[[rainTotal]]]
name = Regen Total
[week]
# Chart Timespan Defaults
title = "Letzte 7 Tage"
show_button = true
button_text = "Letzte 7 Tage"
# time_length = 608400 # Last 7 days
time_length = days_ago
time_ago = 7
tooltip_date_format = "LLLL"
aggregate_interval = 86400 # 1 day
gapsize = 86400000
[[chart3]]
title = Regen
[[[rainRate]]]
aggregate_type = sum
yAxis = 1
[[[rainTotal]]]
name = Regen Total
[[DailyRain]]
title = Tägliche Niederschlagsmenge
aggregate_type = sum
aggregate_interval = 86400
[[[rain]]]
name = "Regenmenge (mm/Tag)"
type = column
yAxis = 1
[[[rainTotal]]]
name = "Niederschlagsmenge gesamt"
[month]
# Chart Timespan Defaults
title = "Letzte 30 Tage"
show_button = true
button_text = "Letzte 30 Tage"
type = spline
# time_length = 2592000 # Last 30 days
time_length = days_ago
time_ago = 30
tooltip_date_format = "dddd LL"
aggregate_interval = 86400 # 1 day
gapsize = 86400000 # 1 day in milliseconds
[[chart3]]
title = Regenx2
[[[rainTotal]]]
type = line
name = Regen Total
[[[rain]]]
aggregate_type = sum
yAxis = 1
type = column
[[DailyRain]]
title = Tägliche Niederschlagsmenge
aggregate_type = sum
aggregate_interval = 86400
[[[rain]]]
name = "Regenmenge (mm/Tag)"
type = column
yAxis = 1
[[[rainTotal]]]
name = "Niederschlagsmenge gesamt"