Using GPIO Control, is there a way to “blink” a pin for any given event, for example “blinking” on and off when paused?
You can script it and use socket.io to be triggered by Volumio on certain events.
WebSocket APIs | Volumio Developers Documentation
In Python it would look something like this:
from socketIO_client import SocketIO
# Create handler
def parseStatus(state):
curstate = getfield(state,'status')
if (curstate == "play"):
# add your code
if (curstate == "pause"):
# add your code
if (curstate == "stop"):
# add your code
socketIO = SocketIO('localhost', 3000)
socketIO.on('pushState', parseStatus)
socketIO.emit('getState', '', parseStatus)
def main():
socketIO.wait()
sleep(5)
try:
main()
except KeyboardInterrupt:
print("Exiting...")
pass