Patch is working. Happy to finally be able to contribute in some way. Can’t thank you, Matthew, Gary, and all the others for this great software. - rich
On Tuesday, 19 November 2019 18:41:10 UTC-5, Tom Keffer wrote: > You're making it easy! > > > Turns out the vector arithmetic got neglected as well. I think I got it all > fixed in commit 073be00. You can just download xtypes.py if you want to patch > your copy, or do a pull on the repository. > > > On Tue, Nov 19, 2019 at 1:25 PM Rich Bell <[email protected]> wrote: > > I'm throwing various extensions that I have collected at the beta, so feel > free to push back if the problem needs an update to the extension. > Under python 2 I am getting this: > > > > Traceback (most recent call last): > File "/home/pi/4.0.0b1/bin/weewx/reportengine.py", line 202, in run > obj.start() > File "/home/pi/4.0.0b1/bin/weewx/reportengine.py", line 285, in start > self.run() > File "/home/pi/4.0.0b1/bin/weewx/imagegenerator.py", line 41, in run > self.genImages(self.gen_ts) > File "/home/pi/4.0.0b1/bin/weewx/imagegenerator.py", line 180, in genImages > aggregate_interval=aggregate_interval) > File "/home/pi/4.0.0b1/bin/weewx/xtypes.py", line 77, in get_series > return xtype.get_series(obs_type, timespan, db_manager, aggregate_type, > aggregate_interval) > File "/home/pi/4.0.0b1/bin/weewx/xtypes.py", line 573, in get_series > return SeriesArchive.get_series(obs_type, timespan, db_manager, > aggregate_type, aggregate_interval) > File "/home/pi/4.0.0b1/bin/weewx/xtypes.py", line 126, in get_series > agg_vt = get_aggregate(obs_type, stamp, do_aggregate, db_manager) > File "/home/pi/4.0.0b1/bin/weewx/xtypes.py", line 91, in get_aggregate > return xtype.get_aggregate(obs_type, timespan, aggregate_type, > db_manager, **option_dict) > File "/home/pi/4.0.0b1/bin/weewx/xtypes.py", line 656, in get_aggregate > value = complex(row[0], row[1]) > TypeError: complex() argument must be a string or a number > > > I wrapped the line in a try/except to print out some variables, so it is > actually line 655 in xtypes > Here are the values for select_stmt, aggregate_type, and row > > SELECT windGust, windGustDir, usUnits FROM archive WHERE windGust = (SELECT > MAX(windGust) FROM archive WHERE dateTime > 1574139600 AND dateTime <= > 1574143200 AND windGust IS NOT NULL) > max > (0.0, None, 1) > > > -rich > > > > > -- > > You received this message because you are subscribed to the Google Groups > "weewx-development" 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-development/2f201206-3b3c-49b8-b653-40f6473fcae2%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/98ce7dcf-7d62-4997-89fe-56cb6dad1b8d%40googlegroups.com.
