Squeezebox Modul - erste Version

Begonnen von bugster_de, 17 Dezember 2013, 22:12:10

Vorheriges Thema - Nächstes Thema

oliv06

Some code changes in SVN :
- handle power notifications better
- events on playStatus and power readings
- suppress "client disconnect" and "client reconnect" CLI messages

bugster_de

Hi,

Zitatsuppress "client disconnect" and "client reconnect" CLI messages
thanks. I saw those messages coming up from the SB side from time to time but couldn't imagine why this was. Have you any idea, why SB is sending those messages?

Absolute Beginner

#137
Hallo, danke allen für dieses nette Modul. Zwei Bitten hätte ich dazu (bin Newby):
- wie binde ich Fernbedienung aus Antwort#20 mit ein (nur Stop funktioniert bei mir)? Muss die erst Befehl für Befehl 'angelernt' werden?
- wie kann ich ein Display in die Weboberfläche integrieren, gerne zusammen mit der Fernbedienung?
Raspberry Pi 3 - CUL868 - Jessie - FHEM5.8 - MQTT - Node-RED
HM-TC-IT-WM-W-EU, HM-LC-BI1PBU-FM, HM-Sec-SCo, HM-WDS30-0T2-SM, SOMFY, Echo, ESP, SonOff

oliv06

Zitat von: bugster_de am 12 Februar 2014, 10:15:58
Hi,
thanks. I saw those messages coming up from the SB side from time to time but couldn't imagine why this was. Have you any idea, why SB is sending those messages?
I am not sure. They seem to occur so regularly that they look like heartbeats between SB and server. Do you have the same ?

I have them so often that is it annoying because it fills logfile.
If you think it is of any use for somebody, you could put it back ...

d0np3p3

Zitat von: Absolute Beginner am 12 Februar 2014, 17:52:16
- wie binde ich Fernbedienung aus Antwort#20 mit ein (nur Stop funktioniert bei mir)? Muss die erst Befehl für Befehl 'angelernt' werden?
- wie kann ich ein Display in die Weboberfläche integrieren, gerne zusammen mit der Fernbedienung?
Ich gucke mal die Tage nach, wahrscheinlich müssen die Befehle angepasst werden, da sie sich im Laufe der Modul Entwicklung geändert haben.

Gesendet von meinem Nexus 4 mit Tapatalk

FHEM: Raspberry Pi (COC) & Fritz 7270 (freetz FHEM2FHEM)
IT (Elro AB440 AB600D) - Max! (6*regler 1*Thermostat 5*Fenster) Hue Bridge mit Bulbs - 2*Living-white Adapter - Iris
XBMC (Zbox) 4*SqueezeRadios 3*squeezelite dbox
AndFhem (Nexus4)

bugster_de

>>Do you have the same ?
on my side, I saw them once in a while (maybe once a day) and only for remote players (not the squeezeslaves). So I thought it must have been a glitch in the connection and therefore did put the code in to handle it. I don't need that handling in the code, so leave it out.

>>da sie sich im Laufe der Modul Entwicklung geändert haben.
vermutlich. Allerdings sind sowohl die alten als auch die 'neuen', die durch die AV Guidelines dazu kamen beide noch drin. Ggf. könnte man die alten rauswerfen um performance zu verbessern

d0np3p3

Also ich habe damals den falschen Code für die Remote hier gepostet, ist aber keinem aufgefallen.
ich werde die Tage mal den richtigen Code einfügen und ggf aktualisieren.
Es setzt sich so zusammen Befehl:Icon vielleicht hilft dir das.
FHEM: Raspberry Pi (COC) & Fritz 7270 (freetz FHEM2FHEM)
IT (Elro AB440 AB600D) - Max! (6*regler 1*Thermostat 5*Fenster) Hue Bridge mit Bulbs - 2*Living-white Adapter - Iris
XBMC (Zbox) 4*SqueezeRadios 3*squeezelite dbox
AndFhem (Nexus4)

bsl02

Hallo,
meine "unfertige" Remote bisher s.u.  Zur Anpassung hatte ich damals ´rumgebastelt, muss alles noch überprüft werden.
Nicht alle Funktionen laufen...

# Fernbedienung Squeezeplay #130
define rc.squeezeplay130.fmsender remotecontrol
attr rc.squeezeplay130.fmsender group SqueezeboxAudio
attr rc.squeezeplay130.fmsender rc_iconpath icons/remotecontrol
attr rc.squeezeplay130.fmsender rc_iconprefix black_btn_
attr rc.squeezeplay130.fmsender room 41_AUDIO
attr rc.squeezeplay130.fmsender row00 showosd:MENU,up:UP,home:HOMEsym,volumeUp:VOLUP
attr rc.squeezeplay130.fmsender row01 left:LEFT,select:OK,right:RIGHT,mute:MUTE
attr rc.squeezeplay130.fmsender row02 info:INFO,down:DOWN,back:RETURN,volumeDown:VOLDOWN
attr rc.squeezeplay130.fmsender row03 prev:REWIND,Play:PLAY,Stop:STOP,next:FF
#
define n.rc_squeeze130 notify rc.squeezeplay130.fmsender set squeezeplay130.fmsender $EVENT
attr n.rc_squeeze130 group SqueezePlayer2
attr n.rc_squeeze130 room 41_AUDIO


Gruß, Stefan
RPi3 (FHEM) / CUL V3 868 (FS20) / nanoCUL868 (HM) / RFXtrx433 (IT & ELRO) / MAX!Cube (Thermostate, Fenster) / Bluetooth (presence Handy) / Sonoff mit Tasmota // Audio: RPi3 mit "max2play"-Image (Squeezeserver+Player) / Video: Synology-NAS mit TVheadend, Triax TSS400 Sat-IP Converter

d0np3p3

Das ist meine:
define rc_squeeze remotecontrol
attr rc_squeeze rc_iconpath icons/remotecontrol
attr rc_squeeze rc_iconprefix black_btn_
attr rc_squeeze row00 on:GREEN,off:POWEROFF2
attr rc_squeeze row01 Play:PLAY,Pause:PAUSE,Stop:STOP
attr rc_squeeze row02 Prev:REWIND,Next:FF
attr rc_squeeze row03 volumeUp:VOLUP,volumeDown:VOLDOWN,mute:MUTE
attr rc_squeeze row04 channelUp:CHUP,channelDown:CHDOWN
define notify_rc_squeeze notify rc_squeeze set SB_PLAYER_XXXXXXXXX $EVENT
FHEM: Raspberry Pi (COC) & Fritz 7270 (freetz FHEM2FHEM)
IT (Elro AB440 AB600D) - Max! (6*regler 1*Thermostat 5*Fenster) Hue Bridge mit Bulbs - 2*Living-white Adapter - Iris
XBMC (Zbox) 4*SqueezeRadios 3*squeezelite dbox
AndFhem (Nexus4)

oliv06

I do not understand what you would like to use currentMedia for ?
Shouldn't it be the URL of the playing file or stream ? It seems to me that it is redundant with currentPlaylistUrl

Absolute Beginner

@d0np3p3 und bsl02:
Danke - das hat geholfen und nun funktioniert es auch bei mir.
Kann man auch noch ein Displayfenster öffnen, das Titelinfos anzeigt?
Raspberry Pi 3 - CUL868 - Jessie - FHEM5.8 - MQTT - Node-RED
HM-TC-IT-WM-W-EU, HM-LC-BI1PBU-FM, HM-Sec-SCo, HM-WDS30-0T2-SM, SOMFY, Echo, ESP, SonOff

bsl02

#146
>Kann man auch noch ein Displayfenster öffnen, das Titelinfos anzeigt?
Jepp, hätte ich auch gern. Geht vermutlich, aber wie?

BTW: Jemand eine Idee, woher diese Einträge im FHEM-Log kommen?
2014.02.13 22:19:06 1: Playmode: play
2014.02.13 22:19:06 1: Playmode: stop
2014.02.13 22:24:08 1: Playmode: play
2014.02.13 22:24:08 1: Playmode: stop
2014.02.13 22:29:08 1: Playmode: play
2014.02.13 22:29:08 1: Playmode: stop
2014.02.13 22:34:08 1: Playmode: play
2014.02.13 22:34:08 1: Playmode: stop
2014.02.13 22:39:10 1: Playmode: play
2014.02.13 22:39:10 1: Playmode: stop
2014.02.13 22:44:10 1: Playmode: play
2014.02.13 22:44:10 1: Playmode: stop
2014.02.13 22:49:10 1: Playmode: play
2014.02.13 22:49:10 1: Playmode: stop
2014.02.13 22:54:12 1: Playmode: play
2014.02.13 22:54:12 1: Playmode: stop
2014.02.13 22:59:12 1: Playmode: play
2014.02.13 22:59:12 1: Playmode: stop
2014.02.13 23:04:12 1: Playmode: play
2014.02.13 23:04:12 1: Playmode: stop
2014.02.13 23:09:14 1: Playmode: play
2014.02.13 23:09:14 1: Playmode: stop


Grüße, Stefan
RPi3 (FHEM) / CUL V3 868 (FS20) / nanoCUL868 (HM) / RFXtrx433 (IT & ELRO) / MAX!Cube (Thermostate, Fenster) / Bluetooth (presence Handy) / Sonoff mit Tasmota // Audio: RPi3 mit "max2play"-Image (Squeezeserver+Player) / Video: Synology-NAS mit TVheadend, Triax TSS400 Sat-IP Converter

bugster_de

@oliv06: I believe, we should open up a second threat for "Squeezebox Development". This threat seems to be more and more on the usage of the module (which I like a lot)
currentMedia: I had introduced that for keeping what ever is playing at moment: iD, mp3 file name or internet stream in order to figure out what could be done here. There doesn't seem to be a query like "what is currently playing?"

weltspion

Zunächst einmal vielen Dank für die Entwicklung des Sqeezebox Moduls! Grundsätzlich macht es, was es soll.  :)

Ich habe jedoch folgendes Problem: Ich möchte beim Start meiner SB Touch (läuft nur im Client Modus) automatisch den Verstärker einschalten, welcher an einer Steckdose HM-LC-SW1-PL2 hängt. Der LMS läuft auf einer QNAP NAS.

Ich habe dazu folgendes definiert:


define Steckdose_Bad_on notify SB_Bad:(on.*|play) { fhem "set Steckdose_Bad_Musik on" }
define Steckdose_Bad_off notify SB_Bad:off.* { fhem "set Steckdose_Bad_Musik off" }


Über die FHEM Oberfläche funktioinert alles super: Wenn ich über das Squeezbox Modul die SB Touch einschalte oder die Wiedergabe starte, schaltet sich auch die Steckdose ein. Ausschalten ist auch kein Problem.

Schalte ich die SB Touch jedoch über den Touchscreen des Gerätes ein, schaltet sich die Steckdose nicht ein oder aus.

Wo ist mein Fehler? Liegt es am Squeezebox Modul oder an meiner Definition?

AET_FHEM

Hallo,

Top Modul
gibt es auch die Möglichkeit von der Sqeezebox an FHEM zu senden

zB.: ich wache auf mit Sqeezebox (Wecker)
--> mach den Wecker aus der Sendet an FHEM Wackup und macht das Licht an Garage auf usw.....