Squeezebox Modul - erste Version

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

Vorheriges Thema - Nächstes Thema

holle75

Ich probiere es gleich mal aus und melde mich. Danke dir!

holle75

Funktioniert. Großartig. Danke.

Wiedergabelisten (das war aber auch in der alten Version so) aus Spotify werden AB UND ZU (konnte noch nicht herausfinden wann und warum das passiert) doppelt angezeigt:

spotify - Wiedergabelistenname
Wiedergabelistenname

Ich habe das Gefühl, das passiert wenn Daten synchronisiert/statusRequest werden und beim Server in PARTIAL dann Restinfo liegt.

holle75

#2222
... TALK funktioniert mit Lyrion 9.0.3 nicht mehr.

Ein

set SqueezeBoxPlayer.* talk |WashingMachine.mp3|
"macht nichts mehr". Das hatte mit LMS auf dem alten Server noch funktioniert.

EDIT: Was ich aber herausfinden konnte: Wenn der/die Player läuft/laufen, wird die Wiedergabe unterbrochen ... still, für grob die Länge der Meldung ... und dann wird weitergespielt. Wo früher im Player dann der "Titel" für die Ansage angezeigt wurde, steht jetzt "0"

kann es etwas mit den Einstellungen in Lyrion zu tun haben? Wobei ich jetzt nicht wüsste, welche.... war da nicht mal was mit bestimmten Formaten die das mp3 haben musste? Vielleicht ist das jetzt anders?

ChrisD

Hallo,

Beim Abspielen von lokalen Dateien wird das Attribut ttsMP3FileDir verwendet. Die Datei WashingMachine.mp3 müsste sich auf dem Server im Verzeichnis ttsMP3FileDir befinden.

Du kannst beim Player ttsOptions auf debug setzen, dann sollte im Log ein Eintrag für WashingMachine.mp3 inkl. Verzeichnis stehen, z.B.:

SB_PLAYER_Set: SqueezeBoxPlayerXYZ: add to ttsqueue: /mp3s/WashingMachine.mp3
Grüße,

ChrisD

holle75

Hallo Chris, die wichtigen attr sind bei mir, meine ich, alle gesetzt. So funktionierte es mit dem alten LMS

defmod SqueezeBoxPlayer_ZirkusOben SB_PLAYER mac xxxxxxxxxxxxxxxxxxxxxx
attr SqueezeBoxPlayer_ZirkusOben IODev SqueezeBoxServer
attr SqueezeBoxPlayer_ZirkusOben amplifier play
attr SqueezeBoxPlayer_ZirkusOben coverartheight 200
attr SqueezeBoxPlayer_ZirkusOben coverartwidth 200
attr SqueezeBoxPlayer_ZirkusOben donotnotify false
attr SqueezeBoxPlayer_ZirkusOben event-on-change-reading .*
attr SqueezeBoxPlayer_ZirkusOben fadeinsecs 5
attr SqueezeBoxPlayer_ZirkusOben ftuiSupport favorites,playlists,artists
attr SqueezeBoxPlayer_ZirkusOben sortFavorites 1
attr SqueezeBoxPlayer_ZirkusOben sortPlaylists 1
attr SqueezeBoxPlayer_ZirkusOben trackPositionQueryInterval 5
attr SqueezeBoxPlayer_ZirkusOben ttsAPIKey xxxxxxxxxxxxxxxxxxxxxxxxxxxx
attr SqueezeBoxPlayer_ZirkusOben ttsMP3FileDir \\RASP4FHEM\rasp4fhemSounds
attr SqueezeBoxPlayer_ZirkusOben ttsOptions ignorevolumelimit
attr SqueezeBoxPlayer_ZirkusOben ttsVolume 100
attr SqueezeBoxPlayer_ZirkusOben ttslanguage de
attr SqueezeBoxPlayer_ZirkusOben ttslink http://api.voicerss.org/?key=<APIKEY>&src=<TEXT>&hl=de-de&f=44khz_16bit_stereo&c=MP3
attr SqueezeBoxPlayer_ZirkusOben verbose 1
attr SqueezeBoxPlayer_ZirkusOben volumeLimit 100
attr SqueezeBoxPlayer_ZirkusOben volumeStep 10

daran sollte es nicht liegen.

ChrisD

Hallo,

Kannst du noch debug in ttsOptions setzen, den talk-Befehl aufrufen und die Ausgabe aus dem Log posten ?

Grüße,

ChrisD

holle75

#2226
mit "set SqueezeBoxPlayer.* talk |WashingMachine.mp3|" in der Befehlseingabe:

log:
2025.11.03 13:22:10 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - not active, starting...
2025.11.03 13:22:10 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - power: on
2025.11.03 13:22:10 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - presence: present
2025.11.03 13:22:10 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - playStatus: stopped
2025.11.03 13:22:10 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - volume: 30
2025.11.03 13:22:10 0: SB_PLAYER_SetTTSState: SqueezeBoxPlayer_ZirkusOben: ttsstate: save state
2025.11.03 13:22:10 0: SB_PLAYER_SetTTSState: SqueezeBoxPlayer_ZirkusOben: ttsstate: set volume
2025.11.03 13:22:10 0: SB_PLAYER_SetTTSState: SqueezeBoxPlayer_ZirkusOben: ttsstate: load playlist
2025.11.03 13:22:10 0: SB_PLAYER_Set: SqueezeBoxPlayer_ZirkusOben: add to ttsqueue: \\RASP4FHEM\rasp4fhemSounds/WashingMachine.mp3
2025.11.03 13:22:10 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - add to playlist
2025.11.03 13:22:10 0: SB_PLAYER_SetTTSState: SqueezeBoxPlayer_ZirkusOben: ttsstate: wait for play
2025.11.03 13:22:20 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - timeout waiting for play
2025.11.03 13:22:20 0: SB_PLAYER_SetTTSState: SqueezeBoxPlayer_ZirkusOben: ttsstate: stopped
2025.11.03 13:22:20 0: SB_PLAYER_SetTTSState: SqueezeBoxPlayer_ZirkusOben: ttsstate: restore state
2025.11.03 13:22:20 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - stop
2025.11.03 13:22:20 0: SB_PLAYER_SetTTSState: SqueezeBoxPlayer_ZirkusOben: ttsstate: idle
2025.11.03 13:22:20 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - idle
2025.11.03 13:22:20 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - power: on
2025.11.03 13:22:20 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - presence: present
2025.11.03 13:22:20 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - playStatus: stopped
2025.11.03 13:22:20 0: SqueezeBoxPlayer_ZirkusOben: ttsdebug - volume: 100

Was mir aber gerade noch einfällt. Ist ja ein neuer Server, jetzt unter Win 11 ..... Zugriffsrechte?!
Wer braucht von wo welche? Vom Lyrion-Server zum Raspi nehme ich an. Mmh, selber User und Passwort und ich kann (via Explorer zB) auch drauf zugreifen. War da noch irgendwas was es einzustellen gilt?

holle75

Oh, Gott, das wars tatsächlich. Entschuldige, deine Zeit geklaut zu haben!

Nachdem ich in Win11 unter

Systemsteuerung\Benutzerkonten\Anmeldeinformationsverwaltung

den RaspiOrdner mit User und Password angelegt habe, funktioniert es.

EDIT: Frag mich nicht, warum ich vorher Zugriff auf den mp3 Folder hatte

holle75

Chris, falls du die Zeit findest, könntest du mal in die Problematik

"Wiedergabelisten (das war aber auch in der alten Version so) aus Spotify werden AB UND ZU (konnte noch nicht herausfinden wann und warum das passiert) doppelt angezeigt:

spotify - Wiedergabelistenname
Wiedergabelistenname"

reinschauen?

aktuelles List eines Players Auszug:

SERVERPLAYLISTS ASAF_AVIDAN,BEST_CAR_SING_ALONGS!!!!,BILLIE_EILISH,CIAO,CMAS_2023,DANCE_MUSIC,DREAMWORLD,ED_SHEERAN,ELECTRO,FERNWEH,GOMORRA,GROWN_UPs,Itll_be_okay_-_Shawn_Mendes,Lewis_Capaldi__Divinely_Uninspired_To_A_Hellish_Extent,Pavarotti_Motion_Picture,PERFECT_DAY,Reetos_Sunntigsmusig,Songs_to_Sing_in_the_Car,Spotify_ASAF_AVIDAN,Spotify_BEST_CAR_SING_ALONGS!!!!,Spotify_BILLIE_EILISH,Spotify_CIAO,Spotify_CMAS_2023,Spotify_DANCE_MUSIC,Spotify_DREAMWORLD,Spotify_ED_SHEERAN,Spotify_ELECTRO,Spotify_FERNWEH,Spotify_GOMORRA,Spotify_GROWN_UPs,Spotify_Itll_be_okay_-_Shawn_Mendes,Spotify_Lewis_Capaldi_–_Divinely_Uninspired_To_A_Hellish_Extent,Spotify_Pavarotti_Motion_Picture,Spotify_PERFECT_DAY,Spotify_Reetos_Sunntigsmusig,Spotify_Songs_to_Sing_in_the_Car,Spotify_TAKEABREATH,Spotify_This_Is_AYLIVA,Spotify_This_Is_Lana_Del_Rey,Spotify_This_Is_Mazzy_Star,Spotify_WhenWeAreYoung,Spotify_XMAS,TAKEABREATH,This_Is_AYLIVA,This_Is_Lana_Del_Rey,This_Is_Mazzy_Star,WhenWeAreYoung,XMAS

ChrisD

Hallo,

Zitat"Wiedergabelisten (das war aber auch in der alten Version so) aus Spotify werden AB UND ZU (konnte noch nicht herausfinden wann und warum das passiert) doppelt angezeigt:

Welche Variante wird angezeigt wenn sie nicht doppelt sind ?

Was steht beim 'list' des Players unter 'SB_PLAYER_Playlists:' wenn sie doppelt angezeigt werden ?

Grüße,

ChrisD

holle75

#2230
Hallo, ohne Dopplung bekomme ich jetzt gar nicht mehr angezeigt oder forciert. Das ist nur seltenst der Fall (gewesen). Da habe ich mich schlecht formuliert.

EDIT: glaube, NICHT gedoppelt wird, wenn das spotty-plugin ein update braucht und nicht arbeitet. Was erklären könnte, warum nur ganz selten die Dopplung nicht auftritt.

Mit Dopplung steht im List:

SB_PLAYER_Playlists:
       ASAF_AVIDAN:
         ID         8.23
         NAME       ASAF_AVIDAN
         SOURCE     spotty
       BEST_CAR_SING_ALONGS!!!!:
         ID         8.0
         NAME       BEST_CAR_SING_ALONGS!!!!
         SOURCE     spotty
       BILLIE_EILISH:
         ID         8.13
         NAME       BILLIE_EILISH
         SOURCE     spotty
       CIAO:
         ID         8.20
         NAME       CIAO
         SOURCE     spotty
       CMAS_2023:
         ID         8.4
         NAME       CMAS_2023
         SOURCE     spotty
       DANCE_MUSIC:
         ID         8.9
         NAME       DANCE_MUSIC
         SOURCE     spotty
       DREAMWORLD:
         ID         8.17
         NAME       DREAMWORLD
         SOURCE     spotty
       ED_SHEERAN:
         ID         8.21
         NAME       ED_SHEERAN
         SOURCE     spotty
       ELECTRO:
         ID         8.14
         NAME       ELECTRO
         SOURCE     spotty
       FERNWEH:
         ID         8.16
         NAME       FERNWEH
         SOURCE     spotty
       GOMORRA:
         ID         8.12
         NAME       GOMORRA
         SOURCE     spotty
       GROWN_UPs:
         ID         8.19
         NAME       GROWN_UP's
         SOURCE     spotty
       Itll_be_okay_-_Shawn_Mendes:
         ID         8.6
         NAME       It'll_be_okay_-_Shawn_Mendes
         SOURCE     spotty
       Lewis_Capaldi__Divinely_Uninspired_To_A_Hellish_Extent:
         ID         8.5
         NAME       Lewis_Capaldi__Divinely_Uninspired_To_A_Hellish_Extent
         SOURCE     spotty
       PERFECT_DAY:
         ID         8.15
         NAME       PERFECT_DAY
         SOURCE     spotty
       Pavarotti_Motion_Picture:
         ID         8.11
         NAME       Pavarotti_Motion_Picture
         SOURCE     spotty
       Reetos_Sunntigsmusig:
         ID         8.10
         NAME       Reetos_Sunntigsmusig
         SOURCE     spotty
       Songs_to_Sing_in_the_Car:
         ID         8.1
         NAME       Songs_to_Sing_in_the_Car
         SOURCE     spotty
       Spotify_ASAF_AVIDAN:
         ID         12682
         NAME       Spotify:_ASAF_AVIDAN
         SOURCE     LMS
       Spotify_BEST_CAR_SING_ALONGS!!!!:
         ID         12659
         NAME       Spotify:_BEST_CAR_SING_ALONGS!!!!
         SOURCE     LMS
       Spotify_BILLIE_EILISH:
         ID         12672
         NAME       Spotify:_BILLIE_EILISH
         SOURCE     LMS
       Spotify_CIAO:
         ID         12679
         NAME       Spotify:_CIAO
         SOURCE     LMS
       Spotify_CMAS_2023:
         ID         12663
         NAME       Spotify:_CMAS_2023
         SOURCE     LMS
       Spotify_DANCE_MUSIC:
         ID         12668
         NAME       Spotify:_DANCE_MUSIC
         SOURCE     LMS
       Spotify_DREAMWORLD:
         ID         12676
         NAME       Spotify:_DREAMWORLD
         SOURCE     LMS
       Spotify_ED_SHEERAN:
         ID         12680
         NAME       Spotify:_ED_SHEERAN
         SOURCE     LMS
       Spotify_ELECTRO:
         ID         12673
         NAME       Spotify:_ELECTRO
         SOURCE     LMS
       Spotify_FERNWEH:
         ID         12675
         NAME       Spotify:_FERNWEH
         SOURCE     LMS
       Spotify_GOMORRA:
         ID         12671
         NAME       Spotify:_GOMORRA
         SOURCE     LMS
       Spotify_GROWN_UPs:
         ID         12678
         NAME       Spotify:_GROWN_UP's
         SOURCE     LMS
       Spotify_Itll_be_okay_-_Shawn_Mendes:
         ID         12665
         NAME       Spotify:_It'll_be_okay_-_Shawn_Mendes
         SOURCE     LMS
       Spotify_Lewis_Capaldi_–_Divinely_Uninspired_To_A_Hellish_Extent:
         ID         12664
         NAME       Spotify:_Lewis_Capaldi_–_Divinely_Uninspired_To_A_Hellish_Extent
         SOURCE     LMS
       Spotify_PERFECT_DAY:
         ID         12674
         NAME       Spotify:_PERFECT_DAY
         SOURCE     LMS
       Spotify_Pavarotti_Motion_Picture:
         ID         12670
         NAME       Spotify:_Pavarotti_Motion_Picture
         SOURCE     LMS
       Spotify_Reetos_Sunntigsmusig:
         ID         12669
         NAME       Spotify:_Reetos_Sunntigsmusig
         SOURCE     LMS
       Spotify_Songs_to_Sing_in_the_Car:
         ID         12660
         NAME       Spotify:_Songs_to_Sing_in_the_Car
         SOURCE     LMS
       Spotify_TAKEABREATH:
         ID         12681
         NAME       Spotify:_TAKEABREATH
         SOURCE     LMS
       Spotify_This_Is_AYLIVA:
         ID         12661
         NAME       Spotify:_This_Is_AYLIVA
         SOURCE     LMS
       Spotify_This_Is_Lana_Del_Rey:
         ID         12666
         NAME       Spotify:_This_Is_Lana_Del_Rey
         SOURCE     LMS
       Spotify_This_Is_Mazzy_Star:
         ID         12662
         NAME       Spotify:_This_Is_Mazzy_Star
         SOURCE     LMS
       Spotify_WhenWeAreYoung:
         ID         12677
         NAME       Spotify:_WhenWeAreYoung
         SOURCE     LMS
       Spotify_XMAS:
         ID         12667
         NAME       Spotify:_XMAS
         SOURCE     LMS
       TAKEABREATH:
         ID         8.22
         NAME       TAKEABREATH
         SOURCE     spotty
       This_Is_AYLIVA:
         ID         8.2
         NAME       This_Is_AYLIVA
         SOURCE     spotty
       This_Is_Lana_Del_Rey:
         ID         8.7
         NAME       This_Is_Lana_Del_Rey
         SOURCE     spotty
       This_Is_Mazzy_Star:
         ID         8.3
         NAME       This_Is_Mazzy_Star
         SOURCE     spotty
       WhenWeAreYoung:
         ID         8.18
         NAME       WhenWeAreYoung
         SOURCE     spotty
       XMAS:
         ID         8.8
         NAME       XMAS
         SOURCE     spotty

interessant finde ich noch den Aufbau der ID für die selbe Playlist mit und ohne "Spotify" vorangestellt und "spotty oder LMS" als Source. Irgendwie wird das von spotty UND intern eingelesen.

EDIT: OHNE Dopplung, meine ich mich zu erinnern, wird die "Spotify: xxxxxxx" Variante angegeben.... was dem oben geschriebenen EDIT widerspricht.

ChrisD

Hallo,

Zitatinteressant finde ich noch den Aufbau der ID für die selbe Playlist mit und ohne "Spotify" vorangestellt und "spotty oder LMS" als Source. Irgendwie wird das von spotty UND intern eingelesen.

Davon bin ich ausgegangen, deshalb die Frage nach SB_PLAYER_Playlists.

Funktioniert das Abspielen der beiden Varianten, also z.B. 'Spotify_Lewis_Capaldi_–_Divinely_Uninspired_To_A_Hellish_Extent' und 'Lewis_Capaldi__Divinely_Uninspired_To_A_Hellish_Extent' ?

Hast du das Plugin 'Online Music Library Integration' resp. 'Online Musiksammlungsintegration' im LMS aktiviert ?

Wenn ja, was wird in den Einstellungen bei 'Online Musiksammlungsintegration' angezeigt ?

Je nachdem wie die Antworten sind, sehe ich verschiedene Möglichkeiten die doppelten Einträge zu vermeiden.

Grüße,

ChrisD