Squeezebox Radio Control Help

Posted on
Wed Mar 31, 2010 8:50 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Squeezebox Radio Control Help

Thanks Sean...works fine.

Posted on
Wed Mar 31, 2010 9:33 pm
seanadams offline
Posts: 489
Joined: Mar 19, 2008
Location: Saratoga, CA

Re: Squeezebox Radio Control Help

cool. FYI there are a lot more commands available in SqueezeCenter, so if you get an idea for something else you'd like to do take a look at the API documentation that is included in the SC web interface. (I looked for the interrupt-and-play-this-track-and-then-resume feature that you wanted but don't see a simple way to do it).

Here's some info about the command line interface, which is an easy way to test commands:

http://wiki.slimdevices.com/index.php/CLI

The entire command set is available over the HTTP interface that this applescript is using.

Posted on
Thu Apr 01, 2010 10:23 am
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Squeezebox Radio Control Help

Man this stuff is addictive...and lovin' it.

Thanks, I'll be checking that out. Still looking to turn a text-to-speech into an
audio file somehow.

Carl

Posted on
Thu Apr 01, 2010 10:54 am
jay (support) offline
Site Admin
User avatar
Posts: 18224
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Squeezebox Radio Control Help

ckeyes888 wrote:
Still looking to turn a text-to-speech into an
audio file somehow.


Already answered that one.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Apr 01, 2010 12:29 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Squeezebox Radio Control Help

Me see but no understand. How to make it speak this "Action" and save it to a file:

set theText to " " & (value of variable "TimeOfDay") & " at Morning view lodge weather conditions are " & (value of variable "Weather_Condition") & " with a current outside temperature of" & (value of variable "Weather_Temperature_F") & " degrees.
The wind is out of the " & (value of variable "Weather_Wind_Direction") & " at " & (value of variable "Weather_Wind_MPH") & " miles per hour, and the barometric pressure is steady at " & (value of variable "Weather_Pressure_mb")
say theText

Could I get an example of what this might actually look like with an action and file name/path filled in?
say "The message to speak" saving to fileAliasReferenceOrPath

Thanks,

Carl

Posted on
Thu Apr 01, 2010 2:09 pm
jay (support) offline
Site Admin
User avatar
Posts: 18224
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Squeezebox Radio Control Help

Code: Select all
say theText saving to "/Users/YOURUSERNAMEHERE/MyAudio.aiff"


That will save it to a file in your home directory called MyAudio.aiff (assuming you replaced YOURUSERNAMEHERE with your real Mac OS X user id.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Apr 02, 2010 8:34 am
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Squeezebox Radio Control Help

As always, fantastic!

Thanks Jay.

Carl

Posted on
Fri Apr 02, 2010 9:04 am
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Squeezebox Radio Control Help

Also as always...one more q.

Would you know the syntax of this command: SlimServerPlaySong("Song Name", "Squeeze Nickname")

I've tried a number of things without any success. Not sure how this can work without at least a file path.
I assume it references an iTunes song?

Thanks,

Carl

Posted on
Fri Apr 02, 2010 9:20 am
jay (support) offline
Site Admin
User avatar
Posts: 18224
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Squeezebox Radio Control Help

Sorry, don't know anything about the SlimServer script.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Apr 02, 2010 9:59 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Squeezebox Radio Control Help

I imagine it works off of the song name in the current play list. That is, you don't use an absolute song file path, but the song has to be in the current list of songs to be played. That is just a guess though.

Image

Posted on
Fri Apr 02, 2010 11:34 am
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Squeezebox Radio Control Help

Thanks. Tried about everything I could possibly think of but no go.

Carl

Posted on
Fri Apr 02, 2010 1:53 pm
seanadams offline
Posts: 489
Joined: Mar 19, 2008
Location: Saratoga, CA

Re: Squeezebox Radio Control Help

Try turning on some debug options in SC. It's in the web ui somewhere.

Posted on
Fri Dec 28, 2012 6:36 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Squeezebox Radio Control Help

Thinking about adding a second Squeezebox Radio.
Not sure how to go about doing that. Should I just run another attachment
script similar to the one I'm using now with the second radio info inserted,
or somehow add the second radio's info to the existing script?

Thanks,

Carl

Posted on
Tue May 21, 2013 3:49 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Squeezebox Radio Control Help

Might anyone be controlling 2, or more, squeezbox radios with Indigo?

Any help appreciated.

Thanks,

Carl

Who is online

Users browsing this forum: No registered users and 30 guests