Thanks, Vince.

You are right - I did too much at once.

I'll save what I need and start from clean image.

MPIE = Meteo-Pi Ethernet Logger - Direct feed from Vantage Pro2 to WU, WOW, 
CWOP, WeatherLink. 

On Wednesday, 15 January 2025 at 16:34:13 UTC+13 vince wrote:

> Long answer follows....
>
> You said you used a pip venv but 
> "/usr/share/weewx/weewx/drivers/vantage.py" would be the path if you had a 
> packaged installation.  Do you have multiple weewx installations ?   In 
> that case I'd recommend just reimaging the SD card, start over from scratch 
> and pick 'one' way to install weewx (pip 'or' dpkg), and do one thing at a 
> time.  Get the simulator working.  Try to switch to the Vantage driver. 
>  One step at a time under control and not randomly editing or 
> cutting+pasting things.
>
> I have no idea what MPiE means at all. You're going to need to tell us 
> what your setup is, verify which driver you're running and that you have no 
> typos,  set debug=1 and restart weewx and maybe we can get you there.
>
> In general, the usual answers apply.  For starters, you want to run "sudo 
> journalctl -u weewx" to see 'all' weewx log entries.  Save it to a file 
> with extension .txt please if you upload it here.  Definitely set debug=1 
> for more debugging and restart weewx to make it take effect.
>
> Your last line "it's in simulator mode" does not agree with your log entry 
> which says you're running the Vantage driver.  The simulator wouldn't try 
> to connect to a network port.    You might want to run 'weectl station 
> reconfigure" and answer the questions again to verify which driver you're 
> running or switch drivers if needed.  You'll need to restart weewx after 
> changing weewx.conf as always.
>
> Seeing 'connection refused' means the remote computer typically is not 
> listening on that ip:port combination.  Verify you have no typos for host 
> ip and its listening port.
>
> The NOPERMISSION 'might' be you trying to talk to a privileged port as the 
> unprivileged user 'weewx' that weewx v5 runs as, but you need to take a 
> minute to spell out what exactly you're trying to connect to and what gear 
> has which addresses.   There have been issues recently with some folks 
> running the interceptor driver along those lines, trying to listen to ports 
> the weewx user is not by default permitted to listen on, but I can't find 
> those threads in a quick search.
>
> I'm sure it's frustrating, but given your somewhat scattered description, 
> I'm not 100% certain you know what you did at this point.   It's possible 
> that a SD reimaging and starting over from scratch step-by-step might be 
> the fastest way to get it done successfully...
>
> On Tuesday, January 14, 2025 at 6:46:31 PM UTC-8 [email protected] wrote:
>
>> WeeWX 5.1.0 on Pi 5 MPiE and weewx.conf
>>
>> Long-time fan of WeeWX.
>>
>> Worked perfectly with my Meteo-Pi-Ethernet Logger and WeeWX 4.9.1
>>
>> It sent its data directly to its built-in sites: (WL/WU/WOW/CWOP).
>>
>> I was able to pause it once a minute for WeeWX to update my other 
>> recipient sites: WeatherCloud, AWEKAS, Windy, OpenWeatherMap, PWS Weather, 
>> WeatherCloud, Windfinder.
>>
>> I bought a Pi 5 and installed V5.1 in November and tried to replicate 
>> this, but tripped at the first hurdle - setting up weewx.conf.
>>
>> Install was pip (Debian) with venv.
>>
>> Somehow (operator error, for sure), I mislaid my 4.9.1 weewx.conf files, 
>> so I couldn't trace the errors.
>>
>> I was always editing it, so the host and port lines for 5.1 are the same 
>> as with 4.9.1
>>
>> I'm using the same Meteo-Pi Ethernet Logger, which continues to work 
>> flawlessly.
>>
>> I know v5.1 handles logging differently, so I get these errors 
>>
>> LOGS:
>>
>> sudo systemctl status weewx
>>
>> Rpiwx5:~ $ sudo systemctl status weewx
>> × weewx.service - WeeWX
>>      Loaded: loaded (/lib/systemd/system/weewx.service; enabled; preset: 
>> enabled)
>>      Active: failed (Result: exit-code) since Fri 2025-01-03 16:51:36 
>> NZDT; 1 week 4 days ago
>>    Duration: 163ms
>>        Docs: https://weewx.com/docs
>>    Main PID: 724728 (code=exited, status=4)
>>         CPU: 158ms
>>
>> Jan 03 16:51:36 Rpiwx5 weewxd[724728]: CRITICAL weewx.engine:     ****   
>>    Vantage.__init__(self, **config_dict[DRIVER_NAME])
>> Jan 03 16:51:36 Rpiwx5 weewxd[724728]: CRITICAL weewx.engine:     ****   
>>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
>> Jan 03 16:51:36 Rpiwx5 weewxd[724728]: CRITICAL weewx.engine:     ****   
>>    self.port.openPort()
>> Jan 03 16:51:36 Rpiwx5 weewxd[724728]: CRITICAL weewx.engine:     ****   
>>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 359, in openPort
>> Jan 03 16:51:36 Rpiwx5 weewxd[724728]: CRITICAL weewx.engine:     ****   
>>    raise weewx.WeeWxIOError(ex)
>> Jan 03 16:51:36 Rpiwx5 weewxd[724728]: CRITICAL weewx.engine:     **** 
>>  weewx.WeeWxIOError: [Errno 111] Connection refused
>> Jan 03 16:51:36 Rpiwx5 weewxd[724728]: CRITICAL __main__: Unable to load 
>> driver: [Errno 111] Connection refused
>> Jan 03 16:51:36 Rpiwx5 weewxd[724728]: CRITICAL __main__:     **** 
>>  Exiting...
>> Jan 03 16:51:36 Rpiwx5 systemd[1]: weewx.service: Main process exited, 
>> code=exited, status=4/NOPERMISSION
>> Jan 03 16:51:36 Rpiwx5 systemd[1]: weewx.service: Failed with result 
>> 'exit-code'.
>>
>> Here's the [Vantage]
>>
>> [Vantage]
>>  59     # This section is for the Davis Vantage series of weather 
>> stations.
>>  60  # 221116: trying to sort out ports, etc   
>>  61     # Connection type: serial or ethernet 
>>  62     #  serial (the classic VantagePro)
>>  63     #  ethernet (the WeatherLinkIP or Serial-Ethernet bridge)
>>  64 #241228_REVERTING TO ETHERNET
>>  65 #       type = serial
>>  66        type = ethernet
>>  67     # If the connection type is serial, a port must be specified:
>>  68     #   Debian, Ubuntu, Redhat, Fedora, and SuSE:
>>  69     #     /dev/ttyUSB0 is a common USB port name
>>  70     #     /dev/ttyS0   is a common serial port name
>>  71     #   BSD:
>>  72     #     /dev/cuaU0   is a common serial port name
>>  73 #       port = /dev/ttyUSB0
>>  74 #241228_REVERTING TO ETHERNET
>>  75
>>  76 #       port = /dev/ttyS0
>>  77         port = 22222
>>  78     # If the connection type is ethernet, an IP Address/hostname is 
>> required:
>>  79 #    host = 1.2.3.4
>>  80 #241228_REVERTING TO ETHERNET
>>  81             host = 192.168.1.103
>>
>> It's in Simulator mode: that part of weewx.conf untouched.
>>
>>
>>
>>

-- 
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 visit 
https://groups.google.com/d/msgid/weewx-user/68cfca78-d605-4275-90e7-d943a0c85335n%40googlegroups.com.

Reply via email to