Maybe I'll punt on windrun and just look at average windspeed...

On Tuesday, June 4, 2024 at 8:42:07 AM UTC-6 pannetron wrote:

> That much I knew, and it's the easy part.  What I want help with is adding 
> windrun as, I guess, an aggregate type. I think that's core weewx. Here's 
> the relevant traceback. You can see that xtypes.get_series() failed to find 
> an aggregate type for windrun:
>
> Jun  4 08:05:17 pi4-3 wee_reports[25376] ERROR weewx.reportengine: Caught 
> unrecoverable exception in generator 
> 'user.belchertown.HighchartsJsonGenerator'
> Jun  4 08:05:17 pi4-3 wee_reports[25376] ERROR weewx.reportengine:         
> ****  Error trying to use database binding wx_binding to graph observation 
> windrun. Error was: 'windrun' or 'max'.
> Jun  4 08:05:17 pi4-3 wee_reports[25376] ERROR weewx.reportengine:         
> ****  Traceback (most recent call last):
> Jun  4 08:05:17 pi4-3 wee_reports[25376] ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/user/belchertown.py", line 2335, in 
> get_observation_data
> Jun  4 08:05:17 pi4-3 wee_reports[25376] ERROR weewx.reportengine:         
> ****      (time_start_vt, time_stop_vt, obs_vt) = 
> archive.getSqlVectors(TimeSpan(start_ts, end_ts), obs_lookup, 
> aggregate_type, aggregate_interval)
> Jun  4 08:05:17 pi4-3 wee_reports[25376] ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/manager.py", line 612, in getSqlVectors
> Jun  4 08:05:17 pi4-3 wee_reports[25376] ERROR weewx.reportengine:         
> ****      return weewx.xtypes.get_series(obs_type, timespan, self,
> Jun  4 08:05:17 pi4-3 wee_reports[25376] ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/xtypes.py", line 116, in get_series
> Jun  4 08:05:17 pi4-3 wee_reports[25376] ERROR weewx.reportengine:         
> ****      raise weewx.UnknownType(msg)
> Jun  4 08:05:17 pi4-3 wee_reports[25376] ERROR weewx.reportengine:         
> ****  weewx.UnknownType: 'windrun' or 'max'
> Jun  4 08:05:17 pi4-3 wee_reports[25376] ERROR weewx.reportengine:  
>
> So now I'm reading the XTypes documentation to learn how to add windrun: 
> https://github.com/weewx/weewx/wiki/xtypes
>
>
> Just add a section that looks like the others, naming it something 
> [unique] and referencing the windrun element.
>
> Something like the following (untested):
>
>     [[chart123]]
>         title = Wind Run
>         [[[windrun]]]
>
> Pat has extensive documentation at 
> https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation
>  
> with examples.
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/2be8f695-8e96-4808-aa63-856da9d0b64cn%40googlegroups.com.

Reply via email to