While a device's "devnum" field changes each insertion/boot, making it hard for a program to identify a given device/sensor from the JSON output, a device's USB port-identifier reflects where it's plugged-in.
I've got this PR that adds a JSON field "port" to reliably associate a device with a USB socket. Would it be worthwhile to switch this PR to this repo?
While a device's "devnum" field changes each insertion/boot, making it hard for a program to identify a given device/sensor from the JSON output, a device's USB port-identifier reflects where it's plugged-in.
I've got this PR that adds a JSON field "port" to reliably associate a device with a USB socket. Would it be worthwhile to switch this PR to this repo?