Skip to content

Simple media controls, play, pause, prev, next mapped to shell commands

License

Notifications You must be signed in to change notification settings

the7erm/mycroft-skill-simple-media-controls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mycroft-skill-simple-media-controls

This is a 3rd party skill that adds simple media controls, play, pause, prev, next mapped to shell commands. This will allow you to use whatever program you like as long as you can write a script.

If you're looking for a good mpg123/spotify/mopidy mycroft skill try this one https://github.com/forslund/mycroft-media-skills

I prefer to to use fmp and just wanted to write a dumb wrapper to run a script that did most of the heavy lifting.

The commands are simple.

mycroft play

During testing mycroft misunderstood the word pause a lot.
mycroft pause
        paws
        posh
        pawn
        polish
        boss
        cars

mycroft next

mycroft previous

mycroft what's playing?
        what is playing?
        what am I listening to?
        what is this song?
        what is this file?
        who is this?
        what band is this?

Configuring mycroft.conf

{
    "SimpleMediaSkill": {
        "play": "/home/erm/bin/play.sh",
        "pause": "/home/erm/bin/pause.sh",
        "next": "/home/erm/bin/next.sh",
        "prev": "/home/erm/bin/prev.sh",
        "whats_playing": "/home/erm/bin/playing.sh"
    }
}

Install

cd /opt/mycroft/skills
git clone https://github.com/the7erm/mycroft-skill-diagnostics.git skill-simpile-media-controls
cd skill-simpile-media-controls
workon mycroft
# if that doesn't work try `source <path to virtualenv/bin/activate>`
pip install -r requirements.txt
# restart the skills service

Sample scripts

I've written a couple of scripts to get you started. Keep in mind these might not work if the screen saver is on.

If you write your owns scripts, please feel free to fork the project, add them to the samples/ and create a pull request.

About

Simple media controls, play, pause, prev, next mapped to shell commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages