Monday 11 March 2019

Controlling Pure Jongos using upnpclient

I have previously written about a python script called nanodlna which is useful for "casting" ie sending dlna commands to Pure Jongo speakers and DACs.
A python script called upnpclient by Ellis Percival on Github does the job much more effectively.  It includes an excellent interactive explanation using upnpclient to explore and control a dlna device.  It provides device discovery storing upnp objects in python variables.  All device parameters are easily available so that device capabilities can be investigated (interactively) and controlled through python.
I developed a python program upnp.py which loaded URLs (SetAVTransportURI) and played / stopped the URI (Play and Stop functions). upnp devices need a streaming URL so a number of UK channels were coded into the script so they could be started.  Alternatively a URL can be entered on the command line to stream from an alternative source, for example the MuSe mpd server or an album / playlist M3U URL.
A web page JongoPanel was created to allow a user to see what is playing on each Jongo and start or stop the stream.  Any source can be directed to any or all Jongos.  JongoPanel calls upnp.py using the cgi interface.

No comments:

Post a Comment