I'm trying to get weewx working on a current OS X install. Weewx with the simulator has been working fine for a while, but then I tried to hook up an Acurite 5in1. I basically ran into the same problems as this post <https://groups.google.com/forum/#!searchin/weewx-user/acurite$20mac|sort:relevance/weewx-user/YCaN2o79uWM/7NbM0EynBwAJ>. I haven't found anybody reporting that they've gotten it working, in which case that should probably be documented.
First, pyusb reported no backends. Fine. Install libusb via Brew. But pyusb still couldn't find it. Or, more accurately ctypes and dyld couldn't find it. Turns out that you can set the path in DYLD_LIBRARY_PATH (for the record, that's export DYLD_LIBRARY_PATH=~/brew/lib/). So got that working. Then ran into the slew of errors due to the inability to detach from the kernel. My research confirms what the thread says -- within recent versions of OS X which don't allow unsigned Kexts, you basically can't detach the device. As best I can tell there are no workarounds. Ie, no point in using a different USB library and no way to get a kext installed. Unless anybody else has had more luck, I would suggest that this be made more clear in the user guide. Longer term, the recommendations for getting USB HID devices working on Mac is to use the HIDAPI library, which works on linux/freebsd/windows/mac and, specifically on the mac, uses IOHidManager. I dug through the python module for this (cython-hidapi <https://github.com/trezor/cython-hidapi>) but there doesn't seem to be parity in the API calls, and I don't know enough about USB to port over. -- 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]. For more options, visit https://groups.google.com/d/optout.
