Belchertown graphs not generated properly anymore

97 views
Skip to first unread message

chin0x

unread,
Jun 3, 2025, 6:48:48 PM6/3/25
to weewx-user
Hey guys,
I had weewx running on Simulation with Belchertown for a while without any issues, it generated the graphs properly.
Today I switched to Interceptor driver with my GW2000 (WS90) and now it did not generate the graphs anymore. I have no clue what it is...

Here is the log:

Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator'
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****  Error trying to use database binding wx_binding to graph observation outTemp. Error was: unsupported operand type(s) for %: 'NoneType' and 'int'.
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 109, in get_series
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****      return xtype.get_series(obs_type, timespan, db_manager, aggregate_type,
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 703, in get_series
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****      and aggregate_interval % 86400:
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****  TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****  During handling of the above exception, another exception occurred:
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****    File "/etc/weewx/bin/user/belchertown.py", line 3727, in get_observation_data
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****      (time_start_vt, time_stop_vt, obs_vt) = weewx.xtypes.get_series(
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 114, in get_series
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****      return xtype.get_series(obs_type, timespan, db_manager, aggregate_type,
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 703, in get_series
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****      and aggregate_interval % 86400:
Jun  4 00:20:26 weewx weewxd[807]: Traceback (most recent call last):
Jun  4 00:20:26 weewx weewxd[807]:   File "/usr/share/weewx/weewx/xtypes.py", line 109, in get_series
Jun  4 00:20:26 weewx weewxd[807]:     return xtype.get_series(obs_type, timespan, db_manager, aggregate_type,
Jun  4 00:20:26 weewx weewxd[807]:   File "/usr/share/weewx/weewx/xtypes.py", line 703, in get_series
Jun  4 00:20:26 weewx weewxd[807]:     and aggregate_interval % 86400:
Jun  4 00:20:26 weewx weewxd[807]: TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'
Jun  4 00:20:26 weewx weewxd[807]: During handling of the above exception, another exception occurred:
Jun  4 00:20:26 weewx weewxd[807]: Traceback (most recent call last):
Jun  4 00:20:26 weewx weewxd[807]:   File "/etc/weewx/bin/user/belchertown.py", line 3727, in get_observation_data
Jun  4 00:20:26 weewx weewxd[807]:     (time_start_vt, time_stop_vt, obs_vt) = weewx.xtypes.get_series(
Jun  4 00:20:26 weewx weewxd[807]:   File "/usr/share/weewx/weewx/xtypes.py", line 114, in get_series
Jun  4 00:20:26 weewx weewxd[807]:     return xtype.get_series(obs_type, timespan, db_manager, aggregate_type,
Jun  4 00:20:26 weewx weewxd[807]:   File "/usr/share/weewx/weewx/xtypes.py", line 703, in get_series
Jun  4 00:20:26 weewx weewxd[807]:     and aggregate_interval % 86400:
Jun  4 00:20:26 weewx weewxd[807]: TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'
Jun  4 00:20:26 weewx weewxd[807]: During handling of the above exception, another exception occurred:
Jun  4 00:20:26 weewx weewxd[807]: Traceback (most recent call last):
Jun  4 00:20:26 weewx weewxd[807]:   File "/usr/share/weewx/weewx/reportengine.py", line 248, in run
Jun  4 00:20:26 weewx weewxd[807]:     obj.start()
Jun  4 00:20:26 weewx weewxd[807]:   File "/usr/share/weewx/weewx/reportengine.py", line 465, in start
Jun  4 00:20:26 weewx weewxd[807]:     self.run()
Jun  4 00:20:26 weewx weewxd[807]:   File "/etc/weewx/bin/user/belchertown.py", line 2756, in run
Jun  4 00:20:26 weewx weewxd[807]:     series_data = self.get_observation_data(
Jun  4 00:20:26 weewx weewxd[807]:   File "/etc/weewx/bin/user/belchertown.py", line 3735, in get_observation_data
Jun  4 00:20:26 weewx weewxd[807]:     raise Warning(
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****  TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'
Jun  4 00:20:26 weewx weewxd[807]: Warning: Error trying to use database binding wx_binding to graph observation outTemp. Error was: unsupported operand type(s) for %: 'NoneType' and 'int'.
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****  During handling of the above exception, another exception occurred:
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 248, in run
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****      obj.start()
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 465, in start
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****      self.run()
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****    File "/etc/weewx/bin/user/belchertown.py", line 2756, in run
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****      series_data = self.get_observation_data(
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****    File "/etc/weewx/bin/user/belchertown.py", line 3735, in get_observation_data
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****      raise Warning(
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****  Warning: Error trying to use database binding wx_binding to graph observation outTemp. Error was: unsupported operand type(s) for %: 'NoneType' and 'int'.
Jun  4 00:20:26 weewx weewxd[807]: ERROR weewx.reportengine:         ****  Generator terminated

Tom Keffer

unread,
Jun 3, 2025, 6:59:27 PM6/3/25
to weewx...@googlegroups.com
One of your plots is requesting an aggregation type, but not giving an aggregation interval. For example, and this is just an example, you're asking for a year plot of temperature, aggregated by average, but not giving the aggregation interval (hour? day? month?).

Look over your skin.conf carefully. It's in there somewhere!

-tk

--
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 weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/e57154cd-dd08-46fa-bfdb-f287b64f63b7n%40googlegroups.com.

chin0x

unread,
Jun 3, 2025, 7:02:01 PM6/3/25
to weewx-user
I need to add, that the 24 our graph is working, the others not (3 days, week, month) etc.
I'm not sure if this is not working since I started with a new database and haven't that much values in it actually.

I attached you the graph.conf
graphs.conf.example

chin0x

unread,
Jun 4, 2025, 8:37:15 AM6/4/25
to weewx-user
Thanks for the hint Tom, I found my mistake and it's working now!
Reply all
Reply to author
Forward
0 new messages