Squeezebox Modul - erste Version

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

Vorheriges Thema - Nächstes Thema

ThoTo

Zumindest einen Workaround habe ich gefunden, sodass beim FHEM/Container-Start der Hostname aufgelöst wird:

attr SqueezeBoxServer userattr lmsserver
attr SqueezeBoxServer lmsserver lmshostname

define UpdateSBHostname notify global:INITIALIZED { my $lms=ip2str(inet_aton(AttrVal("SqueezeBoxServer","lmsserver","127.0.0.1")));; fhem "defmod SqueezeBoxServer SB_SERVER $lms" }


Schön ist es nicht, aber es funktioniert....
Vielleicht kommt vom Modulmaintainer noch eine Idee/Lösung - ich bin gespannt.
KNX | MQTT | Docker | Sonos | FHEMapp

"Zwei Dinge sind unendlich, das Universum und die menschliche Dummheit, aber bei dem Universum bin ich mir noch nicht ganz sicher." (Albert Einstein)

ChrisD

Hallo,

Ich habe die Module überarbeitet und diverse Fehler korrigiert sowie neue Funktionen eingebaut:

Server:
- Unterstützung für Player bei denen keine MAC-Adresse vorhanden ist

Player:
* TTS
  - diverse Korrekturen
  - im talk-Befehl können verschiedene Optionen mit angegeben werden, das Format ist immer |opt:xxx| (auf Leerzeichen davor/dahinter achten):
    - Lautstärke: |opt:v=xxx|, z.B.:
set meinPlayer talk |opt:v=100| Achtung |opt:v=70| Dachfenster offen
      statt einer Zahl kann auch 'tts' für den Wert des Attributes ttsVolume und 'music' für die Musik-Lautstärke vor dem play-Befehl verwendet werden
    - Sprache: |opt:l=xx|, z.B.:
set meinPlayer talk |opt:l=de| 123 |opt:l=en| 123
    - |opt:replace| : laufendes TTS abbrechen und sofort neues starten
    - nosaverestore, forcegroupon, ignorevolumelimit, eventondone, diese Optionen haben die gleiche Funktion wie die gleichnamigen Attribute, sie können aber gezielt für jeden 'talk'-Befehl verwendet werden ohne dass das Attribut geändert werden muss

* Attribut disable hinzugefügt
* Anpassungen für die korrekte Initialisierung neuer Player, Überwachung 'verschwundener' Player sowie 'hängengebliebener' Wiedergabe

Da die Änderungen ziemlich umfangreich sind sollte ein Update nur nach sorgfältiger Prüfung gemacht werden. Insbesondere beim TTS kann ich nicht ausschliessen dass es zu Problemen kommt.

@ThoTo: Ich habe deinen Wunsch notiert. Die Änderungen im Code sollten nicht allzu groß sein da FHEM seit einiger Zeit Hostnamen für DevIO unterstützt. Da in dem Fall aber der Verbindungsaufbau asynchron erfolgt sind längere Tests nötig um sicherzustellen dass die ganze Connect/Reconnect weiterhin richtig funktioniert.

Grüße,

ChrisD




FHEm2005

Zitat von: ChrisD am 10 Oktober 2017, 08:23:59

@Eberhard: Ich kann das Attribut bei beiden Modulen nachrüsten. Soll beim Server-Modul bei disable die Verbindung zum Server unterbrochen werden oder nicht ?

Ich meine schon. Wenn die Server-Definition disabled wird kann auch kein Player mehr darauf zugreifen - wozu dann noch die Verbindung?  So ist bei einer Fehlersuche sicher, dass die offene Verbindung keinen Ärger macht.

Viele Grüße
Eberhard
Raspi3: FHEM, CULV3 (V1.61), EnOcean Pi 868, nanoCUL433, HUE-Bridge; Raspi4: Node-red, MQTT, Gaszähler auslesen mit ESP32-CAM

ManOki

#1668
Hallo,

ich habe die aktuellste Version von Github und aktuell wird beim Neustart von FHEM der Player als "on" angenommen, obwohl der Player selbst ausgeschaltet ist, sondern nur der LMS läuft. In LMS sehe ich den Player auch nicht. Leider bringt selbst ein statusRequest nichts.

SB_PLAYER:


Internals:
   AMPLIFIER  none
   ARTWORKURL ?
   CANPOWEROFF ?
   CFGFN
   COVERARTLINK none
   COVERARTURL http://127.0.0.1:9000/music/current/cover_50x50.jpg?player=xx:xx:xx:xx:xx:xx&x=20985
   COVERID    ?
   DEF        xx:xx:xx:xx:xx:xx
   DISPLAYTYPE ?
   FAVREF
   FAVSELECT  not
   FAVSET     favorites
   FAVSTR     
   FHEMUID     
   IODev      SqueezeBoxServer
   ISREMOTESTREAM 0
   LASTALARM  1
   LASTANSWER mode ?
   LASTInputDev SqueezeBoxServer
   MODEL      ?
   MSGCNT     117
   NAME       myPlayer
   NOTIFYDEV  global
   NR         171
   NTFY_ORDER 50-myPlayer
   PLAYERIP   ?
   PLAYERMAC  xx:xx:xx:xx:xx:xx
   PLAYERNAME ?
   SBSERVER   127.0.0.1:9000
   SERVERPLAYLISTS
   STATE      on
   SYNCED     no
   SYNCGROUP  none
   SYNCGROUPPN none
   SYNCMASTER none
   SYNCMASTERPN none
   SYNCMASTERS
   SYNCVOLUME ?
   SqueezeBoxServer_MSGCNT 117
   SqueezeBoxServer_TIME 2017-10-23 16:46:28
   TYPE       SB_PLAYER
   WILLSLEEPIN ?
   READINGS:
     2017-10-18 18:27:30   alarmsDefaultVolume 50
     2017-10-23 16:46:28   alarmsEnabled   off
     2017-10-18 18:27:30   alarmsFadeIn    on
     2017-10-18 18:27:30   alarmsFadeSeconds 1
     2017-10-18 18:27:30   alarmsSnooze    9
     2017-10-18 18:27:30   alarmsTimeout   60
     2017-10-23 16:46:28   connected       ?
     2017-10-23 16:46:28   coverarturl     http://127.0.0.1:9000/music/current/cover_50x50.jpg?player=xx:xx:xx:xx:xx:xx&x=20985
     2017-10-23 16:46:28   currentAlbum    ?
     2017-10-23 16:46:28   currentArtist   ?
     2017-10-23 16:30:03   currentMedia    ?
     2017-10-23 16:30:03   currentPlaylistName ?
     2017-10-23 16:46:28   currentPlaylistUrl ?
     2017-10-23 16:46:28   currentTitle    ?
     2017-10-23 16:46:28   currentTrackPosition 0
     2017-10-23 16:46:28   duration        ?
     2017-10-23 16:30:03   favorites       not
     2017-10-23 16:30:03   lastir          ?
     2017-10-23 16:30:03   lastunknowncmd  none
     2017-10-23 16:46:28   playStatus      ?
     2017-10-18 18:27:30   playlistCurrentTrack 1
     2017-10-18 18:27:30   playlistTracks  1
     2017-10-23 16:30:03   playlists       not
     2017-10-23 16:36:29   power           on
     2017-10-23 16:46:28   presence        present
     2017-10-18 18:27:30   repeat          off
     2017-10-18 18:27:30   shuffle         off
     2017-10-18 18:27:30   signalstrength  wired
     2017-10-23 16:36:29   state           on
     2017-10-23 16:46:28   synced          none
     2017-10-23 16:30:03   volume          0
     2017-10-23 16:30:03   volumeStraight  ?
   helper:
     ALARMSCOUNT 0
     CoverOk    1
     amplifierDelayOffPause 0
     amplifierDelayOffPower 0
     amplifierDelayOffStop 0
     amplifierLastStatus x
     foundMyself 0
     lastGetStatus 1508769988.86035
     lastModeQuery 1508769988.8786
     lastTimeQuery 1508769988.86148
     lmsvolume  0
     noStopEventUntil 0
     path       ?
     playerStatusOK 1
     playerStatusOKCounter 0
     songinfocounter 0
     songinfopending 0
     songinfoquery
     ttsstate   0
     SB_PLAYER_Favs:
     SB_PLAYER_Playlists:
     SB_PLAYER_SyncMasters:
     alarmPlaylists:
       Aktuelle_Wiedergabeliste_verwenden:
         category   Aktuelle Wiedergabeliste
         title      Aktuelle Wiedergabeliste verwenden
         url        Aktuelle Wiedergabeliste verwenden
       httpmp3ht-streamnet:
         category   Favoriten
         title      HouseTime.FM
         url        http://mp3.ht-stream.net
       loopcontentmysqueezeboxcomstaticsoundseffectsambulancemp3:
         category   Soundeffekte
         title      Martinshorn
         url        loop://content.mysqueezebox.com/static/sounds/effects/ambulance.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectsblendermp3:
         category   Soundeffekte
         title      Mixer
         url        loop://content.mysqueezebox.com/static/sounds/effects/blender.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectscitymp3:
         category   Soundeffekte
         title      Stadt
         url        loop://content.mysqueezebox.com/static/sounds/effects/city.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectscoinsmp3:
         category   Soundeffekte
         title      Münzen
         url        loop://content.mysqueezebox.com/static/sounds/effects/coins.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectscrossing_bellsmp3:
         category   Soundeffekte
         title      Glockengeläut
         url        loop://content.mysqueezebox.com/static/sounds/effects/crossing_bells.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectselectro_fuzzmp3:
         category   Soundeffekte
         title      Elektrisches Britzeln
         url        loop://content.mysqueezebox.com/static/sounds/effects/electro_fuzz.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectsfoghornmp3:
         category   Soundeffekte
         title      Nebelhorn
         url        loop://content.mysqueezebox.com/static/sounds/effects/foghorn.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectsfreight_train_passingmp3:
         category   Soundeffekte
         title      Vorbeifahrender Güterzug
         url        loop://content.mysqueezebox.com/static/sounds/effects/freight_train_passing.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectsfreight_trainmp3:
         category   Soundeffekte
         title      Güterzug
         url        loop://content.mysqueezebox.com/static/sounds/effects/freight_train.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectshair_dryermp3:
         category   Soundeffekte
         title      Fön
         url        loop://content.mysqueezebox.com/static/sounds/effects/hair_dryer.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectsmagneto_vapormp3:
         category   Soundeffekte
         title      Magneto Vapor
         url        loop://content.mysqueezebox.com/static/sounds/effects/magneto_vapor.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectsmotorcyclesmp3:
         category   Soundeffekte
         title      Motorräder
         url        loop://content.mysqueezebox.com/static/sounds/effects/motorcycles.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectsscuba_divermp3:
         category   Soundeffekte
         title      Taucher
         url        loop://content.mysqueezebox.com/static/sounds/effects/scuba_diver.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectsspooky_feedbackmp3:
         category   Soundeffekte
         title      Unheimliche Rückkopplung
         url        loop://content.mysqueezebox.com/static/sounds/effects/spooky_feedback.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectssteam_train_whistlemp3:
         category   Soundeffekte
         title      Dampflokomotive und -pfeife
         url        loop://content.mysqueezebox.com/static/sounds/effects/steam_train_whistle.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectssub_alertmp3:
         category   Soundeffekte
         title      U-Boot-Wecker
         url        loop://content.mysqueezebox.com/static/sounds/effects/sub_alert.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectstea_kettlemp3:
         category   Soundeffekte
         title      Teekessel
         url        loop://content.mysqueezebox.com/static/sounds/effects/tea_kettle.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectstrafficmp3:
         category   Soundeffekte
         title      Verkehr
         url        loop://content.mysqueezebox.com/static/sounds/effects/traffic.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectswind_chime_flourishmp3:
         category   Soundeffekte
         title      Windspiel mit Schwung
         url        loop://content.mysqueezebox.com/static/sounds/effects/wind_chime_flourish.mp3
       loopcontentmysqueezeboxcomstaticsoundseffectswind_chimemp3:
         category   Soundeffekte
         title      Windspiel
         url        loop://content.mysqueezebox.com/static/sounds/effects/wind_chime.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalbarn_firemp3:
         category   Musikgeräusche
         title      Scheunenbrand
         url        loop://content.mysqueezebox.com/static/sounds/musical/barn_fire.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalblue_henrymp3:
         category   Musikgeräusche
         title      Blue Henry
         url        loop://content.mysqueezebox.com/static/sounds/musical/blue_henry.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalblue_orchidmp3:
         category   Musikgeräusche
         title      Blaue Orchidee
         url        loop://content.mysqueezebox.com/static/sounds/musical/blue_orchid.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalbongo_techmp3:
         category   Musikgeräusche
         title      Bongo Tech
         url        loop://content.mysqueezebox.com/static/sounds/musical/bongo_tech.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalbrainfluidmp3:
         category   Musikgeräusche
         title      Hirnflüssigkeit
         url        loop://content.mysqueezebox.com/static/sounds/musical/brainfluid.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalbutterymp3:
         category   Musikgeräusche
         title      Cafeteria
         url        loop://content.mysqueezebox.com/static/sounds/musical/buttery.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalcappucinomp3:
         category   Musikgeräusche
         title      Cappucino
         url        loop://content.mysqueezebox.com/static/sounds/musical/cappucino.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalcool_catsmp3:
         category   Musikgeräusche
         title      Coole Katzen
         url        loop://content.mysqueezebox.com/static/sounds/musical/cool_cats.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalcornflowermp3:
         category   Musikgeräusche
         title      Kornblume
         url        loop://content.mysqueezebox.com/static/sounds/musical/cornflower.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalcrystalizemp3:
         category   Musikgeräusche
         title      Kristall
         url        loop://content.mysqueezebox.com/static/sounds/musical/crystalize.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalexperimentalmp3:
         category   Musikgeräusche
         title      Experimentell
         url        loop://content.mysqueezebox.com/static/sounds/musical/experimental.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalhibiscusmp3:
         category   Musikgeräusche
         title      Hibiskus
         url        loop://content.mysqueezebox.com/static/sounds/musical/hibiscus.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicaljunk_armormp3:
         category   Musikgeräusche
         title      Schrott
         url        loop://content.mysqueezebox.com/static/sounds/musical/junk_armor.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalmelancholy_daymp3:
         category   Musikgeräusche
         title      Melancholischer Tag
         url        loop://content.mysqueezebox.com/static/sounds/musical/melancholy_day.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalslickbabymp3:
         category   Musikgeräusche
         title      Slickbaby
         url        loop://content.mysqueezebox.com/static/sounds/musical/slickbaby.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalslog_it_outmp3:
         category   Musikgeräusche
         title      Rauferei
         url        loop://content.mysqueezebox.com/static/sounds/musical/slog_it_out.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalsoft_horizonmp3:
         category   Musikgeräusche
         title      Weicher Horizont
         url        loop://content.mysqueezebox.com/static/sounds/musical/soft_horizon.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalsri_lamamp3:
         category   Musikgeräusche
         title      Sri Lama
         url        loop://content.mysqueezebox.com/static/sounds/musical/sri_lama.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalstargazermp3:
         category   Musikgeräusche
         title      Sternengucker
         url        loop://content.mysqueezebox.com/static/sounds/musical/stargazer.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicalsuper_cheesemp3:
         category   Musikgeräusche
         title      Superkäse
         url        loop://content.mysqueezebox.com/static/sounds/musical/super_cheese.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicaltail_honkermp3:
         category   Musikgeräusche
         title      Hupe
         url        loop://content.mysqueezebox.com/static/sounds/musical/tail_honker.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicaltongue_cheekmp3:
         category   Musikgeräusche
         title      Zunge und Wange
         url        loop://content.mysqueezebox.com/static/sounds/musical/tongue_cheek.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicaltranslabmp3:
         category   Musikgeräusche
         title      TransLab
         url        loop://content.mysqueezebox.com/static/sounds/musical/translab.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicaltweedledummp3:
         category   Musikgeräusche
         title      Tweedledum
         url        loop://content.mysqueezebox.com/static/sounds/musical/tweedledum.mp3
       loopcontentmysqueezeboxcomstaticsoundsmusicaltwensamp3:
         category   Musikgeräusche
         title      Twensa
         url        loop://content.mysqueezebox.com/static/sounds/musical/twensa.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalbabbling_brookmp3:
         category   Naturgeräusche
         title      Plätschernder Bach
         url        loop://content.mysqueezebox.com/static/sounds/natural/babbling_brook.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalbubblesmp3:
         category   Naturgeräusche
         title      Seifenblasen
         url        loop://content.mysqueezebox.com/static/sounds/natural/bubbles.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalcricketsmp3:
         category   Naturgeräusche
         title      Grillen
         url        loop://content.mysqueezebox.com/static/sounds/natural/crickets.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalfiremp3:
         category   Naturgeräusche
         title      Feuer
         url        loop://content.mysqueezebox.com/static/sounds/natural/fire.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalhard_rain_thundermp3:
         category   Naturgeräusche
         title      Heftiger Regen und Donner
         url        loop://content.mysqueezebox.com/static/sounds/natural/hard_rain_thunder.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalheartbeat_fastmp3:
         category   Naturgeräusche
         title      Schnelles Herzklopfen
         url        loop://content.mysqueezebox.com/static/sounds/natural/heartbeat_fast.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalheartbeatmp3:
         category   Naturgeräusche
         title      Herzschlag
         url        loop://content.mysqueezebox.com/static/sounds/natural/heartbeat.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalhorse_walkingmp3:
         category   Naturgeräusche
         title      Gehendes Pferd
         url        loop://content.mysqueezebox.com/static/sounds/natural/horse_walking.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalhorse_whinnymp3:
         category   Naturgeräusche
         title      Pferdewiehern
         url        loop://content.mysqueezebox.com/static/sounds/natural/horse_whinny.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturallapping_wavesmp3:
         category   Naturgeräusche
         title      Schwappende Wellen
         url        loop://content.mysqueezebox.com/static/sounds/natural/lapping_waves.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalmeadowlarkmp3:
         category   Naturgeräusche
         title      Vogelgezwitscher
         url        loop://content.mysqueezebox.com/static/sounds/natural/meadowlark.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalocean_surfmp3:
         category   Naturgeräusche
         title      Brandung
         url        loop://content.mysqueezebox.com/static/sounds/natural/ocean_surf.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalrain_outsidemp3:
         category   Naturgeräusche
         title      Regen draußen
         url        loop://content.mysqueezebox.com/static/sounds/natural/rain_outside.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalrain_splashingmp3:
         category   Naturgeräusche
         title      Regentropfen
         url        loop://content.mysqueezebox.com/static/sounds/natural/rain_splashing.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalrain_thundermp3:
         category   Naturgeräusche
         title      Regen und Donner
         url        loop://content.mysqueezebox.com/static/sounds/natural/rain_thunder.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalrivermp3:
         category   Naturgeräusche
         title      Fluss
         url        loop://content.mysqueezebox.com/static/sounds/natural/river.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalrobinsmp3:
         category   Naturgeräusche
         title      Rotkehlchen
         url        loop://content.mysqueezebox.com/static/sounds/natural/robins.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalrooster_crowmp3:
         category   Naturgeräusche
         title      Krähender Hahn
         url        loop://content.mysqueezebox.com/static/sounds/natural/rooster_crow.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalruralmp3:
         category   Naturgeräusche
         title      Land
         url        loop://content.mysqueezebox.com/static/sounds/natural/rural.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalshore_seagullsmp3:
         category   Naturgeräusche
         title      Küste & Möwen
         url        loop://content.mysqueezebox.com/static/sounds/natural/shore_seagulls.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalspring_peepersmp3:
         category   Naturgeräusche
         title      Froschquaken
         url        loop://content.mysqueezebox.com/static/sounds/natural/spring_peepers.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalstream_birdsmp3:
         category   Naturgeräusche
         title      Vögel am Bach
         url        loop://content.mysqueezebox.com/static/sounds/natural/stream_birds.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalstreammp3:
         category   Naturgeräusche
         title      Stream
         url        loop://content.mysqueezebox.com/static/sounds/natural/stream.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturaltropical_ambiencemp3:
         category   Naturgeräusche
         title      Tropengeräusche
         url        loop://content.mysqueezebox.com/static/sounds/natural/tropical_ambience.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalwavesmp3:
         category   Naturgeräusche
         title      Wellen
         url        loop://content.mysqueezebox.com/static/sounds/natural/waves.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalwind_whistlemp3:
         category   Naturgeräusche
         title      Pfeifender Wind
         url        loop://content.mysqueezebox.com/static/sounds/natural/wind_whistle.mp3
       loopcontentmysqueezeboxcomstaticsoundsnaturalwindmp3:
         category   Naturgeräusche
         title      Wind
         url        loop://content.mysqueezebox.com/static/sounds/natural/wind.mp3
       randomplayalbum:
         category   Zufallsmix
         title      Albummix
         url        randomplay://album
       randomplaycontributor:
         category   Zufallsmix
         title      Interpretenmix
         url        randomplay://contributor
       randomplaytrack:
         category   Zufallsmix
         title      Titelmix
         url        randomplay://track
       randomplayyear:
         category   Zufallsmix
         title      Jahrgangsmix
         url        randomplay://year
     bm:
       SB_PLAYER_Get:
         cnt        1
         dmx        0
         mAr
         mTS
         max        0
         tot        0
       SB_PLAYER_Set:
         cnt        10
         dmx        0
         mTS        23.10. 16:36:29
         max        1
         tot        1
         mAr:
           HASH(0x564bf26d3ce8)
           myPlayer
           play
     elapsedTime:
       TS         1508769988.88714
       VAL        0
       count      4
       last       0
     ftuiSupport:
     myPlaylists:
     text2speech:
Attributes:
   DbLogExclude .*
   IODev      SqueezeBoxServer
   amplifier  play
   coverartheight 50
   coverartwidth 50
   donotnotify false
   fadeinsecs 10
   ttslanguage de
   ttslink    http://translate.google.com/translate_tts?ie=UTF-8&tl=<LANG>&q=<TEXT>&client=tw-ob
   volumeLimit 100
   volumeStep 10


SB_SERVER:



Internals:
   ALIVECHECK received
   CFGFN
   CLICONNECTION on
   CLIPORT    9090
   CMDSTACK   0
   DEF        USER:yes PASSWORD:yes
   DeviceName 127.0.0.1:9090
   FD         39
   IP         127.0.0.1
   LASTANSWER apps 0 200 sort:weight count:14 type:xmlbrowser weight:10 cmd:pandora name:Pandora icon:plugins/Pandora/html/images/icon.png name:Napster icon:plugins/RhapsodyDirect/html/images/icon.png weight:20 type:xmlbrowser cmd:rhapsodydirect cmd:slacker weight:30 type:xmlbrowser icon:plugins/Slacker/html/images/icon.png name:Slacker cmd:amazon type:xmlbrowser weight:30 icon:plugins/Amazon/html/images/icon.png name:Amazon-CD-Store icon:plugins/WiMP/html/images/icon.png name:TIDAL cmd:wimp weight:35 type:xmlbrowser icon:plugins/Deezer/html/images/icon.png name:Deezer cmd:deezer weight:35 type:xmlbrowser cmd:classical type:xmlbrowser weight:38 icon:plugins/Classical/html/images/icon.png name:Classical.com cmd:orange weight:40 type:xmlbrowser name:Orange Liveradio icon:plugins/Orange/html/images/icon.png weight:40 type:xmlbrowser cmd:mog name:MOG icon:plugins/MOG/html/images/icon.png weight:50 type:xmlbrowser cmd:mp3tunes name:MP3tunes-Musiktruhe icon:plugins/MP3tunes/html/images/icon.png weight:60 type:xmlbrowser cmd:lma icon:plugins/LMA/html/images/icon.png name:Live Music Archive name:Sounds & Effekte icon:plugins/Sounds/html/images/icon.png cmd:sounds type:xmlbrowser weight:1000 cmd:live365 weight:1000 type:xmlbrowser name:Live365 icon:plugins/Live365/html/images/icon.png type:xmlbrowser weight:1000 cmd:flickr icon:plugins/Flickr/html/images/icon.png name:Flickr
   NAME       SqueezeBoxServer
   NOTIFYDEV  global,SqueezeBoxServer
   NR         169
   NTFY_ORDER 50-SqueezeBoxServer
   PARTIAL
   PASSWORD   yes
   PRESENCENAME none
   RCCNAME    none
   STATE      opened
   TYPE       SB_SERVER
   USERNAME   yes
   WOLNAME    none
   READINGS:
     2017-10-23 18:20:52   db_albums       1041
     2017-10-23 18:20:52   db_artists      754
     2017-10-23 18:20:52   db_genres       170
     2017-10-23 18:20:52   db_songs        12046
     2017-10-23 18:20:52   favoritesname
     2017-10-23 18:20:52   favoritestotal  1
     2017-10-23 18:20:52   players         0
     2017-10-23 18:20:52   players_mysb    0
     2017-10-23 18:20:52   players_other   0
     2017-10-23 16:31:25   power           on
     2017-10-23 18:20:52   scan_last       5-10-2017 19:35:41
     2017-10-23 18:20:52   scandb          ?
     2017-10-05 19:35:42   scanduration    2095
     2017-10-23 18:20:52   scanlastfailed  none
     2017-10-23 18:20:52   scanning        no
     2017-10-23 18:20:52   scanprogressdone 0
     2017-10-23 18:20:52   scanprogresstotal 0
     2017-10-23 16:31:25   serversecure    1
     2017-10-23 18:20:52   serverversion   7.9.1
     2017-10-23 16:31:25   state           opened
   helper:
     SB_SERVER_LMS_Status 1508769085.02244
     SB_SERVER_VERSION 0045
     lastPRESENCEstate ?
     onAfterAliveCheck 0
     pingCounter 0
     appcmd:
       amazon:
         name       Amazon_CD_Store
       classical:
         name       Deezer
       flickr:
         name       Flickr
       live365:
         name       Live365
       lma:
         name       Sounds
       mog:
         name       MOG
       mp3tunes:
         name       MP3tunes_Musiktruhe
       orange:
         name       Orange
       pandora:
         name       Napster
       slacker:
         name       Napster
       wimp:
         name       TIDAL
     apps:
       Amazon_CD_Store:
         cmd        amazon
       Deezer:
         cmd        classical
       Flickr:
         cmd        flickr
       Live365:
         cmd        flickr
       MOG:
         cmd        mog
       MP3tunes_Musiktruhe:
         cmd        lma
       Napster:
         cmd        slacker
       Orange:
         cmd        orange
       Pandora:
         cmd        pandora
       Slacker:
         cmd        amazon
       Sounds:
         cmd        lma
       TIDAL:
         cmd        wimp
     bm:
       SB_SERVER_Get:
         cnt        1
         dmx        0
         mAr
         mTS
         max        0
         tot        0
       SB_SERVER_Notify:
         cnt        5
         dmx        0
         mAr
         mTS
         max        0
         tot        0
       SB_SERVER_Read:
         cnt        188
         dmx        0
         mTS        23.10. 16:58:36
         max        49
         tot        1116
         mAr:
           HASH(0x564bf21dcfb8)
       SB_SERVER_Set:
         cnt        8
         dmx        0
         mTS        23.10. 18:20:52
         max        6
         tot        6
         mAr:
           HASH(0x564bf21dcfb8)
           SqueezeBoxServer
           statusRequest
     syncGroups:
Attributes:
   alivetimer 120
   doalivecheck true
   httpport   9000
   maxcmdstack 200
   maxfavorites 30


Viele Grüße
ManOki

ChrisD

Hallo,

ZitatLeider bringt selbst ein statusRequest nichts.
Hast du den statusRequest beim Player oder beim Server gemacht ?

Ich habe versucht das Player-Modul anzupassen, kannst du testen ob es mit der neuen Version funktioniert ?

Grüße,

ChrisD

ManOki

Zitat von: ChrisD am 23 Oktober 2017, 22:16:07
Hast du den statusRequest beim Player oder beim Server gemacht ?

Bei dem Player. Server habe ich afaik nicht probiert. Dort stand ja bereits 0 Player, deswegen dachte ich, der ist aktuell.

Zitat von: ChrisD am 23 Oktober 2017, 22:16:07
Ich habe versucht das Player-Modul anzupassen, kannst du testen ob es mit der neuen Version funktioniert ?

Hab gerade aktualisiert & ausprobiert, funktioniert beim Neustart von FHEM wie erwartet.

Danke für die schnelle Hilfe!
ManOki

Elektrolurch

Hallo,

ich habe jetzt auch den Effekt, dass der state vom Player auf 'on' sthen bleibt, obwohl die Steckdose den Player stromlos geschaltet hat. Mir ist das erst jetzt aufgefallen, da ich mit einem DOIF den Player nach dem Ausschalten des Deckenlichtes ausschalte, und zwar nach zwei verschiedenen Zeiten: Wenn Player noch ein, dann nach 1 h, ansonsten wird er schon nach 10 Min. stromlos geschaltet.

Die Software ist auf dem neusten Stand.

Elektrolurch
configDB und Windows befreite Zone!

ComputerZOO

Ich stelle gerade auch leider fest, dass das Modul nicht mehr ganz "rund" läuft.
Es kommt des öfteren vor, das die Squeezebox eine Sprachausgabe via talk/saytext ausgibt, ein paar Minuten später aber nix mehr kommt, ohne eine Fehlermeldung oder so.

ChrisD

Hallo,

@ComputerZOO: Mit welcher Version der Module hat es zuletzt reproduzierbar fehlerfrei funktioniert ?
Was passiert nach den 'paar Minuten später' ?
Welchen Zustand hat das Reading talkStatus ?
Was steht im Log wenn du bei den Playern das Attribut ttsOptions auf 'debug,debugsaverestore' setzt ?

@Elektrolurch: Welchen Wert und Zeitstempel haben die Readings power, presence und connected vor und nach dem Abschalten des Players ?
Welchen Wert hat das Internal 'CANPOWEROFF' ?
Wird der Zustand des Players aktualisiert wenn du ein statusRequest beim Server machst ?

Grüße,

ChrisD




ComputerZOO

Moin,
...fangen wir mit dem Log an (erstmal ohne debugging):
2017.10.25 23:23:31.383 2: SB_PLAYER_Parse(ku.squeezebox): currentTrackPosition frozen, player present, sending status request
2017.10.25 23:25:24.878 2: SB_PLAYER_Parse(sz.squeezebox): currentTrackPosition frozen, player present, sending status request
2017.10.26 00:18:31.629 2: SB_PLAYER_Parse(ku.squeezebox): currentTrackPosition frozen, player present, sending status request
2017.10.26 00:20:25.057 2: SB_PLAYER_Parse(sz.squeezebox): currentTrackPosition frozen, player present, sending status request

Elektrolurch

Hallo,

zwei Versuche:
1. Strom ein -> Player ein -> Player aus -> Strom aus
Das sieht alles normal aus.
2. Versuch: Strom ein -> Player ein -> Strom aus
Player bleibt mit allen Readings, auch nach einem set StatusRequest  bei Server auf eingeschaltet.

Hier die Auszuüge aus dem Log:

2017.10.26 11:59:45 1: eingeschaltet
Ku_Player:
state off - 39
power off - 39
presence absent - 4146
connected 0 - 4146
CANPOWEROFF: ?
2017.10.26 12:03:24 1: Player spielt
Ku_Player:
state on - 3
power on - 3
presence present - 3
connected 1 - 3
CANPOWEROFF: ?
2017.10.26 12:04:54 1: Player spielt - Deckenlampe aus - doif 1 h
Ku_Player:
state on - 16
power on - 16
presence present - 16
connected 1 - 16
CANPOWEROFF: ?
2017.10.26 12:06:15 1: Player spielt nicht mehr
Ku_Player:
state off - 17
power off - 17
presence present - 17
connected 1 - 17
CANPOWEROFF: ?
2017.10.26 12:07:10 1: Player spielt nicht mehr
Ku_Player:
state off - 13
power off - 13
presence present - 13
connected 1 - 13
CANPOWEROFF: ?
2017.10.26 12:08:21 1: Strom aus
Ku_Player:
state off - 84
power off - 84
presence present - 84
connected 1 - 84
CANPOWEROFF: ?
2017.10.26 12:10:09 1: Strom ein - Player läuft - die zweite
Ku_Player:
state on - 12
power on - 12
presence present - 12
connected 1 - 12
CANPOWEROFF: ?
2017.10.26 12:11:07 1: Strom aus
Ku_Player:
state on - 27
power on - 27
presence present - 27
connected 1 - 27
CANPOWEROFF: ?
2017.10.26 12:12:08 1: Strom aus - 2. Abfrage
Ku_Player:
state on - 88
power on - 88
presence present - 88
connected 1 - 88
CANPOWEROFF: ?
2017.10.26 12:12:52 1: Strom aus - 3. Abfrage
Ku_Player:
state on - 132
power on - 132
presence present - 132
connected 1 - 132
CANPOWEROFF: ?
2017.10.26 12:14:57 1: Strom aus - 3. Abfrage - nach Server StatusREquest
Ku_Player:
state on - 19
power on - 19
presence present - 19
connected 1 - 19
CANPOWEROFF: 1

Zur besseren Lesbarkeit habe ich ReadingsAge hier ausgegeben, man sieht, dass beim eingeschalteten Player die readings wohl häufiger "refreshed" wwerden, obwohl sich der Wert nicht ändert.

Elektrolurch
configDB und Windows befreite Zone!

ChrisD

Hallo,

@ComputerZOO: Die Zeilen im Log bedeuten dass obschon die Wiedergabe gestartet ist, die Zeit nicht weiterläuft. Einer der Gründe hierfür kann die Ausgabe von tts auf einer fehlerhaften Version von Squeezelite sein. Welche Player verwendest du ?

@Elektrolurch: Im 1. Fall ist es nicht richtig dass der Player auf 'present' bleibt wenn ihm der Strom ausgeschaltet wird. Im 2. Fall kommt kein 'power off' weil der Player keine Gelegenheit hat dem Server mitzuteilen dass ihm der Strom abgestellt wurde. Manchmal bemerkt der Server nach einiger Zeit dass ein Player verschwunden ist und sendet dann eine 'disconnect'-Meldung an FHEM. In deinem Fall scheint dies nicht zu passieren, selbst beim 'statusRequest' meldet der Server dass der Player noch immer vorhanden ist. Welchen Player verwendest du ?

Grüße,

ChrisD

ComputerZOO

Moin,
habe ne Boom, ne Classic und nen Radio. Ich packe hier morgen noch nen Logauszug rein von meinem Weckprogramm.

holzwurm83

Hallo zusammen,

könnt ihr mir vielleicht weiterhelfen. Ich habe eine Problem mit der Textausgabe. Habe jetzt schon die ganze doku gelesen und die passenden Beitrage dazu.
Ich habe insgesamt vier Squeezelite am laufen eine auf meinem MacMiniServer und drei auf je einem RPI. Auf dem MacMini funktioniert die Sprachausgabe und auf den RPIs leider nicht. Im Log steht auch leider nicht so viel, bis auf:

2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896: leaving
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896 CMD:title ARGS:http://api.voicerss.org/?key=xxxxxxxxxxxxxxxxx&src=test.&hl=de-de&f=48khz_16bit_stereo...
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896: leaving
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896 CMD:playlist ARGS:name...
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896: leaving
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896 CMD:duration ARGS:1.44291472868217...
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896: leaving
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896 CMD:playlist ARGS:index 0...
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896: leaving
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896 CMD:time ARGS:0...
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896: leaving
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896 CMD:mode ARGS:play...
2017.10.28 11:40:41 5: SB_PLAYER_Parse(SB_PLAYER_b827eb142896): mode:mode args:play
2017.10.28 11:40:41 4: SB_PLAYER_Amplifier(SB_PLAYER_b827eb142896): called
2017.10.28 11:40:41 5: SB_PLAYER_Parse: SB_PLAYER_b827eb142896: leaving
- Fhem auf einem MacMini Server
- CUL; HMLAN; CUNO2 für FS20; HM-Wired RS485 LAN Gateway
- HMW_Sen_SC_12_FM; HMW_LC_Sw2_DR; HMW_LC_Bl1_DR; HMW_IO_12_Sw7; HMW_IO_12_Sw14_DR; HMW_IO_12_FM; HBW_1W_T10
- HM-TC-IT-WM-W-EU; HM-CC-RT-DN

ChrisD

Hallo,

Welche Version von Squeezelite verwendest du ?

Kannst du das Attribut ttsOptions mit
attr SB_PLAYER_b827eb142896 ttsOptions debug
setzen und die Ausgabe aus dem Log posten ?

Grüße,

ChrisD