Need some help testing the squeezebox binding...

1,467 views
Skip to first unread message

Markus

unread,
May 21, 2013, 1:28:30 PM5/21/13
to ope...@googlegroups.com
Hello everyone,

does anyone of you own one or more Squeezeboxes? I had a report from a openhab user saying that the last update of my squeezebox binding is broken (song infos are missing). Unfortunately I can't reproduce the bug with my setup. It would be great if someone can spend some time and help me testing the stuff.

http://code.google.com/p/openhab/issues/detail?id=187

Thanks in advance,
Markus

oliver_...@gmx.de

unread,
May 21, 2013, 2:08:38 PM5/21/13
to ope...@googlegroups.com
Do I have to build the binding by myself or do you provide a jar file somewhere?

Markus

unread,
May 21, 2013, 2:20:10 PM5/21/13
to ope...@googlegroups.com
Right now there is only the src. But if someone give me a helping hand on how to build jar...

oliver_...@gmx.de

unread,
May 21, 2013, 3:14:08 PM5/21/13
to ope...@googlegroups.com
Do you have a Maven installation/runtime? If so just have to type mvn clean package in the command line in your binding project. The jar file is written to the target directory. anything like org.openhab.binding.squeezebox-1.3.0-SNAPSHOT.jar

Ben Jones

unread,
May 21, 2013, 4:16:36 PM5/21/13
to ope...@googlegroups.com
I have Squeezebox Server running on my Ubunutu 12.04 server, serving 4 Squeezebox devices, 2xBooms, 1xTouch, 1xReceiver. I would be more than happy to test. Are there instructions somewhere about how to configure the binding?

Markus

unread,
May 21, 2013, 4:27:31 PM5/21/13
to ope...@googlegroups.com
Thanks Oliver, will habe a look at it tomorrow

Markus

unread,
May 21, 2013, 4:34:38 PM5/21/13
to ope...@googlegroups.com
Hi Ben, right now there is only a demo cfg in the repo. If you need any further help, feel free to contact me directly.

Greg

unread,
May 22, 2013, 10:29:02 AM5/22/13
to ope...@googlegroups.com

I've attached the .jar.
It was built against openhab 1.2.

The configuration from the Marcus' source:
openhab config add:
#Squeezebox
squeeze:server.host=192.168.xxx.xx
squeeze:server.cliport=9090 
squeeze:server.webport=9000

squeeze:player1.id=00:04:20:1e:92:0e 

add to items:
Dimmer sq_test_volume   "Volume [%.1f %%]" { squeeze="PERCENT:player1:volume, INCREASE:player1:volume_increase, DECREASE:player1:volume_decrease" }
String sq_test_title   "Title [%s]" { squeeze="STRING:player1:title" }
Switch sq_test_mute     "Mute" { squeeze="ONOFF:player1:isMuted, ON:player1:mute, OFF:player1:unmute" }
Switch sq_test_play     "Play" { squeeze="ONOFF:player1:isPlaying, ON:player1:play" }
Switch sq_test_stop     "Stop" { squeeze="ONOFF:player1:isStopped, ON:player1:stop" }
Switch sq_test_pause   "Pause" { squeeze="ONOFF:player1:isPaused, ON:player1:pause" }
Switch sq_test_power   "Power" { squeeze="ONOFF:player1:isPowered, ON:player1:powerOn, OFF:player1:powerOff" }
Number sq_test_play_select "Demo" { squeeze="0:player1:stop, 1:player1:http=wdr-mp3-m-wdr2-duesseldorf.akacast.akamaistream.net/7/371/119456/v1/gnl.akacast.akamaistream.net/wdr-mp3-m-wdr2-duesseldorf, 2:player1:file=/somemusic.mp3" }
String sq_test_album   "Album [%s]" { squeeze="STRING:player1:album" }
String sq_test_coverart   "Coveart url [%s]" { squeeze="STRING:player1:coverart" }
String sq_test_artist   "Artist [%s]" { squeeze="STRING:player1:artist" }
String sq_test_year     "Year [%s]" { squeeze="STRING:player1:year" }
String sq_test_genre   "Genre [%s]" { squeeze="STRING:player1:genre" }
String sq_test_station   "Station name [%s]" { squeeze="STRING:player1:remotetitle" }

and sitemap:
Text label="Squeezebox Test"  {
Text item=sq_test_title
Slider item=sq_test_volume
Switch item=sq_test_mute
Switch item=sq_test_play
Switch item=sq_test_stop
Switch item=sq_test_pause
Switch item=sq_test_power
Selection item=sq_test_play_select mappings=[0=stop, 1=WDR2, 2=MP3]
Text item=sq_test_album
Text item=sq_test_artist
Text item=sq_test_coverart
Text item=sq_test_year
Text item=sq_test_genre
Text item=sq_test_station
}

I hope this gets you started.

Greg
openhab.squeezebox.jar

Markus

unread,
May 22, 2013, 1:47:15 PM5/22/13
to ope...@googlegroups.com
Greg thanks a lot for your help!
I must have been very tired when I had the last look at the code. There were indeed at least two bugs in my code. One with cfg parsing and one with volume control. :-( Sorry for that
I've just uploaded a fix for both of them, hopefully with this the binding is up again...

Unfortunately I can't build the jar :-/ Building with eclipse is no problem but "mvn clean package" is throwing the following error:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.15.0:compile (default-compile) on project org.openhab.binding.squeezebox: Compilation failure: Compilation failure:
[ERROR] E:\Develop\mwolters666-dev\bundles\binding\org.openhab.binding.squeezebox\src\main\java\org\openhab\binding\squeezebox\internal\SqueezeboxBinding.java:[127,0]
[ERROR] public void internalReceiveCommand(String itemName, Command command) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method internalReceiveCommand(String, Command) of type SqueezeboxBinding must override or implement a supertype method
[ERROR] 1 problem (1 error)
[ERROR] -> [Help 1]

As I'm not very familiar with maven and java building, does anyone of you can tell me where to fix this (think there is a "buildscript" somewhere)?

Markus

unread,
May 22, 2013, 1:51:47 PM5/22/13
to ope...@googlegroups.com
I've just found out that the eclipse part is broken too since I did the maven thing. Now I REALLY need some help ;-)

Thomas Eichstädt-Engelen

unread,
May 22, 2013, 5:42:11 PM5/22/13
to ope...@googlegroups.com
Hi,

you seem to use a very old core in your clone. I saw log statements which refer to tycho 0.15.0 (current version is 0.17.0). So please merge the current default first (see http://hgbook.red-bean.com/read/a-tour-of-mercurial-merging-work.html for further details on merging).

Regards,

Thomas E.-E.



On May 22, 2013, at 7:51 PM, Markus <m.wolt...@googlemail.com> wrote:

I've just found out that the eclipse part is broken too since I did the maven thing. Now I REALLY need some help ;-)

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Markus

unread,
May 23, 2013, 2:35:57 PM5/23/13
to ope...@googlegroups.com
I hate to be a noob, but anyhow...

I did the merge with the main repo and I can build with eclipse again. The maven thing still fails, but I've pushed the latest version into my repo.

Downloaded: http://www.fornax-platform.org/nexus/content/groups/public/org/eclipse/tycho/org.eclipse.osgi/3.9.0.v20130305-2200/org.eclipse.osgi-3.9.0.v20130305-2200.jar (1354 KB at 180.1 KB/sec)
[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.openhab:targetplatform:target:openhab:1.3.0-SNAPSHOT -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.openhab:targetplatform:target:openhab:1.3.0-SNAPSHOT
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: Could not resolve target platform specification artifact org.openhab:targetplatform:target:openhab:1.3.0-SNAPSHOT
        at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.addTargetArtifact(DefaultTargetPlatformConfigurationReader.java:334)
        at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.setTarget(DefaultTargetPlatformConfigurationReader.java:288)
        at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.getTargetPlatformConfiguration(DefaultTargetPlatformConfigurationReader.java:71)
        at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:78)
        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:77)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        ... 11 more
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException

Thomas Eichstädt-Engelen

unread,
May 23, 2013, 3:39:35 PM5/23/13
to ope...@googlegroups.com
which maven version?

> mvn -version


Markus

unread,
May 23, 2013, 3:52:03 PM5/23/13
to ope...@googlegroups.com
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: E:\apache-maven-3.0.4
Java version: 1.7.0_03, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_03\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

Thomas Eichstädt-Engelen

unread,
May 23, 2013, 5:01:31 PM5/23/13
to ope...@googlegroups.com
Hi,

i've checked out your clone and can build it:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] openHAB ........................................... SUCCESS [2.202s]
[INFO] openHAB Bundles ................................... SUCCESS [0.004s]
[INFO] openHAB Core Components ........................... SUCCESS [0.004s]
[INFO] openHAB Core ...................................... SUCCESS [12.110s]
[INFO] openHAB Core Library .............................. SUCCESS [0.447s]
[INFO] openHAB Core Scheduler Service .................... SUCCESS [0.465s]
[INFO] openHAB Configurations ............................ SUCCESS [0.004s]
[INFO] openHAB Configuration Core ........................ SUCCESS [0.324s]
[INFO] openHAB Core Script Engine ........................ SUCCESS [0.362s]
[INFO] openHAB Models .................................... SUCCESS [0.005s]
[INFO] openHAB Model Core ................................ SUCCESS [0.501s]
[INFO] openHAB Model Items ............................... SUCCESS [27.640s]
[INFO] openHAB Bindings .................................. SUCCESS [0.029s]
[INFO] openHAB Bluetooth Binding ......................... SUCCESS [0.822s]
[INFO] openHAB I/O Components ............................ SUCCESS [0.046s]
[INFO] openHAB Serial Transport .......................... SUCCESS [0.202s]
[INFO] openHAB AutoUpdate Binding ........................ SUCCESS [0.342s]
[INFO] openHAB KNX Binding ............................... SUCCESS [0.772s]
[INFO] openHAB KNX Binding Tests ......................... SUCCESS [21.980s]
[INFO] openHAB Serial Binding ............................ SUCCESS [0.594s]
[INFO] openHAB 1-Wire Binding ............................ SUCCESS [1.032s]
[INFO] openHAB Wake-on-LAN binding ....................... SUCCESS [0.311s]
[INFO] openHAB Multimedia I/O ............................ SUCCESS [0.435s]
[INFO] openHAB Console ................................... SUCCESS [0.410s]
[INFO] openHAB Network I/O ............................... SUCCESS [1.175s]
[INFO] openHAB NetworkHealth Binding ..................... SUCCESS [0.449s]
[INFO] openHAB Core Transformation Service ............... SUCCESS [0.395s]
[INFO] openHAB Exec Binding .............................. SUCCESS [0.369s]
[INFO] openHAB Exec Binding Tests ........................ SUCCESS [5.318s]
[INFO] openHAB HTTP Binding .............................. SUCCESS [0.275s]
[INFO] openHAB HTTP Binding Tests ........................ SUCCESS [6.127s]
[INFO] openHAB Service Discovery ......................... SUCCESS [0.405s]
[INFO] openHAB Model Sitemap ............................. SUCCESS [21.014s]
[INFO] openHAB UIs ....................................... SUCCESS [0.015s]
[INFO] openHAB UI ........................................ SUCCESS [0.790s]
[INFO] openHAB REST Interface ............................ SUCCESS [1.341s]
[INFO] openHAB Hue Binding ............................... SUCCESS [1.065s]
[INFO] openHAB Librarys .................................. SUCCESS [0.020s]
[INFO] openHAB Tel Library ............................... SUCCESS [0.289s]
[INFO] openHAB Fritzbox Binding .......................... SUCCESS [0.274s]
[INFO] openHAB NTP Binding ............................... SUCCESS [0.228s]
[INFO] openHAB MPD Binding ............................... SUCCESS [0.266s]
[INFO] openHAB VDR Binding ............................... SUCCESS [0.242s]
[INFO] openHAB Asterisk Binding .......................... SUCCESS [0.305s]
[INFO] openHAB SNMP Binding .............................. SUCCESS [0.242s]
[INFO] openHAB Model Persistence ......................... SUCCESS [13.856s]
[INFO] openHAB Core Persistence .......................... SUCCESS [0.334s]
[INFO] openHAB Sonos Binding ............................. SUCCESS [0.764s]
[INFO] openHAB ConfigAdmin Binding ....................... SUCCESS [0.210s]
[INFO] openHAB Novelan Heatpump Binding .................. SUCCESS [0.279s]
[INFO] openHAB Cups Binding .............................. SUCCESS [0.408s]
[INFO] openHAB IHC / ELKO LS Binding ..................... SUCCESS [0.491s]
[INFO] openHAB TCP/UDP Binding ........................... SUCCESS [0.378s]
[INFO] openHAB Plugwise Binding .......................... SUCCESS [0.431s]
[INFO] openHAB Modbus Binding ............................ SUCCESS [0.624s]
[INFO] openHAB PLCBus Binding ............................ SUCCESS [0.476s]
[INFO] openHAB DMX Binding ............................... SUCCESS [0.262s]
[INFO] openHAB OLA inteface for DMX Binding .............. SUCCESS [0.247s]
[INFO] openHAB lib485 interface for DMX Binding .......... SUCCESS [0.107s]
[INFO] openHAB DMX Binding Tests ......................... SUCCESS [8.415s]
[INFO] openHAB RFXCOM Binding ............................ SUCCESS [0.498s]
[INFO] openHAB Samsung TV Binding ........................ SUCCESS [0.291s]
[INFO] openHAB Pulseaudio Binding ........................ SUCCESS [0.234s]
[INFO] openHAB Homematic Binding ......................... SUCCESS [0.682s]
[INFO] openHAB Homematic Binding Tests ................... SUCCESS [5.534s]
[INFO] openHAB Koubachi Binding .......................... SUCCESS [0.319s]
[INFO] openHAB Onkyo Binding ............................. SUCCESS [0.218s]
[INFO] openHAB squeezebox Binding ........................ SUCCESS [0.468s]
[INFO] openHAB Core Tests ................................ SUCCESS [2.708s]
[INFO] openHAB Core Library Tests ........................ SUCCESS [4.070s]
[INFO] openHAB Drools Rule Engine ........................ SUCCESS [1.098s]
[INFO] openHAB Core Persistence Tests .................... SUCCESS [5.720s]
[INFO] openHAB Core Transformation Service Tests ......... SUCCESS [0.319s]
[INFO] openHAB Designer Bundles .......................... SUCCESS [0.036s]
[INFO] openHAB Designer Core Plugin ...................... SUCCESS [0.327s]
[INFO] openHAB Designer UI Plugin ........................ SUCCESS [0.847s]
[INFO] openHAB Monitor ................................... SUCCESS [0.136s]
[INFO] openHAB Multimedia FreeTTS ........................ SUCCESS [1.025s]
[INFO] openHAB Multimedia MaryTTS ........................ SUCCESS [27.443s]
[INFO] openHAB Network I/O Tests ......................... SUCCESS [4.908s]
[INFO] openHAB Google Calendar ........................... SUCCESS [0.689s]
[INFO] openHAB Google Calendar Tests ..................... SUCCESS [5.483s]
[INFO] openHAB Dropbox ................................... SUCCESS [0.385s]
[INFO] openHAB Model Item UI ............................. SUCCESS [1.078s]
[INFO] openHAB Model Persistence UI ...................... SUCCESS [0.764s]
[INFO] openHAB Model Script .............................. SUCCESS [29.642s]
[INFO] openHAB Model Rules ............................... SUCCESS [27.262s]
[INFO] openHAB Model Script UI ........................... SUCCESS [2.310s]
[INFO] openHAB Model Rules UI ............................ SUCCESS [1.041s]
[INFO] openHAB Model Sitemap UI Plugin ................... SUCCESS [0.644s]
[INFO] openHAB Persistence Components .................... SUCCESS [0.047s]
[INFO] openHAB db4o Persistence .......................... SUCCESS [0.498s]
[INFO] openHAB db4o Persistence Tests .................... SUCCESS [5.878s]
[INFO] openHAB Logging Persistence ....................... SUCCESS [0.417s]
[INFO] openHAB Open.Sen.se Persistence ................... SUCCESS [1.233s]
[INFO] openHAB RRD4j Persistence ......................... SUCCESS [0.554s]
[INFO] openHAB Exec Persistence .......................... SUCCESS [0.299s]
[INFO] openHAB Exec Persistence Tests .................... SUCCESS [4.950s]
[INFO] openHAB SQL Persistence ........................... SUCCESS [0.197s]
[INFO] openHAB SQL Persistence - MySQL Driver ............ SUCCESS [0.195s]
[INFO] openHAB Cosm Persistence Service .................. SUCCESS [0.276s]
[INFO] openHAB UI Tests .................................. SUCCESS [0.347s]
[INFO] openHAB UI WebApp ................................. SUCCESS [0.512s]
[INFO] openHAB Features .................................. SUCCESS [0.049s]
[INFO] openHAB Dependencies .............................. SUCCESS [0.344s]
[INFO] openHAB Designer .................................. SUCCESS [0.629s]
[INFO] openHAB Runtime ................................... SUCCESS [1.539s]
[INFO] openHAB Products .................................. SUCCESS [0.032s]
[INFO] openHAB Runtime Application ....................... SUCCESS [31.421s]
[INFO] openHAB Designer RCP Application .................. SUCCESS [5:00.080s]
[INFO] openHAB Target Platform ........................... SUCCESS [4.543s]
[INFO] openHAB Distribution .............................. SUCCESS [1:43.930s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17:41.987s
[INFO] Finished at: Thu May 23 22:50:22 CEST 2013
[INFO] Final Memory: 226M/640M
[INFO] ------------------------------------------------------------------------
tees-macbook-pro:mwolters666-dev thomasee$ 

my maven version is:

tees-macbook-pro:mwolters666-dev thomasee$ mvn -version
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/share/maven
Java version: 1.7.0_15, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_15.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.8.3", arch: "x86_64", family: "mac"
tees-macbook-pro:mwolters666-dev thomasee$ 

Could try to build a clean checkout (make a copy of your local version before).

Regards,

Thomas E.-E.

Ben Jones

unread,
May 26, 2013, 1:59:45 AM5/26/13
to ope...@googlegroups.com
Hey - I have tried your binding (uploaded by Greg) but I am getting no response. I have copied Gregs item/sitemap and updated openhab.cfg to match my server/players. My server is on the same box as my openHAB install so I have entered 127.0.0.1 as the squeeze:server.host. However when I try any of the switches/actions nothing happens on my player and there is nothing in the logs. 

I put openhab.squeezebox.jar in /openhab/addons. Should it go somewhere else?

Greg

unread,
May 26, 2013, 10:25:42 AM5/26/13
to ope...@googlegroups.com
I've attached the latest build.
Yes, it should go into the addons directory.
You should see the binding load in the debug log : DEBUG o.o.b.s.i.SqueezeboxActivator[:51]- Squeezebox binding has been started.
If you are not running in debug mode, at least you should see: INFO  o.o.b.s.i.SqueezeboxBinding[:83]- Squeezebox binding 1
org.openhab.binding.squeezebox-1.3.0-SNAPSHOT.jar

Markus

unread,
May 26, 2013, 12:28:49 PM5/26/13
to ope...@googlegroups.com
Thank you Greg for your help with the snapshots.

With a fresh clone I'm now able to build them too.

Find the latest version with a small volume control fix attached.
org.openhab.binding.squeezebox-1.3.0-SNAPSHOT.jar

Ben Jones

unread,
May 26, 2013, 5:20:51 PM5/26/13
to ope...@googlegroups.com
Great work guys - this latest build is working well on my install now. Think we need some 'media' styled icons...

Greg

unread,
May 27, 2013, 3:51:08 PM5/27/13
to ope...@googlegroups.com
Funny you should mention that.
Here's a start
images.zip

Ben Jones

unread,
May 27, 2013, 4:05:44 PM5/27/13
to ope...@googlegroups.com
Nice one!


On Wednesday, 22 May 2013 05:28:30 UTC+12, Markus wrote:

Markus

unread,
May 28, 2013, 2:32:23 PM5/28/13
to ope...@googlegroups.com
Nice icons Greg!

As we are talking about extensions, does anyone of you has any further missing things which are not included in the binding at the moment?

If not, I would like to ask the project "founders"/ senior oh developers (Kay, Thomas ;-)) for a review of the code.

Greg

unread,
May 28, 2013, 5:14:53 PM5/28/13
to ope...@googlegroups.com
Seems to be working fine on my end!

hipitihop

unread,
Jun 4, 2013, 9:10:57 PM6/4/13
to ope...@googlegroups.com
Nice work, happy to help. I'm no Java guru, but I code alternative lingos for a living and I'm certainly willing to assist here with testing etc.

I haven't done extensive testing of your binding yet, but I have managed to get my squeezeserver and three players working with basic functionality, hurah !! I'm using OpenHAB 1.2 and my squeeze details are bellow. Note my server currently sits on separate box to openHAB, not important but thought I'd mention.

A couple of things I would like also get going:
  • synchronize and decouple players.
  • choose from setup favorites as opposed to manually configure in openHAB.
  • send arbitrary openHAB announcements to one or more players. As far as I am aware the basic squeeze protocol allows for this but probably would have to be in the form of one of the supported music formats i.e. use the openHAB TTS captured to a file like WAV or AAC, then sent to player(s) for announcement. Clearly the ins and outs of the details would need investigation and discussion here, but I' happy to try and help code and test. So if anyone feels this is interesting, please chime in. This may deserve a separate thread.
Ubuntu 10.04.4. LTS
Logitech Media Server Version: 7.7.2 - r33893 @ Wed Mar 14 05:46:46 PDT 2012
Operating system: Debian - EN - utf8
Platform Architecture: x86_64-linux
Perl Version: 5.10.1 - x86_64-linux-gnu-thread-multi
Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
Total Players Recognized: 3

Player Model: Controller Firmware: 7.7.2-r9663
Player Model: Squeezebox Boom Firmware: 57
Player Model: Squeezebox Receiver Firmware: 77

Markus

unread,
Jun 5, 2013, 10:59:49 AM6/5/13
to ope...@googlegroups.com
  • synchronize and decouple players.
Add/remove like in the sonos binding?
  • choose from setup favorites as opposed to manually configure in openHAB.

Could you please explain a little bit more what you mean?

  • send arbitrary openHAB announcements to one or more players. As far as I am aware the basic squeeze protocol allows for this but probably would have to be in the form of one of the supported music formats i.e. use the openHAB TTS captured to a file like WAV or AAC, then sent to player(s) for announcement. Clearly the ins and outs of the details would need investigation and discussion here, but I' happy to try and help code and test. So if anyone feels this is interesting, please chime in. This may deserve a separate thread.
I thought about that by myself already. A combination of jack + vlc maybe could do the trick on a linux machine. The only thing to do would be switching to the right stream and back (if already playing).

hipitihop

unread,
Jun 6, 2013, 6:20:02 AM6/6/13
to ope...@googlegroups.com
On Thursday, 6 June 2013 00:59:49 UTC+10, Markus wrote:
  • synchronize and decouple players.
Add/remove like in the sonos binding?
  • choose from setup favorites as opposed to manually configure in openHAB.

I'm not familiar with the Sonos functionality or the corresponding binding sorry. With Squeezeserver, it is possible to synchronise one or more players with another,
I would like to be able to specify which players to synchronise, or if already synchronised, to decouple them so that they play independently again.
 

Could you please explain a little bit more what you mean?

  • send arbitrary openHAB announcements to one or more players. As far as I am aware the basic squeeze protocol allows for this but probably would have to be in the form of one of the supported music formats i.e. use the openHAB TTS captured to a file like WAV or AAC, then sent to player(s) for announcement. Clearly the ins and outs of the details would need investigation and discussion here, but I' happy to try and help code and test. So if anyone feels this is interesting, please chime in. This may deserve a separate thread.
I thought about that by myself already. A combination of jack + vlc maybe could do the trick on a linux machine. The only thing to do would be switching to the right stream and back (if already playing).

I would like to announce arbitrary TTS either on a specific squeezeplayer defined in items, or all players (parameter in rule).  Example pseudo rule code example bellow:

// Rule announces system startup on all Squeeplayers
rule
Startup
when
       
System started
then
       
saySqueeze("all", "OpenHab started successfully")
end

Markus

unread,
Jun 8, 2013, 12:22:28 PM6/8/13
to ope...@googlegroups.com


Am Donnerstag, 6. Juni 2013 12:20:02 UTC+2 schrieb hipitihop:
On Thursday, 6 June 2013 00:59:49 UTC+10, Markus wrote:
  • synchronize and decouple players.
Add/remove like in the sonos binding?
  • choose from setup favorites as opposed to manually configure in openHAB.

I'm not familiar with the Sonos functionality or the corresponding binding sorry. With Squeezeserver, it is possible to synchronise one or more players with another,
I would like to be able to specify which players to synchronise, or if already synchronised, to decouple them so that they play independently again.

I will have a look at it.


Could you please explain a little bit more what you mean?

  • send arbitrary openHAB announcements to one or more players. As far as I am aware the basic squeeze protocol allows for this but probably would have to be in the form of one of the supported music formats i.e. use the openHAB TTS captured to a file like WAV or AAC, then sent to player(s) for announcement. Clearly the ins and outs of the details would need investigation and discussion here, but I' happy to try and help code and test. So if anyone feels this is interesting, please chime in. This may deserve a separate thread.
I thought about that by myself already. A combination of jack + vlc maybe could do the trick on a linux machine. The only thing to do would be switching to the right stream and back (if already playing).

I would like to announce arbitrary TTS either on a specific squeezeplayer defined in items, or all players (parameter in rule).  Example pseudo rule code example bellow:

// Rule announces system startup on all Squeeplayers
rule
Startup
when
       
System started
then
       
saySqueeze("all", "OpenHab started successfully")
end


I don't like the idea of merging the tts system and the squeezebox binding. But what you like to do should nearly be possible already. Hook up the audio device to a streaming server and use a rule to switch one or more squeezeboxes to the streaming chanel, the say something.

Greg

unread,
Jun 10, 2013, 7:22:51 PM6/10/13
to ope...@googlegroups.com
Markus, 
Can you add the option to add items to the queue?
I would think most announcements would be predetermined.  Similar to the way asterisks does voice prompts, you would have a directory of common phrases and words.  Then by piecing them together you get most of the commands you want. There are lots of free voice packs out there, plus you can make your own with the tts engine.  But we would need the ability to queue them together.  Of course a work around would be to dynamically create a playlist then play it.

Karel Goderis

unread,
Jun 14, 2013, 6:10:21 AM6/14/13
to ope...@googlegroups.com

On 06 Jun 2013, at 12:20, hipitihop <anonymous...@gmail.com> wrote:

On Thursday, 6 June 2013 00:59:49 UTC+10, Markus wrote:
  • synchronize and decouple players.
Add/remove like in the sonos binding?
  • choose from setup favorites as opposed to manually configure in openHAB.

I'm not familiar with the Sonos functionality or the corresponding binding sorry. With Squeezeserver, it is possible to synchronise one or more players with another,
I would like to be able to specify which players to synchronise, or if already synchronised, to decouple them so that they play independently again.
 

This is the same for the Sonos players. You can group or ungroup them so that they play the same stuff. and that stuff can be anything, including a "line-in" on one of the grouped devices. 
The hard problem to solve is that, if you want to build a kind of Public Address system as I did with the Sonos devices, you have to find a way to save and restore the state of each single device when it joins and leaves a group of devices that is used to play an announcement. E.g. you listen to music in a room, somebody rings at the door, a message is played to all devices in the house, and then the device in your room continues where it left off before the announcement.

K

Markus

unread,
Jun 24, 2013, 1:24:36 PM6/24/13
to ope...@googlegroups.com
Here comes another one:
- fixed support for ":" in http command
- sync of players added (aplayer:add=00:01:02:03:04:05 / aplayer:remove)

Would be great if someone with more than one player could test the sync feature :-)

thanks Markus
org.openhab.binding.squeezebox-1.3.0-SNAPSHOT.jar

stiv...@gmail.com

unread,
Oct 23, 2013, 4:32:33 PM10/23/13
to ope...@googlegroups.com
Have the leatest release and i can get it to work, its making me creasy ?

have tried multiple configurations but nothing works for me.

Greg

unread,
Oct 23, 2013, 7:06:37 PM10/23/13
to ope...@googlegroups.com, stiv...@gmail.com

Ben Jones

unread,
Oct 23, 2013, 10:32:16 PM10/23/13
to ope...@googlegroups.com, stiv...@gmail.com
Here is the latest and greatest, including the new io.squeezeserver bundle which is common to both the action and the binding. The WIKI has been updated for the action which has instructions.
squeezebox-1.4.0-SNAPSHOT.zip

stiv...@gmail.com

unread,
Oct 24, 2013, 10:36:18 AM10/24/13
to ope...@googlegroups.com
Thanks great now it works, but still having trouble with displaying title etc

Ben Jones

unread,
Oct 24, 2013, 3:07:33 PM10/24/13
to ope...@googlegroups.com, stiv...@gmail.com
What is the issue with displaying titles? I have just noticed I am seeing undecoded title strings in some cases so I will need to have a look into that.

stiv...@gmail.com

unread,
Oct 24, 2013, 3:25:46 PM10/24/13
to ope...@googlegroups.com, stiv...@gmail.com
my fault, title shows just spaces are %20, and coverart url is that suppose to be something like http://squeezeserver:9000/music/ab070788/cover.jpg, because cover art is empty in my openhab

Ben Jones

unread,
Oct 24, 2013, 3:27:36 PM10/24/13
to ope...@googlegroups.com
Yep - that is what I am seeing too - should be an easy fix.
 
What exactly do you see for coverart?
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/cGPRMvOodww/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

stiv...@gmail.com

unread,
Oct 24, 2013, 3:54:55 PM10/24/13
to ope...@googlegroups.com, Ben Jones
i see nothing in cover art

stiv...@gmail.com

unread,
Oct 24, 2013, 4:04:58 PM10/24/13
to ope...@googlegroups.com, Ben Jones, stiv...@gmail.com
another thing i was thinking about, if it was possible to add a variable song/playing progress maybe in percentage  

Ben Jones

unread,
Oct 25, 2013, 10:38:44 PM10/25/13
to ope...@googlegroups.com, Ben Jones, stiv...@gmail.com
Ok fixed a couple of bugs and made some changes to simplify the binding config and added a new action - playUrlSqueezebox(). These are all in my fork if you want to build and test yourselves.

Nice idea for the playing progress, but I don't have time unfortunately to implement. Feel free to make some changes yourself.

Gilbert B.

unread,
Oct 26, 2013, 3:40:12 AM10/26/13
to ope...@googlegroups.com
after adding the new squeezebox rrdchart docent seam do graph anything ?

Gilbert B.

unread,
Oct 27, 2013, 10:29:25 AM10/27/13
to ope...@googlegroups.com
what new squeeze commands are in the 1.4 snapshot ?

i see "next" and "prev" track is working

Ben Jones

unread,
Oct 27, 2013, 3:19:33 PM10/27/13
to ope...@googlegroups.com
I have simplified the command set considerably.
 
So now there is just;
 
* power
* mute
* play
* pause
* stop
* volume
* next
* prev
* file
* http
* sync
 
And then the information items;
 
* title
* artist
* album
* genre
* year
* coverart
* remotetitle
 
The binding config is simpler now as the binding tries to implicitly work out how command to use.
 
So having a switch item with 'power' will allow you to turn on/off the power, and it will be updated when the power of the device is changed. I.e. no need for the powerOn and powerOff commands. The 'play' will obviously 'play' when clicked ON, but when clicked off will 'stop'. Same goes for 'pause' and 'stop' - ON=pause/stop, OFF=play. Those three commands are a bit of a special case as they are interlinked a bit.
 
The only thing that is missing from the previous version is the ability to specifiy a number to control multiple actions (like you can do with the http binding etc). However you can still achieve this using a virtual item and a rule with a switch statement.
 
Items...
    Switch    LivingRoom_Power      <power>       { squeeze="living:power" }
    Switch    LivingRoom_Play      <power>       { squeeze="living:play" }
 
Sitemap...
    Switch item=LivingRoom_Power mappings=[ON="On", OFF="Off"]
    Switch item=LivingRoom_Play mappings=[ON="Play", OFF="Stop"]
 
 
------ Original Message ------
From: "Gilbert B." <stiv...@gmail.com>
Sent: 28/10/2013 3:29:25 a.m.
Subject: [openhab] Re: Need some help testing the squeezebox binding...
what new squeeze commands are in the 1.4 snapshot ?

Greg

unread,
Oct 27, 2013, 3:32:08 PM10/27/13
to ope...@googlegroups.com, Ben Jones
Thanks for the continued work on this Ben!  I'll be sure to test it the next few days.

Greg

Thomas Eichstädt-Engelen

unread,
Oct 27, 2013, 4:03:28 PM10/27/13
to ope...@googlegroups.com, Ben Jones
i merged Ben's PR into the master branch - his changes will be available ins tomorrows snapshot!


--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.

Gilbert B.

unread,
Oct 27, 2013, 5:03:51 PM10/27/13
to ope...@googlegroups.com, Ben Jones
Yes it is really some great work, i love this project.


My neighbors will soon get tired of the: 
"saySqueezebox("player1", "Goodmorning Gilbert its time for work")"

Greg

unread,
Oct 31, 2013, 9:00:47 AM10/31/13
to ope...@googlegroups.com, Ben Jones
I tried the binding from the snapshot, but it doesn't parse the config again.  
Interestingly, the build that Ben attached as a zip works great!

Thomas Eichstädt-Engelen

unread,
Oct 31, 2013, 12:42:57 PM10/31/13
to ope...@googlegroups.com, Ben Jones
You mean the binding config (*.items) oder openhab.cfg?

Ben, could you have a look? Probably a missing checkin?

Best,

Thomas E.-E.
Message has been deleted
Message has been deleted

Maze

unread,
Nov 14, 2013, 4:39:15 AM11/14/13
to ope...@googlegroups.com, Ben Jones
Any example how to set up item and sitemap to show title or artist ?

Ben Jones

unread,
Nov 16, 2013, 3:47:12 PM11/16/13
to ope...@googlegroups.com, Ben Jones
The WIKI should have all details you need.
Reply all
Reply to author
Forward
0 new messages