Fork github.com/huin/goupnp to add open-home support
Go to file
Tommi Virtanen 77b86c3723 Generate dcps for AV1 audio/video devices
Tested against Sonos PLAY:5.

Added URI type to the SOAP library.

The latest upnpresources.zip does not contain older versions of the
specifications, so to be able to generate the bindings I had to create
a fake one:

    wget http://upnp.org/specs/av/UPnP-av-TestFiles-20070927.zip
    install -d 'standardizeddcps/MediaServer_1 and MediaRenderer_1'
    mv UPnP-av-TestFiles-20070927.zip 'standardizeddcps/MediaServer_1 and MediaRenderer_1/'
    zip -r fake.zip 'standardizeddcps/MediaServer_1 and MediaRenderer_1'
    gotask specgen -s fake.zip -o ../dcps
2015-06-06 16:54:08 -07:00
cmd update internetgateway1 example to build on go1.4 2014-12-11 12:44:49 -07:00
dcps Generate dcps for AV1 audio/video devices 2015-06-06 16:54:08 -07:00
example Fixes #9 - reacquire previously discovered device by URL. 2015-06-06 11:01:33 +01:00
gotasks Generate dcps for AV1 audio/video devices 2015-06-06 16:54:08 -07:00
httpu Minor corrections to error handling logic in httpu. 2014-06-08 09:19:48 +01:00
scpd Add SCPD.GetAction method. 2014-06-06 21:55:52 +01:00
soap Generate dcps for AV1 audio/video devices 2015-06-06 16:54:08 -07:00
ssdp Initial work on maintaining a registry of discovered devices. 2014-06-08 13:45:53 +01:00
device.go Small fixes and removals, update discoverigd.go. 2013-12-31 18:36:26 +00:00
goupnp.go Minor comment fix that could mislead. 2015-06-06 11:04:25 +01:00
LICENSE Discovery of IGD vaguely in place. Start of parsing device schema. 2013-09-26 23:11:06 +01:00
README.md Add godoc link to README.md. 2015-06-06 12:29:56 +01:00
service_client.go Add support for discovery-free client creation in dcps packages. 2015-06-06 11:53:50 +01:00

goupnp is a UPnP client library for Go

Installation

Run go get -u github.com/huin/goupnp.

Documentation

GoDoc

Regenerating dcps generated source code:

  1. Install gotasks: go get -u github.com/jingweno/gotask
  2. Change to the gotasks directory: cd gotasks
  3. Download UPnP specification data (if not done already): wget http://upnp.org/resources/upnpresources.zip
  4. Regenerate source code: gotask specgen -s upnpresources.zip -o ../dcps

Supporting additional UPnP devices and services:

Supporting additional services is, in the trivial case, simply a matter of adding the service to the dcpMetadataByDir whitelist in gotasks/specgen_task.go, regenerating the source code (see above), and committing that source code.

However, it would be helpful if anyone needing such a service could test the service against the service they have, and then reporting any trouble encountered as an issue on this project. If it just works, then please report at least minimal working functionality as an issue, and optionally contribute the metadata upstream.