Python script for stopping (not only pausing) playback

Get help for Volumio here!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Python script for stopping (not only pausing) playback

Postby JimSalabim » Sat Jan 12 2019 03:35

Hi! I need a Python script for stopping the Volumio 2 playback. I want to add a GPIO stop button, but with the "GPIO buttons" Volumio plugin I can only PAUSE the playback, but not really STOP it. I want Volumio to be set to the state when a playlist is completely finished for example, when all is empty.
The button should stop the playback first and then turn off the backlight of my 4 lines LCD display. The backlight won’t stay off if the playback is only paused, so I really need it to stop. Only then the backlight stays off – until a new playback is started, then it goes back on automatically, which is perfect then.

What I need is "only" a Python script for stopping playback. I can figure out all the GPIO stuff myself, that’s no problem.

Big thanks in advance! :-)
Random avatar
JimSalabim
Fresh off the boat
Fresh off the boat
 
Posts: 2
Joined: Thu Dec 28 2017 13:12

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Return to Help

Who is online

Users browsing this forum: No registered users and 7 guests