homekit-geiger-counter

command module
v0.0.0-...-2262b39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

HomeKit Geiger Counter

An Apple HomeKit accessory for the DF Robot Gravity Geiger Counter SEN0463 radiation sensor running on a Raspberry Pi.

The accessory added to iOS

Note: this app is currently only supported in Home+ and not yet in Apple Home. Please up-vote this forum post if you'd like Apple to add support.

Dependencies

  • Go - this accessory is written in Go
  • HomeControl - to expose climate readings from the Enviro+ as an Apple HomeKit accessory
  • Geiger Counter - to read the Geiger Counter sensor and export it for scraping by Prometheus

Installation

Install this on a Raspberry Pi, or test it on macOS.

Setup
  1. Install Go >= 1.14 (useful Gist for Raspberry Pi)
  2. Clone this project: git clone https://github.com/sighmon/homekit-geiger-counter and then cd homekit-geiger-counter
  3. Install the Go dependencies: go get
  4. Install and run the Geiger Counter Sensor exporter geiger_counter_df_robot_sen0463_esp32_http_server
Build
  1. To build this accessory: go build homekit-geiger-counter.go
  2. To cross-compile for Raspberry Pi on macOS: env GOOS=linux GOARCH=arm GOARM=7 go build homekit-geiger-counter.go
Run
  1. Execute the executable: ./homekit-geiger-counter
  2. Or run with the command: go run homekit-geiger-counter.go
Start automatically at boot
  1. sudo cp homekit-geiger-counter.service /lib/systemd/system/homekit-geiger-counter.service
  2. sudo systemctl daemon-reload
  3. sudo systemctl enable homekit-geiger-counter.service
  4. sudo systemctl start homekit-geiger-counter.service
Optional flags

The flag defaults can be overridden by handing them in at runtime:

  • -host=http://0.0.0.0 The host of your sensor
  • -port=1006 The port of your sensor
  • -sleep=3s The time between updating the accessory with sensor readings (3s equals five seconds)
  • -dev This turns on development mode to return a random reading without needing to have a sensor

e.g. to override the port run: go run homekit-geiger-counter.go -port=8000 or ./homekit-geiger-counter -port=8000

Reset this accessory

If you uninstall this accessory from your Apple Home, you'll also need to delete the stored data for it to be able to be re-added.

macOS
  1. Delete the data in the folder created: homekit-geiger-counter/Radiation/
  2. Restart the executable
Raspberry Pi
  1. Remove the persistent data: rm -rf /var/lib/homekit-geiger-counter/data
  2. Restart the Raspberry Pi

Thanks

This project uses the amazing work of Matthias. Please consider donating if you found this useful.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址