I assume you are using this driver 
<https://github.com/captain-coredump/weatherflow-udp>? If so have a close 
look at the install instructions and you will see the correct driver stanza 
is [WeatherFlowUDP] not [WeatherFlow]. Similarly, station_type needs to 
be WeatherFlowUDP not WeatherFlow.

If you installed the driver using wee_extension and configured WeeWX to use 
the driver using wee_config then something seems to have gone astray as the 
appropriate driver stanza name should have been automatically set for you.

Gary
On Monday, 5 July 2021 at 05:08:20 UTC+10 [email protected] wrote:

> I have installed the udp driver but when I try to start the service I get 
> this in the loag
> Jul  4 12:43:27 raspberrypi weewx[5895] INFO weewx.engine: Loading station 
> type WeatherFlow (user.weatherflowudp)
> Jul  4 12:43:27 raspberrypi weewx[5895] ERROR weewx.engine: Import of 
> driver failed: 'WeatherFlowUDP' (<class 'KeyError'>)
> Jul  4 12:43:27 raspberrypi weewx[5895] CRITICAL weewx.engine:     ****  
> Traceback (most recent call last):
> Jul  4 12:43:27 raspberrypi weewx[5895] CRITICAL weewx.engine:     ****    
> File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
> Jul  4 12:43:27 raspberrypi weewx[5895] CRITICAL weewx.engine:     ****    
>   self.console = loader_function(config_dict, self)
> Jul  4 12:43:27 raspberrypi weewx[5895] CRITICAL weewx.engine:     ****    
> File "/usr/share/weewx/user/weatherflowudp.py", line 180, in loader
> Jul  4 12:43:27 raspberrypi weewx[5895] CRITICAL weewx.engine:     ****    
>   return WeatherFlowUDPDriver(**config_dict[DRIVER_NAME])
> Jul  4 12:43:27 raspberrypi weewx[5895] CRITICAL weewx.engine:     ****    
> File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
> Jul  4 12:43:27 raspberrypi weewx[5895] CRITICAL weewx.engine:     ****    
>   val = dict.__getitem__(self, key)
> Jul  4 12:43:27 raspberrypi weewx[5895] CRITICAL weewx.engine:     ****  
> KeyError: 'WeatherFlowUDP'
> Jul  4 12:43:27 raspberrypi weewx[5895] CRITICAL __main__: Unable to load 
> driver: 'WeatherFlowUDP'
> Jul  4 12:43:27 raspberrypi weewx[5895] CRITICAL __main__:     ****  
> Exiting...
>
> In weewx.conf I have
>  station_type = WeatherFlow
> [WeatherFlow]
>      driver = user.weatherflowudp
>
> ##############################################################################
>
> and in /usr/share/weewx/user  I have weatherflowudp.py
>
> This is on a pi 4
>
> TIA
>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/208932fd-b320-472e-a36c-0ce321d858den%40googlegroups.com.

Reply via email to