This project aims to support the sniffing and publishing of detected press events to an MQTT broker.
go get github.com/jahkeup/buttonoff/cmd/buttonoffd
With configuration provided:
buttonoffd -interface eth0 -broker mqtt.example.com:1883 -config ./buttonoff.toml
Configuration can be generated with:
# Write a simple defualt config to ./generated-config.toml
buttonffd -write-default -config ./generated-config.toml
Some flags can be overriden in the configuration file. See the generated file for some examples.
The [general]
section can specify dropunconfigured = true
to
drop sniffed events instead of publishing to the mqtt broker - the
default is to publish all events to the broker.