Skip to content

Instantly share code, notes, and snippets.

@sassen
sassen / volumio-gpio-buttons.py
Created December 14, 2018 21:43 — forked from ivesdebruycker/volumio-gpio-buttons.py
Control Volumio2 with GPIO buttons
# https://volumio.org/forum/gpio-pins-control-volume-t2219.html
# https://pypi.python.org/pypi/socketIO-client
# https://volumio.github.io/docs/API/WebSocket_APIs.html
import RPi.GPIO as GPIO
import time
import subprocess
from socketIO_client import SocketIO, LoggingNamespace