NPR skill issue #24

Closed
ChristopherRios7 opened this Issue May 21, 2016 · 5 comments

Comments

Projects
None yet
4 participants

There is an issue with the NPR news skill, there is no way to stop this skill when it is activated. You cannot stop the skill by clicking the button.

The only way to stop it, from my experience is to SSH the device and perform 'sudo reboot'.

@ryanleesipes ryanleesipes added this to the Bug Fixes From Release milestone May 23, 2016

Owner

jdorleans commented May 23, 2016

NPR skill uses mpg123 process to run the mp3 stream from NPR. To stop it we need to kill that process. Today, we do this by sending a command to the NPR Skill to stop once you press the button (make sure you have the latest core version). However, there is a knowing hardware bug that prevents the pressing action to work and you'd have to turn the encoder instead. Please, try that as well and let me know if it works.

Also, it is still on our roadmap to implement the mycroft stop voice command.

Note: if you are not successful to stop by turning the encoder, just killall mpg123 for now.

Contributor

aatchison commented May 23, 2016

Unless I'm mistaken, my rather hackish method to stop skills with the
encoder has been removed, to be replaced with StopSkill implementation
On May 23, 2016 1:32 PM, "jdorleans" notifications@github.com wrote:

NPR skill uses mpg123 process to run the mp3 stream from NPR. To stop
it we need to kill that process. Today, we do this by sending a command to
the NPR Skill to stop once you press the button (make sure you have the
latest core version). However, there is a knowing hardware bug that
prevents the pressing action to work and you'd have to turn the encoder
instead. Please, try that as well and let me know if it works.

Also, it is still on our roadmap to implement the mycroft stop voice
command.

Note: if you are not successful to stop by turning the encoder, just killall
mpg123
for now.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#24 (comment)

Owner

jdorleans commented May 25, 2016

@aatchison you're right, the flow should be:

  1. press the button
  2. enclosure receives and sends the stop cmd to all skills
  3. all skills perform the stop operation (in the above case, NPR will stop by killing the process its using - mpg123)

It's important to note though, the enclosure mycroft service must be running. So we'll be able to detect the button pressing action (remember the hardware issue, it might be a encoder turn instead of pressing).

Contributor

aatchison commented May 25, 2016

Let's integrate the stop event functionality into the "Mycroft Stop" skill, then it could come from where ever:)

Owner

jdorleans commented May 25, 2016

Yes, the basic structure, and I believe most part of it, has been done awhile ago. Now, it's a matter of creating and prioritizing the general "Mycroft Stop" task.

@jdorleans jdorleans closed this May 31, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment