Skip to content

MQTT controlled LED-ring for the Respeaker with 4 microphone (circular LED)

License

Notifications You must be signed in to change notification settings

skisbit/4mics_mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4mics_mqtt

MQTT controlled LED-ring for the Respeaker with 4 microphone (circular LED) Controllable via Node-RED / Home Assistant or any MQTT service.

Installation:

  1. Make sure your 4mics_hat Respeaker is fully set up according to this page
  2. Run the following commands:
sudo apt install python3-pip python-pip git-all
sudo pip install paho-mqtt spidev gpiozero numpy
cd /home/pi/
sudo git clone https://github.com/skisbit/4mics_mqtt/
sudo nano /home/pi/4mics_mqtt/config.py
  1. Change variables in this file according to your Rhasspy and MQTT configuration
  2. Run the script:
python /home/pi/4mics_mqtt/ledring.py

Updating:

cd /home/pi/
sudo git pull https://github.com/skisbit/4mics_mqtt/

MQTT Controls:

Currently paired with Rhasspy to respond to MQTT messages from the rhasspy server. Flashes green when Rhasspy is ready. The file can be configured to subcribe and respond to any MQTT message. Right now it responds to:

ledring/wake
ledring/think
ledring/speak
ledring/error
ledring/off

Run automatically as a system service at reboot:

Create a service file:

sudo nano "/etc/systemd/system/ledring.service"

Insert this into the file:

[Unit]
Description=Led-Ring MQTT
After=network.target

[Service]
Type=simple
Restart=always
ExecStart=python /home/pi/4mics_mqtt/ledring.py

[Install]
WantedBy=multi-user.target

Create a symlink and start the process:

sudo systemctl enable ledring.service
sudo systemctl start ledring.service

About

MQTT controlled LED-ring for the Respeaker with 4 microphone (circular LED)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages