Go Back   Sonos Forums > The Unsupported Area

Reply
 
Thread Tools Display Modes
  #21  
Old Feb 7th, 2013, 09:34 AM
jishi jishi is online now
Member
 
Join Date: Nov 2010
Location: Stockholm, Sweden
Posts: 495
Default

I'm planning on adding a delay for the play attempt as well, since I sometimes comes in range of the WiFi but not enough to actually successfully trigger the players.

I'm also gonna add a "cancel" action on the notification, so that it it easy to revert the trigger if it was a bad timing to start them.
Reply With Quote
  #22  
Old May 7th, 2013, 11:48 AM
AcidSleeper AcidSleeper is offline
Member
 
Join Date: May 2013
Posts: 3
Default

Hey

I would like some help with this.

I´m trying to implement this script with tasker on my Samsung Galaxy Xcover, but with no success.

Nothing happens when I press the "test"-button in Tasker.

---TASKER---
Profile: Sonos Auto
State: WiFi Home-network Connected
Task: Run Script

Kind regard
Niclas
Reply With Quote
  #23  
Old May 7th, 2013, 01:58 PM
jishi jishi is online now
Member
 
Join Date: Nov 2010
Location: Stockholm, Sweden
Posts: 495
Default

Quote:
Originally Posted by AcidSleeper View Post
Hey

I would like some help with this.

I´m trying to implement this script with tasker on my Samsung Galaxy Xcover, but with no success.

Nothing happens when I press the "test"-button in Tasker.

---TASKER---
Profile: Sonos Auto
State: WiFi Home-network Connected
Task: Run Script

Kind regard
Niclas
The problem that you might run into with Tasker, is that you need to be able to send custom HTTP headers to replicate the SOAP call. Also, the POST body can not be the regular type (key1=value&key2=value) but instead a crafted XML body.

I don't have any real knowledge about Tasker, but if the builtin http-methods doesn't cut it, you can probably write a plugin for it.

Another route would be to run some sort of server-software on a device on your network. One suggestion is something that can run node.js since I built a simple http-api around it (but basically it can be written in any language):

http://forums.sonos.com/showthread.php?t=33834

My node.js version would run fine on a raspberry pi (I've tested it myself) for example.
Reply With Quote
  #24  
Old May 8th, 2013, 01:36 AM
AcidSleeper AcidSleeper is offline
Member
 
Join Date: May 2013
Posts: 3
Default

But should not the script you wrote run because tasker supports javascripts!?
Reply With Quote
  #25  
Old May 8th, 2013, 06:20 AM
jishi jishi is online now
Member
 
Join Date: Nov 2010
Location: Stockholm, Sweden
Posts: 495
Default

Quote:
Originally Posted by AcidSleeper View Post
But should not the script you wrote run because tasker supports javascripts!?
Although it is javascript, Tasker doesn't inplement the same API that on{x} does.
Reply With Quote
  #26  
Old May 8th, 2013, 09:40 AM
AcidSleeper AcidSleeper is offline
Member
 
Join Date: May 2013
Posts: 3
Default

Okey,
So Im stuck then...

Btw, I would gladly pay for an app that can work with Tasker and play a specific file or radio on Sonos.

Is this something you jishi can do without breaking a sweat?

We could continue this discussion in Swedish on mail, if you wish.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:29 AM.