Snips Led Control

led
leds
respeaker
hack
respeaker-2

#21

Maybe, I can have a look. Check the github repo, I added a dev branch


#22

Thans i take a look as soon as i can :slight_smile:


#23

I try with the dev branch but it’s not working :stuck_out_tongue:

For the moment i use this https://github.com/Romkabouter/matrix_hotword but it only light all the led with no effect


#24

Hehe, of course not, I’m working on weekends, can’t just magically make it happen :slight_smile:


#25

i’d like to try :wink: We never know :rofl:


#26

Takes time. Basically the script was intended to support only respeaker. But I have started a full rewrite to support every possible leds that you could connect on your raspberry and others. This change makes the whole thing very different and significantly more error prone. I will add your matrix soon, don’t worry


#27

I’m not in the rush don’t worry :wink: just tell me when you need beta tester


#28

Soon soon


#29

i love your teasing :smiling_face_with_three_hearts:


#30

Slowly getting there…

You would start it with

python3 main.py --hardware=matrixvoice --pattern=custom

Keep in mind I’m at work and I don’t even have a raspberry to test anything. So it’s surely full of errors. You can contact me on Discord if needed


#31

Don’t worry take your time :wink:

This si what i got when i launch it (yes i made a git pull before and install.sh too :wink: )

Starting Snips Led Control
Initializing SnipsLedControl
Loading configurations
Loaded 5 hardware references
- Mqtt server set to localhost
- Mqtt port set to 1883
- Client id set to default
- Hardware set to Matrix Voice
- Using custom as pattern with 18 leds
Initializing leds controller
Traceback (most recent call last):
  File "./main.py", line 85, in <module>
    main()
  File "./main.py", line 74, in main
    slc = SnipsLedControl(args)
  File "/home/pi/snipsLedControl/models/SnipsLedControl.py", line 100, in __init__
    self._ledsController = LedsController(self)
  File "/home/pi/snipsLedControl/models/LedsController.py", line 46, in __init__
    self._pattern = CustomLedPattern(self)
  File "/home/pi/snipsLedControl/ledPatterns/CustomLedPattern.py", line 12, in __init__
    super().__init__(controller)
TypeError: super() takes at least 1 argument (0 given)

#32

ooops, python3 :slight_smile:

And please report the bugs on github, better to keep track there


#33

Ok i’ll report on github for the next bug :wink:


#34

Respeaker Mic Array V2 is now fully supported


#35

Now supporting gpio buttons! Respeaker 2 hardware button support is automatically supported!


#36

Thank for you great job, my matrix voice nicely use now!!


#37

Amazing work indeed !

Now have nice LEDs animations, shutdown leds at night with Jeedom, and have respeaker 2 button to mute hotword detection and change idle animation accordingly.

Couldn’t be better :grinning:

Ah yes, it could be better ! We can’t have onSuccess or OnError working, so please @snipsteam provide siteId in ‘hermes/nlu/intentParsed’ and ‘hermes/nlu/intentNotRecognized’ topics payload! :angry:


#38

Yeah, site id in every topics please


#39

How did you shutdown leds at night with jeedom ?


#40

Send a message on the toggleOff topic