To avoid rewriting the graph.conf, I simply copied the old version (1.1.) into the Belchertown skin 1.2. I will now rewrite to '300'. If it doesn't work, install it again.
Am Montag, 3. August 2020 16:41:52 UTC+2 schrieb Pat: > > Ah, I see your gapsize is still in milliseconds. That tells me you haven't > upgraded to the latest version of the skin, or you've skipped upgrading > belchertown.py. > > Keep your graphs.conf the same, and upgrade all files to the latest > version of all files. You'll notice in the development release notes > <https://github.com/poblabs/weewx-belchertown/blob/development/changelog>the > breaking change of gapsize is now in seconds (300) , not milliseconds > (300000) > > On Sunday, August 2, 2020 at 6:35:10 AM UTC-4 [email protected] wrote: > >> Hi, >> >> i try to create a chart with time-lenght=day_ago_to_now or >> hour_ago_to_now according to the documentation. >> I do not succeed. >> >> WeeWX version: 4.1.1 Belchertown Skin Version: 1.2rc1 >> >> /var/log/weewx.log >> >> weewx.cheetahgenerator: Generated 11 files for report Belchertown in 0.82 >> seconds >> weewx.reportengine: Copied 3 files to /var/www/html/public_html >> weewx.reportengine: Caught unrecoverable exception in generator >> 'user.belchertown.HighchartsJsonGenerator' >> weewx.reportengine: **** invalid literal for int() with base 10: >> 'day_ago_to_now' >> weewx.reportengine: **** Traceback (most recent call last): >> weewx.reportengine: **** File >> "/usr/share/weewx/weewx/reportengine.py", line 197, in run >> weewx.reportengine: **** obj.start() >> weewx.reportengine: **** File >> "/usr/share/weewx/weewx/reportengine.py", line 280, in start >> weewx.reportengine: **** self.run() >> weewx.reportengine: **** File >> "/usr/share/weewx/user/belchertown.py", line 1507, in run >> weewx.reportengine: **** time_length = int(time_length) # >> Convert to int() for minstamp math and for point_timestamp conditional later >> weewx.reportengine: **** ValueError: invalid literal for int() >> with base 10: 'day_ago_to_now' >> weewx.reportengine: **** Generator terminated >> >> -------------------------- >> graphs.conf >> >> aggregate_type = None >> time_length = 90000 # Last 25 hours >> type = line >> tooltip_date_format = "LLL" >> >> [homepage] >> # Chart Timespan Defaults >> title = "Homepage" >> show_button = true >> button_text = "Homepage" >> # time_length = today >> tooltip_date_format = "LLL" >> gapsize = 300000 >> >> [[chart1]] >> title = Temperature >> time_length = day_ago_to_now >> time_ago = 1 >> start_at_midnight = true >> [[[outTemp]]] >> zIndex = 1 >> name = Temperature >> >> >> Joachim >> >> -- 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/4c86c1fb-8a2d-4ae1-9ebf-6802a277d3b5o%40googlegroups.com.
