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.

Reply via email to