That's it! Big tip o' the hat.


I guess it's well-known that the forecast extension version 3.3.2 also 
needs a little make-over to become python 3.7 "compliant", but with all 
those changes to forecasting APIs and licenses it's probably dificult times 
for forecasting anyway (and not an integral part of weewx).


May  1 23:25:44 hjernen weewx[1659] CRITICAL __main__:     ****      
self.loadServices(config_dict)
May  1 23:25:44 hjernen weewx[1659] CRITICAL __main__:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 138, in loadServices
May  1 23:25:44 hjernen weewx[1659] CRITICAL __main__:     ****      obj = 
weeutil.weeutil.get_object(svc)(self,config_dict)
May  1 23:25:44 hjernen weewx[1659] CRITICAL __main__:     ****    File 
"/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
May  1 23:25:44 hjernen weewx[1659] CRITICAL __main__:     ****      mod = 
__import__(module)
May  1 23:25:44 hjernen weewx[1659] CRITICAL __main__:     ****    File 
"/usr/share/weewx/user/forecast.py", line 567
May  1 23:25:44 hjernen weewx[1659] CRITICAL __main__:     ****      except 
OSError, e:
May  1 23:25:44 hjernen weewx[1659] CRITICAL __main__:     
****                    ^
May  1 23:25:44 hjernen weewx[1659] CRITICAL __main__:     ****  
SyntaxError: invalid syntax
May  1 23:25:44 hjernen weewx[1659] CRITICAL __main__:     ****  Exiting.

Anders

fredag den 1. maj 2020 kl. 16.33.00 UTC+2 skrev Tom Keffer:
>
> Those pesky integer divides...
>
> I went through the driver top to bottom and I think I found them all.
>
>
> On Fri, May 1, 2020 at 7:20 AM Michael <wee...@gmx.de <javascript:>> 
> wrote:
>
>> thx, but now i get this:
>>
>> May  1 16:18:23 raspi01 weewx-tfa[6402] INFO __main__: Initializing weewx 
>> version 4.0.0
>> May  1 16:18:23 raspi01 weewx-tfa[6402] INFO __main__: Using Python 3.7.3 
>> (default, Dec 20 2019, 18:57:59) #012[GCC 8.3.0]
>> May  1 16:18:23 raspi01 weewx-tfa[6402] INFO __main__: Platform 
>> Linux-4.19.75-v7+-armv7l-with-debian-10.3
>> May  1 16:18:23 raspi01 weewx-tfa[6402] INFO __main__: Locale is 
>> 'de_DE.UTF-8'
>> May  1 16:18:23 raspi01 weewx-tfa[6402] INFO __main__: PID file is 
>> /var/run/weewx-tfa.pid
>> May  1 16:18:23 raspi01 weewx-tfa[6406] INFO __main__: Using 
>> configuration file /home/weewx/tfa.conf
>> May  1 16:18:23 raspi01 weewx-tfa[6406] INFO weewx.engine: Loading 
>> station type TE923 (weewx.drivers.te923)
>> May  1 16:18:23 raspi01 weewx-tfa[6406] INFO weewx.drivers.te923: driver 
>> version is 0.40
>> May  1 16:18:23 raspi01 weewx-tfa[6406] INFO weewx.drivers.te923: polling 
>> interval is 10
>> May  1 16:18:23 raspi01 weewx-tfa[6406] INFO weewx.drivers.te923: sensor 
>> map is {'windLinkStatus': 'link_wind', 'windBatteryStatus': 'bat_wind', 
>> 'rainLinkStatus': 'link_rain', 'rainBatteryStatus': 'bat_rain', 
>> 'uvLinkStatus': 'link_uv', 'uvBatteryStatus': 'bat_uv', 'inTemp': 't_in', 
>> 'inHumidity': 'h_in', 'outTemp': 't_1', 'outHumidity': 'h_1', 
>> 'outTempBatteryStatus': 'bat_1', 'outLinkStatus': 'link_1', 'extraTemp1': 
>> 't_2', 'extraHumid1': 'h_2', 'extraBatteryStatus1': 'bat_2', 
>> 'extraLinkStatus1': 'link_2', 'extraTemp2': 't_3', 'extraHumid2': 'h_3', 
>> 'extraBatteryStatus2': 'bat_3', 'extraLinkStatus2': 'link_3', 'extraTemp3': 
>> 't_4', 'extraHumid3': 'h_4', 'extraBatteryStatus3': 'bat_4', 
>> 'extraLinkStatus3': 'link_4', 'extraTemp4': 't_5', 'extraHumid4': 'h_5', 
>> 'extraBatteryStatus4': 'bat_5', 'extraLinkStatus4': 'link_5'}
>> May  1 16:18:23 raspi01 weewx-tfa[6406] INFO weewx.drivers.te923: Found 
>> device on USB bus= device=
>> May  1 16:18:25 raspi01 weewx-tfa[6406] ERROR weewx.drivers.te923: Failed 
>> attempt 1 of 5 to read data: [Errno 110] Operation timed out
>> May  1 16:18:29 raspi01 weewx-tfa[6406] INFO weewx.drivers.te923: logger 
>> capacity 3442 records
>> May  1 16:18:29 raspi01 weewx-tfa[6406] ERROR weewx.engine: Import of 
>> driver failed: integer argument expected, got float (<class 'TypeError'>)
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL weewx.engine:     ****  
>> Traceback (most recent call last):
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL weewx.engine:     
>> ****    File "/home/weewx/bin/weewx/engine.py", line 103, in setupStation
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL weewx.engine:     
>> ****      self.console = loader_function(config_dict, self)
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL weewx.engine:     
>> ****    File "/home/weewx/bin/weewx/drivers/te923.py", line 456, in loader
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL weewx.engine:     
>> ****      return TE923Driver(**config_dict[DRIVER_NAME])
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL weewx.engine:     
>> ****    File "/home/weewx/bin/weewx/drivers/te923.py", line 1139, in 
>> __init__
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL weewx.engine:     
>> ****      ts = self.station.get_date()
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL weewx.engine:     
>> ****    File "/home/weewx/bin/weewx/drivers/te923.py", line 2063, in 
>> get_date
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL weewx.engine:     
>> ****      ts = time.mktime((year, month, day + offset, 0, 0, 0, 0, 0, 0))
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL weewx.engine:     ****  
>> TypeError: integer argument expected, got float
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL __main__: Unable to load 
>> driver: integer argument expected, got float
>> May  1 16:18:29 raspi01 weewx-tfa[6406] CRITICAL __main__:     ****  
>> Exiting...
>>
>> Michael
>>
>> -- 
>> 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...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/585ffcb2-2a68-4880-aba6-9c9b2a6eebaa%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/585ffcb2-2a68-4880-aba6-9c9b2a6eebaa%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/7a4d548c-42e2-42eb-9f9a-189777d97d2a%40googlegroups.com.

Reply via email to