PyLMS

Python Logitech Media Server API Library
Download

PyLMS Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • JingleManSweep
  • Publisher web site:
  • http://github.com/jingleman/

PyLMS Tags


PyLMS Description

PyLMS is a Logitech Media Server (Squeezebox Server, SqueezeCenter, SlimServer) API for Python.InstallationNow available on PyPI and can be installed using easy_install. The package for Debian/Ubuntu is python-setuptools. Use your package manager to install this.Now, type the following. You may need to prefix this with sudo if you want a system wide (not a virtualenv) installation.easy_install pylmsCommand Line ScriptIf installed through "easy_install" or via the setup script, there is a new command called "pylms" that can be used in scripts to control your devices.pylms --host 192.168.1.10 --device 00:00:00:00:00:00 playFor more current help:pylms --helpDocumentationClass documentation, and soon to be usage instructions are now available. View Documentation.Example:#!/usr/bin/env pythonfrom pylms.server import Serverfrom pylms.player import Playersc = Server(hostname="192.168.1.1", port=9090, username="user", password="password")sc.connect()print "Logged in: %s" % sc.logged_inprint "Version: %s" % sc.get_version()sq = sc.get_player("00:11:22:33:44:55")print "Name: %s | Mode: %s | Time: %s | Connected: %s | WiFi: %s" % (sq.get_name(), sq.get_mode(), sq.get_time_elapsed(), sq.is_connected, sq.get_wifi_signal_strength())print sq.get_track_title()print sq.get_time_remaining()Product's homepage


PyLMS Related Software