Skip to content

alexmohr/rust-bell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust doorbell

This is a very simple project that listens on MQTT and plays a pre-configured file. It is used to implement a zigbee powered door bell.

The project does not come with any sound files for licensing reasons, but you can find some here https://pixabay.com/sound-effects/search/door-bell/

License

MIT

Usage

Usage: mqtt-bell --config <CONFIG>

Options:
  -c, --config <CONFIG>  Path to config.toml
  -h, --help             Print help
  -V, --version          Print version

Config

[mqtt]
topic = "bell/ring"
host = "mqtt"

# Optional arguments
# port = 1833
# username = ""
# password = ""

[audio]
# Sound file must be specified, see https://crates.io/crates/rodio for supported formats
sound_file = ""
play_count = 3

[general]
log_level = "error"

Additional dependencies

  • ALSA, on systems using pipewire this means pipewire-alsa On debian based systems these can be installed via
sudo apt-get install -y alsa-utils alsa-base libasound2 libasound2-dev

About

mqtt listener which plays a sound on receiving a message

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages