Skip to main content
Trending Lyricist I
July 8, 2012

HTTP Post Command Reference for Tasker

I'm new to Sonos, but would like to setup some Tasker tasks in Android to automate playing my favourite radio station, launching playlists, etc.

Is there a reference for http POST commands that I could work from? Could someone point me in the right direction?

My aim is to use Tasker with NFC tags to activate theses common tasks without the need to go into the app.
    This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

    27 replies

    Trending Lyricist I
    July 8, 2012
    Thanks fantastic, thank you. Will post back if I ever work out how to implement it.
    Headliner II
    July 9, 2012
    No problem. Feel free to get back to me if you need assistance with how to proceed, I have already done a lot of research on this, since I chose not to use a pre-made library for the uPnP part.
    Trending Lyricist I
    July 9, 2012
    That's very kind. I've spent a few hours looking around the web and there doesn't seem to be much info.


    All I want is to issue a command to Sonos to start playing a Radio Station (XFM London). I can then automate it with an NFC tag. What I can't work out is the syntax for the POST.

    Here's a screenshot of the Tasker task:

    http://dl.dropbox.com/u/7085178/Screenshot_2012-07-09-11-46-59.png

    Any help would be much appreciated. d
    Master_J
    Trending Lyricist I
    July 9, 2012
    Won't work without the correct "CurrentURIMetaData".

    See this thread:
    http://forums.sonos.com/showthread.php?t=22411 (#3)

    🆒

    Jochen
    Trending Lyricist I
    July 9, 2012
    Sounds like this is way beyond my pay grade. I'm going to look at using the Vera plugin and HomeBuddy to achieve this.

    Thanks for the comments.
    Headliner II
    July 9, 2012
    Won't work without the correct "CurrentURIMetaData".

    See this thread:
    http://forums.sonos.com/showthread.php?t=22411 (#3)

    🆒

    Jochen


    I don't speak german, but I believe that I actually managed to get it to work without the metadata. However, I do remember that I might have needed the x-rincon-mp3 prefix for it to work.

    Nevertheless, it might be a little too hardcore trying to achieve this using Tasker.

    Maybe a Sonos automation app for NFC and/or wifi might have a user case either way. Or a simple widget that has instant response...
    Contributor I
    June 9, 2013
    I wanted to have a nicer experience when skipping to the next track in the queue.
    It should ease down the volume, then change to the next track and then set the volume back to what it was originally.

    I made a task with a "Script"->"Javascript" action.
    In the "Path" field i chose a javascript file i have put on my phone with the following content.
    Notice - you have to change the ip address to one of your controllers. You can get the ipaddress by looking at your internet routers dhcp log.

    The javascript file called nextTrack.js. You can get it here:
    nextTrack.js
    Lyricist II
    October 3, 2013
    The answear to Tasker and Sonos is called Macronos.
    Is found at Google Play for Android.
    Lyricist I
    January 9, 2014
    Today I managed to start my bedroom sonos direct from the built in android alarm on my phone.
    Simply build a macro from macronos app add it as a task in tasker app, and pair the two.
    I know the sonos has a alarm in the software but its a lot easier to control every thing from my phone.
    Lyricist I
    March 4, 2014

    The javascript file called nextTrack.js. You can get it here:
    nextTrack.js


    Hi mdn (and others),
    could anyone make this file available again, please? I'm trying to build my own solution and I'm completely lost in trying to make tasker send UPnP commands. I'd love to have a reference to "steal" from :rolleyes:

    Unfortunatly I cannot send a PM to mdn, as I'm too new to this forum (min 5 posts to send PMs... !?)