This project aims to support the sniffing and publishing of detected press events to an MQTT broker.
go get github.com/jahkeup/buttonoff/cmd/buttonoffdWith configuration provided:
buttonoffd -interface eth0 -broker mqtt.example.com:1883 -config ./buttonoff.tomlConfiguration can be generated with:
# Write a simple defualt config to ./generated-config.toml
buttonffd -write-default -config ./generated-config.tomlSome 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.