[Release] Snips LED Animation (snips-skill-respeaker)

Dear Snips users:

I am proud to announce that we have just made a new release on Snips LED Animation skill which we used to call it snips-skill-respeaker).

Official Hardware Support:

image

Features:

LED Animations

:bulb: On idle: random led breathe in green

:hourglass_flowing_sand: On listen: all leds start to blink in blue

:loudspeaker: On speak: all leds start to breathe in purple

:mute: To mute: all leds breathe once in yellow

:sound: To unmute: all leds breathe once in green

:zzz: On disabled: all leds turn off

Button

:star: Short press: start a new conversion without saying hotword

:star2: Double press: toggle the animation feedback

:dizzy: Long press: toggle the sound feedback

Installation

By using sam:

Beware that sam only supports Raspberry Pi platform. For other platforms, please refer to manual installation guide.

sam install actions -g https://github.com/snipsco/snips-skill-respeaker.git

Build Your Own Hardware

Moreover, the more stunning thing you can have is that the latest version allows you to use a customized LED hardware set with Snips LED Animation.

Full User Guide

More information, please refer to the full user guide here

1 Like

Hi @coorfang

I have problème with snips-skill-respaker look

-e [*] Setup Success!
-e [*] [snips-led-animation] Version: 1.6.2 Last update: Jan-25-2019
Running setup.sh & generating virtual environment for Tealque.Wikipedia
✖ Error setting up virtualenv, one or more actions might not be able to run. Reason :
You are using pip version 18.1, however version 19.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Checking actions for end-user parameters
i Action snips-app-TelecommandeFreebox contains end-user parameters that need to be configured
? Please enter a value for the parameter [freeremotecode] 9
? Please enter a value for the parameter [defaultchannel] 18
? Please enter a value for the parameter [defaultvolume] 20
i You can change these values later by editing the file located at /var/lib/snips/skills/snips-app-TelecommandeFreebox/config.ini
i Action snips-skill-respeaker contains end-user parameters that need to be configured
? Please enter a value for the parameter [mqtt_host] 192.168.1.5
? Please enter a value for the parameter [mqtt_port] 1883
? Please enter a value for the parameter [site_id] default
i You can change these values later by editing the file located at /var/lib/snips/skills/snips-skill-respeaker/config.ini
Relaunching snips-skill-server
✔ Snips assistant is now running. Say jarvis to start!
pi@gladys:~ $ sudo pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (19.0.1)

Help me please thanks @phoenix3472

Hello:

I don’t think there are any problems for led animation skill.

The red warning is caused by Freebox skill probably since the led animation did not use python at all.

Please try to update your pip on Raspberry Pi,

sudo pip install --upgrade pip

Then reboot snips skill server:

sudo systemctl restart snips-skill-server

This should solve the problem.

Hi!
i have strange behaviour wtih this skill:
i was able to install this feature without any problems (sam install action […]) but on various occasions differnt things happen:

  1. sam update-assistant from a remote device: skill doesn’t work anymore (no errors during update)
  2. reboot on snips device: skill seems to work, but config.ini is not loaded (meaning: LED blink in blue “on listen” but i still have feedback sound although in config.ini > “feedback_sound=false”
  3. restart service on snips device: skills works, config seems correct (no feedback sound)

where have i gone wrong? there’s only 2 lines to install this :slight_smile: - right?
on “remote” device

sam install actions -g https://github.com/snipsco/snips-skill-respeaker.git

on snips device (this step was executed once)

sudo usermod -a -G spi,gpio,audio _snips-skills

thanks for any help in advance!

isn’t there anyone with the same problem? (or solution :slight_smile:)

Hi, I am experiencing a similar issue as da_funk described. Only problem is that right now I cannot get the LEDs to work again (yesterday I somehow solved it by restarting service or rebooting the raspi). It stopped working after I updated the assistant with sam.

Edit: here is the log from tail -f /var/log/syslog

May 28 15:32:16 raspberrypi snips-skill-server[1220]: INFO:snips_skill_server_lib::runner            :     restarting action led_animation_1.6 (restart_fails: 2)
May 28 15:32:16 raspberrypi snips-skill-server[1220]: INFO:snips_skill_server_lib::runner            : [led_animation_1.6][err] #033[1;32;32m[13:32:16]#033[m#033[1;32;31m [Error] #033[m#033[1;32;34m[load_json_file]#033[m Can not load ./hardware_specs/./hardware_specs/respeaker_2_mic_hat#015.json.json
May 28 15:32:17 raspberrypi snips-skill-server[1220]: INFO:snips_skill_server_lib::runner            : [led_animation_1.6][out] #033[1;32;32m[13:32:16]#033[m#033[1;32;34m [Info] #033[m#033[1;32;34m[reset_power_pin]#033[m Mode has no power pin
May 28 15:32:17 raspberrypi snips-skill-server[1220]: INFO:snips_skill_server_lib::runner            : [led_animation_1.6][out] #033[1;32;32m[13:32:16]#033[m#033[1;32;34m [Info] #033[m#033[1;32;34m[terminate_mqtt_client]#033[m Disconnecting mqtt
May 28 15:32:17 raspberrypi snips-skill-server[1220]: INFO:snips_skill_server_lib::runner            : [led_animation_1.6][out] [Error] can't send spi message
May 28 15:32:17 raspberrypi snips-skill-server[1220]: WARN:snips_skill_server_lib::handler::nosandbox: child led_animation_1.6 has stopped with status `exit code: 1`
May 28 15:32:17 raspberrypi snips-skill-server[1220]: ERROR:snips_skill_server_lib::runner            : action led_animation_1.6 failed 3 times in the last 10 seconds, disabling it

So apparently it somehow cannot load the json file, to me it looks like the path is currupted. Any ideas?

Have same issue as described by Blubba (can’t load the json) - anybody figure this out?

From -vv re-start of the snips-skill-server:

pi@raspberrypi:~ $ snips-skill-server

[12:44:15.255354] INFO :snips_skill_server_lib::runner: searching dir for actions: /var/lib/snips/skills/snips-skill-respeaker
[12:44:15.265613] INFO :snips_skill_server_lib::runner: found action "/var/lib/snips/skills/snips-skill-respeaker/action-led_animation_1.6.3"
[12:44:15.265847] INFO :snips_skill_server_lib::runner: searching dir for actions: /var/lib/snips/skills/snips-app-voicekit
[12:44:15.266420] INFO :snips_skill_server_lib::runner: found action "/var/lib/snips/skills/snips-app-voicekit/action-app_voicekit.py"
.json.json 84490] INFO :snips_skill_server_lib::runner: [led_animation_1.6][err] [19:44:15] [Error] [load_json_file] Can not load ./hardware_specs/./hardware_specs/respeaker_2_mic_hat
[12:44:16.284818] INFO :snips_skill_server_lib::runner: [led_animation_1.6][out] [19:44:15] [Info] [reset_power_pin] Mode has no power pin
[12:44:16.284983] INFO :snips_skill_server_lib::runner: [led_animation_1.6][out] [19:44:15] [Info] [terminate_mqtt_client] Disconnecting mqtt
[12:44:16.285047] INFO :snips_skill_server_lib::runner: [led_animation_1.6][out] [Error] can’t send spi message
[12:44:16.328264] WARN :snips_skill_server_lib::handler::nosandbox: child led_animation_1.6 has stopped with status exit code: 1

It tries to run the load-json code 3 times, then gives up:

[12:44:19.497676] ERROR:snips_skill_server_lib::runner : action led_animation_1.6 failed 3 times in the last 10 seconds, disabling it

Is this a permissions issue or in deed a bad call due to the duplicate path callout?

Some help here please…thanks, Frank

Please see update to my original question…