It seems you do not have the correct wxservices.py? The version you need has
class WXCalculate(object): at line 49. wget https://raw.githubusercontent.com/weewx/weewx/master/bin/ weewx/wxservices.py should get you the last version from github. As you found out, trying to change the code to use StdWXCalculate won't work. Also, be aware that if you are importing from WU any of WUs funky, ridiculus values (eg -2139) will be imported directly into your database. At present wee_import only filters ridiculous wind direction values. I have coded in some QC but wee_import is being somewhat changed at the moment and that version would be included on github just yet. You will also need to chnage your date format 2009/03/20 rather than 2009-03-20. Gary On Tuesday, 6 September 2016 11:27:57 UTC+10, [email protected] wrote: > > I changed the weewx.wxservices.WXCalculate to > weewx.wxservices.StdWXCalculate > and now have new errors > > $ sudo ./wee_import --import-config=/etc/weewx/wee_import.conf --wunder > --dry-run --station=INSWBEEL2 --date=2009-03-20 > Starting wee_import... > Traceback (most recent call last): > File "./wee_import", line 2272, in <module> > main() > File "./wee_import", line 608, in main > source_obj = Source.sourceFactory(options, args) > File "./wee_import", line 918, in sourceFactory > options) > File "./wee_import", line 1824, in __init__ > options) > File "./wee_import", line 826, in __init__ > longitude_f) > TypeError: __init__() takes exactly 3 arguments (5 given) > > dropping some arguments from the command line has not helped > > $ sudo ./wee_import --wunder --dry-run --station=INSWBEEL2 > Starting wee_import... > Traceback (most recent call last): > File "./wee_import", line 2272, in <module> > main() > File "./wee_import", line 608, in main > source_obj = Source.sourceFactory(options, args) > File "./wee_import", line 918, in sourceFactory > options) > File "./wee_import", line 1824, in __init__ > options) > File "./wee_import", line 826, in __init__ > longitude_f) > TypeError: __init__() takes exactly 3 arguments (5 given) > > > Liz > -- 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]. For more options, visit https://groups.google.com/d/optout.
