Skip to content

Instantly share code, notes, and snippets.

@Snyder1977
Snyder1977 / lms-cec.py
Last active September 1, 2015 08:02 — forked from askvictor/lms-cec.py
Squeezebox/LMS send CEC command when play starts
#!/usr/bin/env python
from __future__ import print_function
from future.standard_library import install_aliases
install_aliases()
from urllib.parse import unquote
import select, socket
import cec
config = {
'lms_server': ('192.168.1.10', 9090), # IP of your Squeeze Server, and the network control port (usually 9090)