Thank you all for your quick responses with useful information as you've
definitely help direct my efforts.
I spent the last few days setting up a hypervisor ('pimox' aka ProxMox 7)
on my raspberry pi 400 (since it's the only spare computer I have that is
capable of running VM's), with the intent of running two debian linux VM's,
each with their own install of weewx and hopefully being constricted to
'seeing' a single/specified AcuRite system on USB.
ProxMox & debian work/run great, but unfortunately it seems I'm back
at/near square one as this does not seem to be able to solve the original
problem.
Turns out there are multiple ways to setup USB ports in the VM's , and ways
to turn USB ports on/off in linux - I tried all the conventional options
and some hacks, but ultimately if I have both AcuRite's hooked to teh pi,
and both VM's running weewx, one VM weewx will work and the other VM weewx
will not, as it claims it's not receiving USB data from an AcuRite.
Shutting down the working VM frees up (or whatever is going on) the AcuRite
usb data for the other VM and it starts working.
I'm going to put this one on the back burner for now but am not throwing in
the towel just yet ;-)
-pw
On Wednesday, February 21, 2024 at 3:36:46 PM UTC-5 p q wrote:
> I wonder if it would be easier to use SDR on one sensor unit and USB for
> the other so that way you know which you're getting. I am not familiar with
> weewx-multi, so maybe I'm talking crap.
>
>
>
> On Wed, Feb 21, 2024 at 12:02 PM matthew wall <[email protected]> wrote:
>
>> hi patrick,
>>
>> unfortunately, every acurite station looks the same - there is no unique
>> identifier that lets you distinguish one station from another via the USB
>> interface.
>>
>> if chaney instruments had done it right, they would have burned a serial
>> number into each device, not just idProduct and idVendor.
>>
>> in lieu of an identifier for each device, another approach is to
>> distinguish devices based on their locations in the usb tree. if you could
>> do that, then you could conceivably plug them into a usb hub that has ports
>> whose addresses are repeatable across reboots (that might even apply to the
>> usb 'hub' built in to the computer).
>>
>> i am not sure whether this is possible, but it would be a fun little
>> project to determine the feasibility. and it is probably easier now that
>> libusb is not as volatile as it was 10 years ago.
>>
>> when you initiate communication with a HID (which is how the acurite and
>> other usb-based stations present themselves), you specify idProduct and
>> idVendor, then take the first one that shows up. if a device has a unique
>> identifier, you can match on that too (the ws28xx transceviers are an
>> example of this. some, but not all, USB-to-serial converters are too, but
>> they are not HID). it *might* be possible to use the usb tree information
>> to distinguish devices. or maybe the HID interface lets you enumerate them
>> - not sure whether the libusb and pyusb layers even let you determine
>> whether there are multiple devices that match.
>>
>> 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/1ef9de61-4b62-4818-8dd1-eec25bade230n%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/weewx-user/1ef9de61-4b62-4818-8dd1-eec25bade230n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Peter Quinn
> (415)794-2264 <(415)%20794-2264>
>
--
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/374c7e6f-4217-4ee6-9bc2-cdadb3804dcbn%40googlegroups.com.