Hello, Tarmo

One of the images that you are trying to generate has an option y_scale
<http://www.weewx.com/docs/customizing.htm#Plot_scaling_options> with a
min_interval of zero, or less than zero.

Look in the file /home/weewx/skins/Seasons/skin.conf for images that use
y_scale. They will look something like this:

    yscale = 10, 20, -1

or like this

    yscale = 10, 20, 0

The "10" and the "20" do not matter. It's the last number that we care
about. It cannot be less than or equal to zero.

If you're having trouble, post the file skin.conf.

-tk

On Thu, Jan 14, 2021 at 3:37 AM Tarmo <[email protected]> wrote:

> Hi,
>
> Please help with this:
>
> Jan 14 13:21:58 pi3 systemd[1]: Starting LSB: weewx weather system...
> Jan 14 13:21:59 pi3 weewx[1306] INFO __main__: Initializing weewx version
> 4.3.0b2
> Jan 14 13:21:59 pi3 weewx[1306] INFO __main__: Using Python 3.5.3
> (default, Nov 18 2020, 21:09:16) #012[GCC 6.3.0 20170516]
> Jan 14 13:21:59 pi3 weewx[1306] INFO __main__: Platform
> Linux-4.19.66-v7+-armv7l-with-debian-9.13
> Jan 14 13:21:59 pi3 weewx[1306] INFO __main__: Locale is 'en_GB.UTF-8'
> Jan 14 13:21:59 pi3 weewx[1306] INFO __main__: PID file is
> /var/run/weewx.pid
> Jan 14 13:21:59 pi3 weewx[1310] INFO __main__: Using configuration file
> /home/weewx/weewx.conf
> Jan 14 13:21:59 pi3 weewx[1310] INFO __main__: Debug is 0
> Jan 14 13:21:59 pi3 weewx[1310] INFO weewx.engine: Loading station type
> Vantage (weewx.drivers.vantage)
> Jan 14 13:21:59 pi3 weewx[1295]: Starting weewx weather system: weewx.
> Jan 14 13:21:59 pi3 systemd[1]: Started LSB: weewx weather system.
> Jan 14 13:21:59 pi3 weewx[1310] INFO weewx.engine: StdConvert target unit
> is 0x1
> Jan 14 13:21:59 pi3 weewx[1310] INFO weewx.engine: Archive will use data
> binding wx_binding
> Jan 14 13:21:59 pi3 weewx[1310] INFO weewx.engine: Record generation will
> be attempted in 'hardware'
> Jan 14 13:21:59 pi3 weewx[1310] INFO weewx.engine: Using archive interval
> of 300 seconds (specified by hardware)
> Jan 14 13:21:59 pi3 weewx[1310] INFO weewx.restx: StationRegistry: Station
> will be registered.
> Jan 14 13:21:59 pi3 weewx[1310] INFO user.mqtt: service version is 0.22
> Jan 14 13:21:59 pi3 weewx[1310] INFO user.mqtt: binding to loop
> Jan 14 13:21:59 pi3 weewx[1310] INFO user.mqtt: topic is weather
> Jan 14 13:21:59 pi3 weewx[1310] INFO user.mqtt: desired unit system is
> METRIC
> Jan 14 13:21:59 pi3 weewx[1310] INFO user.mqtt: data will be uploaded to
> mqtt://ilm:xxx@localhost:1883/
> Jan 14 13:21:59 pi3 weewx[1310] INFO weewx.restx: Wunderground-PWS: Data
> for station IHARJUMA19 will be posted
> Jan 14 13:21:59 pi3 weewx[1310] INFO user.windy: version is 0.7
> Jan 14 13:21:59 pi3 weewx[1310] INFO user.windy: Data will be uploaded to
> https://stations.windy.com/pws/update
> Jan 14 13:21:59 pi3 weewx[1310] INFO __main__: Starting up weewx version
> 4.3.0b2
> Jan 14 13:21:59 pi3 weewx[1310] INFO weewx.engine: Clock error is 0.06
> seconds (positive is fast)
> Jan 14 13:21:59 pi3 weewx[1310] INFO weewx.engine: Using binding
> 'wx_binding' to database 'weewx.sdb'
> Jan 14 13:21:59 pi3 weewx[1310] INFO weewx.manager: Starting backfill of
> daily summaries
> Jan 14 13:21:59 pi3 weewx[1310] INFO weewx.engine: Starting main packet
> loop.
> Jan 14 13:25:20 pi3 weewx[1310] INFO weewx.manager: Added record
> 2021-01-14 13:25:00 EET (1610623500) to database 'weewx.sdb'
> Jan 14 13:25:20 pi3 weewx[1310] INFO weewx.manager: Added record
> 2021-01-14 13:25:00 EET (1610623500) to daily summary in 'weewx.sdb'
> Jan 14 13:25:22 pi3 weewx[1310] INFO weewx.restx: Windy: Published record
> 2021-01-14 13:25:00 EET (1610623500)
> Jan 14 13:25:22 pi3 weewx[1310] INFO weewx.restx: StationRegistry:
> Published record 2021-01-14 13:25:00 EET (1610623500)
> Jan 14 13:25:22 pi3 weewx[1310] INFO weewx.restx: Wunderground-PWS:
> Published record 2021-01-14 13:25:00 EET (1610623500)
> Jan 14 13:27:00 pi3 weewx[1310] INFO weewx.cheetahgenerator: Generated 158
> files for report SeasonsReport in 98.47 seconds
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: Caught
> unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** math domain
> error
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** Traceback
> (most recent call last):
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** File
> "/home/weewx/bin/weewx/reportengine.py", line 196, in run
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** obj.start()
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** File
> "/home/weewx/bin/weewx/reportengine.py", line 281, in start
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** self.run()
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** File
> "/home/weewx/bin/weewx/imagegenerator.py", line 41, in run
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: ****
> self.genImages(self.gen_ts)
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** File
> "/home/weewx/bin/weewx/imagegenerator.py", line 263, in genImages
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** image =
> plot.render()
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** File
> "/home/weewx/bin/weeplot/genplot.py", line 210, in render
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: ****
> self._calcYScaling()
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** File
> "/home/weewx/bin/weeplot/genplot.py", line 517, in _calcYScaling
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** self.yscale
> = weeplot.utilities.scale(ymin, ymax, self.yscale, nsteps=self.y_nticks)
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** File
> "/home/weewx/bin/weeplot/utilities.py", line 132, in scale
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** mag =
> math.floor(math.log10(steps))
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** ValueError:
> math domain error
> Jan 14 13:27:06 pi3 weewx[1310] ERROR weewx.reportengine: **** Generator
> terminated
> Jan 14 13:27:06 pi3 weewx[1310] INFO weewx.reportengine: Copied 15 files
> to /var/ramdisk/ilmajaam
> Jan 14 13:27:07 pi3 weewx[1310] INFO weeutil.rsyncupload: rsync'd 206
> files (865,386 bytes) in 0.95 seconds
>
> --
> 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/4a9fa165-a2d6-42ee-bd21-b592e83bac22n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/4a9fa165-a2d6-42ee-bd21-b592e83bac22n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPq0zEBP%3DbQnpngrE69v9FG695zLXPmrSgHyiYAddryctXznHg%40mail.gmail.com.

Reply via email to