Radioactive@Home HID driver based on libhidapi
(with simple ThingSpeak support).
Skierniewice Geiger counter channels is updated using rahhid
.
Install libhidapi-dev
(Debian/Ubuntu) or equivalent:
# sudo apt-get update -qq
# sudo apt-get install libhidapi-dev
On macOS install hidapi
with Homebrew:
# brew install hidapi
Compile rahhid
with:
# make
Run rahhid
without any arguments to measure for 30 seconds:
# ./rahhid
Switched LCD backlight off
Switched buzzer off
Reset counters... counting...
Clock: 29930, counts: 8
16.0374 CPM
0.0936765 microSv/h
16.0383 corrected CPM
0.0936815+-0.0331197 microSv/h
Supply API key as only argument to upload data to associated channel:
# ./rahhid "TS_API_KEY_HERE"
Use cron
to upload data periodically:
# crontab -l
#m h dom mon dow cmd
*/5 * * * * /usr/local/bin/rahhid "TS_API_KEY_HERE"
Install hidapi
and libusb-1.0
packages on your OpenWRT device.
# opkg update
# opkg install hidapi libusb-1.0-0
Download SDK package
for your OpenWRT version. Build rahhid
package using
my OpenWRT package feed.
Finally install rahhid_<version>_<arch>.ipk
.
# opkg install /tmp/rahhid_<version>_<arch>.ipk