From 798a1218fd0c2e003466fb3c320626c5f078a60f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Roveg=C3=A5rd?= Date: Mon, 1 Aug 2011 01:08:17 +0200 Subject: [PATCH] Updated README, TODO, and added AIRPNPRC --- AIRPNPRC | 3 +++ README | 18 ++++++++++++++---- TODO | 4 ---- 3 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 AIRPNPRC diff --git a/AIRPNPRC b/AIRPNPRC new file mode 100644 index 0000000..17788fa --- /dev/null +++ b/AIRPNPRC @@ -0,0 +1,3 @@ +[airpnp] +# 1 = standard, 2 = operation debug, 3 = network debug +loglevel=1 diff --git a/README b/README index 51848c2..96b0f0e 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ -airpnp 0.21 -21 Jul 2011 +airpnp 0.22 +1 Aug 2011 README ================= @@ -31,7 +31,8 @@ Dependencies The code has been tested with Python 2.7, but probably works with some earlier 2.x versions as well. -External dependencies include Twisted and ElementTree. +External dependencies include Twisted and ElementTree. For running tests, the +Mock module (http://www.voidspace.org.uk/python/mock/) is required. Installation @@ -41,7 +42,16 @@ There is currently nothing to install. See Running below. Configuration ------------- -Currently there is nothing to configure for airpnp. +Configuration is done in ~/.airpnprc, which uses a win.ini-like format. The +only supported setting at the moment is "loglevel", which can be set to an +integer from 0 to 3. The log levels mean: + +0 - only twistd/Twisted logging, not recommended +1 - basic airpnp messages +2 - include detailed messages about operations +3 - include detailed messages about network communication (protocols) + +A sample AIRPNPRC file is provided. Running diff --git a/TODO b/TODO index ea0b800..7084c3f 100644 --- a/TODO +++ b/TODO @@ -1,10 +1,6 @@ * More robust error handling - - Handle 718/Invalid instance ID at Stop by retrying, then ignoring - - Disconnect iDevice rather than unpublishing and re-publishing the service - Detect and react on TransportState ERROR_OCCURRED -* Implement support for AirTunes, RAOP. * Detect and make use of MediaRenderer capabilities. -* Lock out other iDevices when one iDevice is using the service * Supply media info using SetAVTransportURI/CurrentURIMetaData * When user stops playback and starts playing something else, disconnect iDevice * Get iDevice identity for nicer logging and playback info