www.homeseer.com    
 

Go Back   HomeSeer Message Board > Media Plug-ins > Media Discussion > SqueezeBox Plug-In (3P)

SqueezeBox Plug-In (3P) Discussion area for the SqueezeBox plug-in by PCP.

Reply
 
Thread Tools Display Modes
  #121  
Old August 1st, 2010, 11:29 AM
pcp pcp is offline
Super Seer
 
Join Date: Jan 2006
Location: MA
Posts: 1,647
If you use the HSTouch Shuffle action, the plug-in will also send the request to the player.
Reply With Quote
  #122  
Old August 9th, 2010, 05:50 AM
Snelvuur's Avatar
Snelvuur Snelvuur is offline
Seer Plus
 
Join Date: Nov 2006
Location: Netherlands
Posts: 122
btw, it seems that if you do the "hs.speak" action, even though you have nothing playing (but you do have a full playlist) that once its done speaking it will try and play it (i believe it is even very short, but you will notice)

bad part about this is, when i listen to spotify on my iphone at work, when somebody rings the doorbell at home my music stops here.. (because spotify was in the playlist at home, you can only stream 1 client at a time)
Reply With Quote
  #123  
Old August 9th, 2010, 10:49 PM
pcp pcp is offline
Super Seer
 
Join Date: Jan 2006
Location: MA
Posts: 1,647
Have you tried setting the player's speak volume device to 0? If set to 0 it should not speak it on that player. Another option if you don't use the speak via the SB plug-in is to disable it. Is this player typically turned OFF when it tries to speak or ON and paused? I will try to reproduce it.
Reply With Quote
  #124  
Old August 10th, 2010, 05:16 AM
Snelvuur's Avatar
Snelvuur Snelvuur is offline
Seer Plus
 
Join Date: Nov 2006
Location: Netherlands
Posts: 122
Well the player is suppose to speak. It does speak correctly when the music is playing for instance, it stops the music then speaks, then start what was playing again.

When there is no music playing but there is still a playlist present it will speak (so yes, turned on and paused) then for a short duration (talking here in less then a second maybe) i can hear the speakers pop a sound. When using spotify that second is enough to trigger spotify to cancel streaming on wherever i am

In the other thread i referred to http://www.domoticaforum.eu/viewtopic.php?f=47&t=3768 which had a script which does something similar, but this one starrt playing the old playlist after a "speak" or "wav" file, which is a bad thing. It does however use a "silent" wav file for knowing when the sound is done. Perhaps he had the same issue.

Just thinking out loud here, you know more then me
Reply With Quote
  #125  
Old September 6th, 2010, 12:30 AM
heatvent's Avatar
heatvent heatvent is offline
Seer Master
 
Join Date: Nov 2007
Location: Chicago
Posts: 1,145
Quote:
Originally Posted by pcp View Post
I have to look into it if I can always get the sync states... would an API call returning a status be fine as I am not sure were I could show it otherwise in the current HS2 devices?
PCP, any chance this is in the works?
Reply With Quote
  #126  
Old September 9th, 2010, 04:35 PM
pcp pcp is offline
Super Seer
 
Join Date: Jan 2006
Location: MA
Posts: 1,647
No didn't have a change to look into it yet.
Reply With Quote
  #127  
Old October 8th, 2010, 11:56 AM
zimmer62's Avatar
zimmer62 zimmer62 is offline
Super Seer
 
Join Date: Jan 2002
Location: Lansing, MI, USA
Posts: 1,811
Can I have a little tiny bit more information about the way TTS and wavein work?

Do you have to be running a speaker client on a windows box to use the wavein?

My sqeezeserver is running on a linux box, (vortexbox 1.5)

TTS seems to work, so I'm guessing what it does is use a speech proxy to intercept it, then play it on the sqeezeboxes and then return the players to whatever state they were in right after?

I'm trying to figure out why wave in would be better, and how to make it work with a linux box as my sqeeezeserver
__________________
Joe (zimmer62)

BLSecurtiy, AC-RF2, RCS Serial Thermostats, RFXCOM SMarthome SwitchLinc, mcsXap, Global Cache GC100, SqueezeBox, TWA_ONKYOINTEGRA, BLLogMonitor, BLPlugins, BLRadar, BLSpeech, BLZLog.aspx, HSTouch (Windows, iPhone, iPod), USB Mimo touchscreens, VMWare Server, Vortexbox, Windows Home Server, MyMovies, Windows Media Center, X10, ZWave, and much much much more.
Reply With Quote
  #128  
Old October 11th, 2010, 06:51 AM
pcp pcp is offline
Super Seer
 
Join Date: Jan 2006
Location: MA
Posts: 1,647
The TTS option uses the TTS Windows APIs to convert the text to a sound saving it to a file on the HS2 server and then streaming it to the SB server/players via the HTTP server embedded in HS2.

The wavein option redirects the audio on the SB server to the player(s). It samples any audio (again from a sound card on the SB server) to players not just a HS2 speaker client playing on the SB server to that this audio stream. For wavein to work, you need a HS2 speaker client to run on the computer where you run wavein to sample to audio output and redirect it to SB players. In your case and since I believe there is no HS2 speaker client for Linux, the TTS is your option (except of course if you run the hs2 speaker client on a windows and connect the audio out to the audio in of the sound card on the Linux SB server).
Reply With Quote
  #129  
Old October 11th, 2010, 09:04 AM
zimmer62's Avatar
zimmer62 zimmer62 is offline
Super Seer
 
Join Date: Jan 2002
Location: Lansing, MI, USA
Posts: 1,811
Thanks for the clarification, that will save me a little bit of hair pulling.
Reply With Quote
  #130  
Old October 22nd, 2010, 03:06 PM
zimmer62's Avatar
zimmer62 zimmer62 is offline
Super Seer
 
Join Date: Jan 2002
Location: Lansing, MI, USA
Posts: 1,811
Quote:
Originally Posted by pcp View Post
No didn't have a change to look into it yet.
I think the CLI supports this..
PHP Code:
syncgroups ?

The "syncgroups" query returns a comma separated list of sync groups members (IDs and names).

Examples:

    
Request"syncgroups ?<LF>"
    
Response"syncgroups sync_members:04:20:00:12:23:45,04:20:00:12:34:56 sync_member_names:Living%20Room,Kitchen<LF>" 
maybe you could give us a command that's similar to PlayerSendCLICommand

instead it would be something like this.

PHP Code:
Public Function PlayerQueryCLICommand(ByVal playerName As StringByVal
command 
As Stringtimeout as integer) As String 
or whatever... That would take the load off of you for adding in commands that might not even be supported yet. Allowing us to do what we want with the data that comes back.
Reply With Quote
  #131  
Old October 23rd, 2010, 03:43 PM
pcp pcp is offline
Super Seer
 
Join Date: Jan 2006
Location: MA
Posts: 1,647
Yes I looked at this one; the issue was more how to get reliably notified all the time that groups changed and how to add a representation to HS2 devices (without adding a new one). Good idea about exposing API(s) to query the server and get replies. I can add such APIs to the next update.
Reply With Quote
  #132  
Old October 24th, 2010, 09:22 PM
jwilson56's Avatar
jwilson56 jwilson56 is offline
Seer Master
 
Join Date: Nov 2001
Location: Dearborn, Michigan
Posts: 751
New to Squeezebox so bare with me. What is the cheapest solution to get for Pandora support for hardware and what software needs to be installed also on Homeseer server. Also will this plugin have two way communications with Squeezebox and get the current playing Artist, track ect?
__________________
John
Reply With Quote
  #133  
Old October 30th, 2010, 11:55 AM
pcp pcp is offline
Super Seer
 
Join Date: Jan 2006
Location: MA
Posts: 1,647
I updated the Beta version (2.0.0.11) in the first dialog that includes two APIs to query the SqueezeBox Server (for a specific player or the server). It returns the reply send by the server and can for example be used to query the syncgroups. See below

Code:
str = hspi.PlayerQueryCLICommand("SqueezeboxTV", "sleep ?")
hs.WriteLog("SB Music", "Player CLI Command: " & str)

str = hspi.ServerQueryCLICommand("syncgroups ?")
hs.WriteLog("SB Music", "Server CLI Command: " & str)
Please try it out. I plan to release this version of the beta version as the release version which will make it available via the updater.
Reply With Quote
  #134  
Old October 30th, 2010, 12:00 PM
pcp pcp is offline
Super Seer
 
Join Date: Jan 2006
Location: MA
Posts: 1,647
Quote:
Originally Posted by jwilson56 View Post
New to Squeezebox so bare with me. What is the cheapest solution to get for Pandora support for hardware and what software needs to be installed also on Homeseer server. Also will this plugin have two way communications with Squeezebox and get the current playing Artist, track ect?
yes it is a two way communication. You view/select/control the music, control hs2 from the players menu or trigger using the player's IR remote, display screensaver screens on some players based on HS2 devices. Check the documentation (pdf) included in the plugin (in html\SqueezeBox once installed and can be accessed from hs2 help's resource) to get more details.
Reply With Quote
  #135  
Old November 20th, 2010, 08:14 PM
Uncle Michael's Avatar
Uncle Michael Uncle Michael is offline
OverSeer
 
Join Date: Feb 2006
Location: Rochester, NY
Posts: 5,535
Settings on Server plug-in?

I just installed .12 of v2 beta. Went very smoothly and the integration w HSTouch looks to be excellent. Fantastic job!

One detail seems to be missing. I do not see how to update the IP address of HS in the SB Server plug-in. There is no link to Settings next to the plug-in entry. Is that deliberate, an oversight, or am I just missing something obvious?
__________________
Mike____________________________________________________________ __________________
HS3 Pro Edition 3.0.0.318

HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF, Rain8Net+ | RFXCOM | QSE100D | Vantage Pro | Green-Eye | X10:
Compose, XTB-232, -IIR | Edgeport/8 | Way2Call | Ecobee3

Reply With Quote
  #136  
Old November 21st, 2010, 07:12 PM
pcp pcp is offline
Super Seer
 
Join Date: Jan 2006
Location: MA
Posts: 1,647
Thank you! The "settings" access should be available from the SB server plug-in configuration page. I saw in another post you are using SB Server 7.3 instead of 7.5 (the latest). If I recall there were some changes at some point but don't recall if it was for SB server 7.3. Also the install.xml included in the SqueezeBox plug-in installation zip file specifies a minimum version of 7.4.Can you upgrade to SB server 7.5?
Reply With Quote
  #137  
Old November 21st, 2010, 09:53 PM
Uncle Michael's Avatar
Uncle Michael Uncle Michael is offline
OverSeer
 
Join Date: Feb 2006
Location: Rochester, NY
Posts: 5,535
As I noted in the other thread, I'm actually using 7.5.1.
I'm also seeing a menu button labeled 'Repo' now. Any way to get rid of it?
Attached Images
  
Reply With Quote
  #138  
Old November 22nd, 2010, 07:56 PM
pcp pcp is offline
Super Seer
 
Join Date: Jan 2006
Location: MA
Posts: 1,647
Unfortunately not. Initially I tried to expose the repo to the SB Server via the other pages and CGI arguments, but the SB server wanted a URL with arguments.
Reply With Quote
  #139  
Old December 3rd, 2010, 10:54 AM
Uncle Michael's Avatar
Uncle Michael Uncle Michael is offline
OverSeer
 
Join Date: Feb 2006
Location: Rochester, NY
Posts: 5,535
MusicAPI - Current Track, Album, Artist

I've been experimenting with retrieving current track, album and artist using the link to the MusicAPI. What I'm seeing is inconsistent. Sometimes I get all three, frequently only current track is returned. In all cases, though, the player title device string contains all three items. In fact, I don't think it has ever failed to display all three.

Is there a trick? Is there a better way to access this information?

Code:
Public Sub Main(ByVal Parms As Object)

    ' Script to retrieve current music selection 


    Dim strLine1 as String = ""
    Dim strLine2 as String = ""
    Dim strLine3 as String = ""

    Dim objMusic as Object = hs.plugin("SqueezeBox").GetMusicAPI(1)

    strLine1 = objMusic.CurrentTrack
    strLine2 = objMusic.CurrentAlbum
    strLine3 = objMusic.CurrentArtist

    hs.WriteLog("Line1", strLine1)
    hs.WriteLog("Line2", strLine2)
    hs.WriteLog("Line3", strLine3)

        hs.SetDeviceString("T91", strLine1)
        hs.SetDeviceString("T92", strLine2)
        hs.SetDeviceString("T93", strLine3)

    objMusic = Nothing

    End Sub
Reply With Quote
  #140  
Old December 3rd, 2010, 06:24 PM
Uncle Michael's Avatar
Uncle Michael Uncle Michael is offline
OverSeer
 
Join Date: Feb 2006
Location: Rochester, NY
Posts: 5,535
I discovered that adding some delays between MusicAPI queries has helped. It appears that 300 msec is the shortest wait that works reliably. Is that expected? (My query is to a SB Server running on a separate computer over a wired network connection with at least one intervening switch.)
Reply With Quote
Reply

Bookmarks

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 On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 08:59 AM.


Copyright HomeSeer Technologies, LLC