Page 1 of 2

Squeezebox Controller (V2.0.4) Available

PostPosted: Tue Mar 24, 2015 8:06 am
by autolog
Just posted a new update to my Squeezebox plugin - - see more information here.

This version has the following improvements:
  • Improved handling of disconnecting and reconnecting players; especially in relation to announcements processing
  • Minor bug fixes

As a reminder, the major changes in the V2.x.x version are:
  • A major new action Play Announcement replaces previous 'Play Alert' action. This new Play Announcement action can play sound files and also play speech files created from text input with prepended and appended sound files.
  • Numerous actions have been rationalised and renamed
  • Handling of sync'd players has been much improved
  • Support has been added for for overriding which state image icon is shown (using Indigo API version 1.18 and available in Indigo version 6.0.20)
  • Improved scripting support to enable the plugin actions to be invoked by a script
  • More detailed documentation describing custom states and actions

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Thu Apr 16, 2015 7:42 pm
by philipbasile
Is there a way to display the cover art for the album being played if its a remote stream from pandora ?

Philip

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Thu Apr 16, 2015 8:02 pm
by philipbasile
In the SB Server on screen remote it displays the current pandora cover art. Here is the URL

http://www.mysqueezebox.com/public/imag ... &h=96&w=96

does that help ?

Philip

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Fri Apr 17, 2015 12:10 am
by autolog
Have you tried a refreshing image URL in the format:
Code: Select all
http://127.0.0.1:9000/music/current/cover.jpg?player=AA:BB:CC:DD:EE:FF
where AA:BB:CC:DD:EE:FF is the address of your player?

If that doesn't work, I will have to do some investigation. :)

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Sun Apr 19, 2015 7:52 pm
by philipbasile
The refreshing image url does not work. Also I don't see anything in that folder on the server.
Do you have pandora ?

The other thing is time remaining on a song. How do you implement that on a control page ?
You don't have time remaining as a property so I created a timer that resets on a song title change.
That works but I have 2 problems...

Right now I am just sticking 180 seconds into it. How would I get the track time into the timer.
The other problem is that when I display the timer I can either display minutes or seconds but not minutes : seconds.

Any suggestions ?

Thanks
philip

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Mon Apr 20, 2015 3:58 pm
by autolog
Hi Philip,
I think I have found the documentation on how to access the Pandora artwork - I will do some changes in the next day or so but you will have to test it as I don't use Pandora (we can't get it in the UK and anyway I use Spotify).

The total time for the current track is in the 'duration' state so you might be able to use this rather than 180.

I will look at providing time remaining but it means updating the device state every second which is why I haven't done it - I didn't want to clog up my system. I'll look to see if I can set it up as a user selectable option i.e. to update track remaining time or not.

I have tabled a feature request - Realtime Timer display in Control Page? - which would make this process much more efficient. It has been add to "the list". :)

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Mon Apr 20, 2015 6:47 pm
by philipbasile
Awesome on the pandora artwork! Let me know when I can test it.

What I did for now is the following for the track time left.

I created two triggers

1. StartMusicTrackTimer
This fires on SB Song Title Change and inserts the Duration value into a Timer Control and starts it.

2. Track Timer Display
This fires every time the TimeLeftinSeconds on the Timer control changes and runs a script Jay wrote to format the time into mm:ss and stuff it into the variable TrackTimeLeft which I display on the control page.

Seems like a lot to go thru to display the time left but it works for now.

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Tue Apr 21, 2015 8:21 pm
by philipbasile
Duration is working and I think the only thing the control page is missing is the cover art.
How is that coming ?

I ended up shortening the timer code and stuffed it in the timer device instead of a variable...

tId = "com.perceptiveautomation.indigoplugin.timersandpesters"
timerPlugin = indigo.server.getPlugin(tId)
if timerPlugin.isEnabled():
duration = indigo.devices[1197210470].states['duration']
timerPlugin.executeAction("setTimerStartValue", deviceId= 1994313787, props={'amount':duration, 'amountType':'seconds'})
timerPlugin.executeAction("restartTimer", deviceId= 1994313787)

The almost finished flat iPhone interface is below...

Thanks for all your continued help

SB connected/disconnected status, SB Power on/off
Preset Pandora Stations
Time Remaining (updates every second)
Track Artist Album
Prev Track - Play/Pause - Next Track
Volume slider on the bottom

SB_iPhone.png
SB_iPhone.png (60.2 KiB) Viewed 7332 times

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Thu Apr 23, 2015 7:37 pm
by ckeyes888
Lovin the plugin, many thanks for making it even better!

Do have a small issue with the Increase/Decrease Volume Action.
When used it does adjust the volume correctly but the volume state always
shows just a +5 for an increase, and a -5 for a decrease and not
the actual volume value.
When the volume is adjusted any other way the state does
show it's value correctly.

Thanks,

Carl

P.S. Album art would be a welcome addition :-)

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Thu Apr 23, 2015 8:37 pm
by philipbasile
iPhone interface with album art for Pandora sneak peak.

2015-04-23_22-33-59.png
2015-04-23_22-33-59.png (246.72 KiB) Viewed 7291 times

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Fri Apr 24, 2015 3:19 am
by autolog
ckeyes888 wrote:
Lovin the plugin, many thanks for making it even better!

No problem - glad you are enjoying it :)

ckeyes888 wrote:
Do have a small issue with the Increase/Decrease Volume Action.
When used it does adjust the volume correctly but the volume state always
shows just a +5 for an increase, and a -5 for a decrease and not
the actual volume value.
When the volume is adjusted any other way the state does
show it's value correctly.

I can't see this behaviour - it is working as expected for me. That's not to say there isn't an issue. :wink:
Can you provide me with a bit more detail on exactly what is happening and in what circumstances and I will try and pin it down.

ckeyes888 wrote:
Album art would be a welcome addition :-)
The next version (currently being tested - see Philip's post above) will support cover art better than it does at the moment. It will include specific support for: Music files in your music library, Spotify, Qobus, Deezer and Pandora. :)

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Fri Apr 24, 2015 5:31 am
by philipbasile
I tested the volume increase action this morning quickly before leaving for work and it seems to work fine. Remember you have to set the increment (I set it to 1) in the action.

Can you explain in more detail what your doing ?

Philip

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Fri Apr 24, 2015 9:01 am
by ckeyes888
I have the increment set to 5 for both the increase and decrease volume.
When activated the state value will quickly show the correct volume change then
revert to either a +5 or -5 depending on which action you used.

The plugin is 2.0.4, Indigo 6.0.20
Mac mini. 10.5.8

Thanks,

Carl

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Fri Apr 24, 2015 10:04 am
by autolog
I have managed to reproduce it by random clicking of the volume up and down buttons :)

volumeWrong.png
volumeWrong.png (249.51 KiB) Viewed 7225 times


Not that I didn't believe you :wink:

I have just finished some extensive changes for logging that will hopefully help with debugging.

I will see what I can do to rectify it - I will look into it now :)

Re: Squeezebox Controller (V2.0.4) Available

PostPosted: Mon Jun 01, 2015 9:23 pm
by cconrad
Autolog, I love your plug-in!

I went quite a while without using it, and I recently upgraded, and you've made so many wonderful improvements. Thank you for your contributions!

One issue I'm seeing is with SB synchronization. My SBs aren't quite in sync; there's a bit of a delay that's very noticeable. At first I wasn't sure if it was plug-in related, but when I turn off the plug-in and restart my SBs, the problem goes away. Do you have any ideas for me to try?

Thanks,

-Chris