hmm. this seems to be my issue on installing 5.0.0 following erasing 4.10. On my own I tried adding weewx user to the wheel group and to sudoers file. I tried what Matt and Paul were discussing about rule changes and yet I still get the "ERROR weewx.engine: Import of driver failed: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied:" When I run as root from command line all seems to be good. Should I do a full report with journal log?
Joe Verreau KMIOKEMO13 Okemos, MI On Wednesday, January 31, 2024 at 11:09:41 AM UTC-5 matthew wall wrote: > On Wednesday, January 31, 2024 at 3:29:36 AM UTC-5 [email protected] > wrote: > > Hi Matthew > > Thanks for the information about the various udev folders which helps me > understand their interaction. > > I created a file /etc/udev/50-localusb.rules and inserted the rule. Also, > inherited from Linux Mint 20.1 running Weewx 4.8, I also have the following > line in /etc/udev/descriptive-names.rules > > ATTRS{serial}=="1344794749", ATTRS{manufacturer}=="Silicon Labs", > SYMLINK+="DavisVP" > > and that SYMLINK is created. > > /usr/lib/udev/rules.d/60-weewx.rules contains 10+ lines for different > stations and includes the following for Vantage: > > # davis vantage via usb-serial > > SUBSYSTEM=="tty",ATTRS{idVendor}=="10c4",ATTRS{idProduct}=="ea60",MODE="0664",GROUP="weewx",SYMLINK+="vantage" > > SUBSYSTEM=="tty",ATTRS{idVendor}=="10c4",ATTR{idProduct}=="ea61",MODE="0664",GROUP="weewx",SYMLINK+="vantage" > > The vantage SYMLINK is not being created. > > Not sure if I should leave 'as is' or edit 60-weewx.rules and remove > 50-localusb.rules > > > you can keep your 50-localusb.rules. you might want to consolidate the > vpro rule in localusb.rules with the vpro rule in descriptive-names.rules. > or not. depends on how you like to manage things. and your weewx.conf > must already refer to 'DavisVP'... > > if you modify /usr/lib/udev/rules.d/60-weewx.rules, it will be overwritten > when you next upgrade weewx, so just leave it. > > on your system, is there a /dev/vantage that is a symlink to the > usb-serial adapter? if so, that indicates the weewx.rules in /usr/lib/udev > is working. > > m > -- 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/17587be4-bc74-4904-af41-ed023a7f3134n%40googlegroups.com.
