Concerning the error with local variable ‘time_start_vt’ , I am not 100% 
sure, but it may indicate that the  belchertown script try to generate a 
chart of an observation that is not in your weewx database.

Could you share your graph.conf file as well as your weewx.conf file ?   

Le lundi 16 février 2026 à 23:20:17 UTC+1, O S a écrit :

Hello again, Tom,

OK, that worked! It ended up that it was in graphs.conf, which makes sense 
when you look at my first post here :) Brilliant - thank you again.

One issue, I now have this when generating a report with: sudo weectl 
report run Belchertown:

Traceback (most recent call last):
File “/usr/share/weewx/weewx/reportengine.py”, line 248, in run
obj.start()
File “/usr/share/weewx/weewx/reportengine.py”, line 465, in start
self.run()

File “/etc/weewx/bin/user/belchertown.py”, line 2948, in run
series_data = self.get_observation_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/etc/weewx/bin/user/belchertown.py”, line 3722, in 
get_observation_data
time_start_vt, time_stop_vt, obs_vt, start_ts, end_ts, aggregate_interval
^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable ‘time_start_vt’ where it is 
not associated with a value

So, I will try to figure this one out now!
​
Cheers :)

-- 
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 visit 
https://groups.google.com/d/msgid/weewx-user/784e8656-c836-4584-adc1-c10d57db93c0n%40googlegroups.com.

Reply via email to