Skip to content

Radioactive@Home HID driver based on libhidapi (with simple ThingSpeak support)

License

Notifications You must be signed in to change notification settings

burghardt/rahhid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rahhid

Radioactive@Home HID driver based on libhidapi (with simple ThingSpeak support).

Live ThingSpeak demo

Skierniewice Geiger counter channels is updated using rahhid.

How to build this program?

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

Sensor test

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

Uploading data to ThingSpeak

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"

Building for OpenWRT

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

About

Radioactive@Home HID driver based on libhidapi (with simple ThingSpeak support)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published