How can I turn LED's on recognizing the wakeword?

Hello, I would like to control LED’s though

  • the wakeword was detected (yellow)
  • an action was detected (green)
  • an error was detected (red)
    Have been searching for several hours in the documentation and the web.
    Can someone please ask me where I can install this in snips?
    I work on a Raspberry 3+ with a Matrix Voice Board.

Thank you and please excuse my bad english
kmbach

Snips Led Control is made for you https://github.com/Psychokiller1888/snipsLedControl

Hi, Psycho,
I have Install: https://github.com/Psychokiller1888/snipsLedControl/wiki/Installation-&-update
The snipsLedControl is not working:
WARNING: Skipping pixel-ring as it is not installed.
Do you need to install / configure your matrixvoice? This is strongly suggested as it does turn off services that might conflict as well!

  1. yes
  2. no
  3. cancel
    #? 2
    Finished installing Snips Led Control v1.8-beta4
    You may want to copy over your custom led patterns to the new Version.
    Matrix Voice is installed und worked.
    Debug:
    python main.py --debug=True
    Traceback (most recent call last):
    File “main.py”, line 10, in
    from models.SnipsLedControl import SnipsLedControl
    File “/home/pi/snipsLedControl_v1.8-beta4/models/SnipsLedControl.py”, line 232
    def onMessage(self, client, userdata, message: MQTTMessage):
    ^
    SyntaxError: invalid syntax

What can I do?

Thanks for help!

If you want do yourself, now it’s easy in python with matrix_lite !

Use python 3, it’s been updated lately

Thx for matrix_lite, I’ll implement it in SLC instead of the actual implementation

Yes I change my code too !
But to automate installation after formatting, I would need help.
Please (with a big « P ») could you explain to me how to write the “requirements.txt” and “setup.sh” files to add:

curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install matrixio-creator-init libmatrixio-creator-hal libmatrixio-creator-hal-dev
sudo reboot
sudo apt-get install python3-pip
python3 -m pip install --upgrade pip
python3 -m pip install --user matrix-lite

That would be very kind of you, because I’ve never done that and I’d like to learn.

Thank you very much in advance.

I did the seven installation points and then ran
sudo ./slc_download.sh
again.
Now the LEDs are lit.
Is there a new complete instructions for the installation?

Many Thanks.

I tried again to install because I expected colored LEDs but got only white light.
Now it does not work anymore.

ERROR: Can not perform a ‘–user’ install. User site-packages are not visible in this virtualenv.
######################## All done! ########################
####### After the install is over, please reboot! #########
################## Enjoy SLC! Psycho ######################
Finished installing Snips Led Control v1.8-beta5
You may want to copy over your custom led patterns to the new version
pi@raspberrypi:~ $

If I try a debug I get the following message:
pi@raspberrypi:~/snipsLedControl_v1.8-beta5 $ python3 main.py --debug=True

Traceback (most recent call last):
File “main.py”, line 10, in
from models.SnipsLedControl import SnipsLedControl
File “/home/pi/snipsLedControl_v1.8-beta5/models/SnipsLedControl.py”, line 8, in
import paho.mqtt.client as mqtt
ImportError: No module named ‘paho’
pi@raspberrypi:~/snipsLedControl_v1.8-beta5 $

I have now seen that the conversation in the forum also works in German. Can we continue the conversation in German?

@kmbach

I think we should continue on Github. To me it looks like you did not install SLC with my installer, it does install paho-mqtt. The 7 steps you followed are not for SLC

@Tengu You can check how I make my installers on Snips Led control. Requirements are place in a file called whatever you want but by convention “requirements.txt”. You can install them by pip install -r requirements.txt

The rest is just common bash scripting

okay, we’ll continue on github. I have re-set and used your installer.
The message comes again:
Do you need to install / configure your matrixvoice? This is conflict as it is!
Two attempts. Once with ‘no’ - it does not work. Then with ‘yes’ - it works. The answer, which is the right one, is not understandable for me.

Many thanks for the help!!

Successfully installed toml-0.10.0
WARNING: Skipping pixel-ring as it is not installed.
Do you need to install / configure your matrixvoice? This is strongly suggested as it does turn off services that might conflict as well!

  1. yes
  2. no
  3. cancel
    #? 2
    Created symlink /etc/systemd/system/multi-user.target.wants/snipsledcontrol.service → /etc/systemd/system/snipsledcontrol.service.
    Finished installing Snips Led Control v1.8-beta6
    You may want to copy over your custom led patterns to the new version
    pi@raspberrypi:~ $
  1. test: ######################################
    WARNING: Skipping pixel-ring as it is not installed.
    Do you need to install / configure your matrixvoice? This is strongly suggested as it does turn off services that might conflict as well!
  1. yes
  2. no
  3. cancel
    #? 1

Successfully installed colour-0.1.5 matrix-lite-0.0.3
######################## All done! ########################
####### After the install is over, please reboot! #########
################## Enjoy SLC! Psycho ######################
Finished installing Snips Led Control v1.8-beta6
You may want to copy over your custom led patterns to the new version
pi@raspberrypi:~ $

@Psycho , thank you I will try to do that.

@kmbach , happy your problem is solved !
You can change your title adding [SOLVED]. :slight_smile:

Cordially,
Tengu.

Seems pretty obvious that if you don’t answer yes it cannot work if you don’t have everything installed…

Sorry, but I have trouble with this issue:

WARNING: Skipping pixel-ring as it is not installed.
Do you need to install / configure your matrixvoice? This is conflict as it is!

I did not know if it refers to the general Matrix Voice software or if it is about a part to be installed. When it did not work with ‘no’ I tried ‘yes’. As seen in my last email, the installation was successful in this attempt. It now works with the Led Control v1.8-beta6.
Many Thanks!