File | Date | Author | Commit |
---|---|---|---|
AVTransport-Play.xml | 2016-05-24 | Jean-Francois Dockes | [4e780a] init |
AVTransport-Stop.xml | 2016-05-24 | Jean-Francois Dockes | [4e780a] init |
OHProduct-SetSourceIndexByName.xml | 2016-05-24 | Jean-Francois Dockes | [0d5573] set host:port on command line |
OHProduct-SourceXml.xml | 2016-05-24 | Jean-Francois Dockes | [4e780a] init |
OHRadio-Play.xml | 2016-05-24 | Jean-Francois Dockes | [0d5573] set host:port on command line |
OHRadio-SetId.xml | 2016-05-24 | Jean-Francois Dockes | [0d5573] set host:port on command line |
OHVolume-SetVolume.xml | 2016-05-24 | Jean-Francois Dockes | [4e780a] init |
OHVolume-VolumeDec.xml | 2016-05-24 | Jean-Francois Dockes | [4e780a] init |
OHVolume-VolumeInc.xml | 2016-05-24 | Jean-Francois Dockes | [4e780a] init |
README.md | 2016-05-24 | Jean-Francois Dockes | [e86ccf] Create README.md |
upcmd.sh | 2016-05-24 | Jean-Francois Dockes | [133634] comments |
Read Me
upcmd
A script to control upmpdcli from the command line.
Uses auxiliary XML files to define the commands. Both the names and
contents of the files are used. Using the file names to define
service/action avoids some redundancy.
Does not perform discovery: you need to determine the host or IP
address of the renderer and the port it is running on (49152 by
default for upmpdcli), and pass them on the command line.
This is not going to replace a real control point, but it may be
useful for automating stuff.
Very few of this is actually specific to upmpdcli, other renderers
could probably be used with very little changes. upmpdcli-specific
elements are noted by comments.
The XML file names are like Servicename-ActionName The servicename
part is only used to compute the service control url (which is
specific to upmpdcli). The OpenHome service names are special
because upmpdcli prefixes them with OH (e.g. OHVolume instead of
volume). So the whole service control url computation (and only it)
would need changing for another renderer.
LIMITATIONS:
- does not work for parameter values containing whitespace (for now)