Squeezebox Modul - erste Version

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

Vorheriges Thema - Nächstes Thema

ChrisD

Hallo,

Danke für die ausführlichen Logs.

Ich habe das Reading angepasst. Da ich zum Teil raten muss in welchem Zustand sleep ist kann es sein dass diverse Sonderfälle nicht funktionieren.

In der neuen Version sollte die Aktualisierung (z.B. beim statusRequest) korrekt erfolgen, beim Abschalten vom sleep der Wert auf '?' gehen und beim Ablauf der sleep-Zeit auf '00:00:00'. Wenn der Player über sleep abgeschaltet wird führt der nächste statusRequest aber dazu dass der Wert von '00:00:00' auf '?' geht da sleep nicht mehr aktiv ist.

Grüße,

ChrisD

Martin Fischer

Hallo,

sorry, aber es läuft noch nicht rund.

Es mischen sich falsche '?' Events zwischen die korrekten Schlaftimer-Events. Vielleicht noch Überreste aus dem ersten Versuch. Auch das Reading wird dadurch falsch gesetzt. Erst mit dem korrekten Wert und dann gleich gefolgt vom '?'. Am Ende des Timers bleibt der Trigger 00:00:00 auch aus.

Kommentare / Anmerkungen unten im Mitschnitt.

Viele Grüße
Martin


2021-05-10 01:42:02.850 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
[...]
2021-05-10 01:47:02.861 SB_PLAYER EG.wz.SBP.01 off
2021-05-10 01:47:02.861 SB_PLAYER EG.wz.SBP.01 power: off
2021-05-10 01:47:02.861 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-10 01:47:02.861 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
# Korrekt, da Player noch aus.

[...]
2021-05-10 01:48:52.296 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 01:48:52.314 SB_PLAYER EG.wz.SBP.01 on
2021-05-10 01:48:52.314 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-10 01:48:52.314 SB_PLAYER EG.wz.SBP.01 willSleepIn: 23:59:57
2021-05-10 01:48:52.329 SB_PLAYER EG.wz.SBP.01 on
2021-05-10 01:48:52.329 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-10 01:48:52.329 SB_PLAYER EG.wz.SBP.01 willSleepIn: 23:59:57
# Player wird eingeschaltet und geht auf playing. Die 23:59:57 sind hier nicht korrekt und würden was falsches triggern.

[...]
2021-05-10 01:48:52.526 SB_PLAYER EG.wz.SBP.01 on
2021-05-10 01:48:52.526 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-10 01:48:52.526 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 01:48:52.526 SB_PLAYER EG.wz.SBP.01 volumeStraight: 59
2021-05-10 01:48:52.526 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-10 01:48:52.526 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-10 01:48:52.526 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
# Plötzlich wieder '?', was aber korrekt ist, da kein Schlafmodus gesetzt ist.

[...]
2021-05-10 01:49:02.853 SB_PLAYER EG.wz.SBP.01 on
2021-05-10 01:49:02.853 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-10 01:49:02.853 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 01:49:02.853 SB_PLAYER EG.wz.SBP.01 volumeStraight: 59
2021-05-10 01:49:02.853 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-10 01:49:02.853 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-10 01:49:02.853 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
[...]
2021-05-10 01:53:52.458 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
[...]
2021-05-10 01:58:52.461 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
[...]
2021-05-10 02:03:52.467 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
# Immer noch richtig..

[...]
2021-05-10 02:03:52.550 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 02:03:52.563 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 02:06:29.718 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:15:00
# Schlafmodus auf 15 min gestellt

2021-05-10 02:08:52.471 SB_PLAYER EG.wz.SBP.01 on
2021-05-10 02:08:52.471 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-10 02:08:52.471 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 02:08:52.471 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:12:37
# So weit, so gut... doch dann:

2021-05-10 02:08:52.471 SB_PLAYER EG.wz.SBP.01 volumeStraight: 59
2021-05-10 02:08:52.471 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-10 02:08:52.471 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-10 02:08:52.471 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
# Plötzlich wieder '?'. Ich vermute mal, hier wurde ein (alter) Trigger aus dem ersten Versuch nicht gelöscht. Denn das setzt sich nun so fort....

[...]
2021-05-10 02:13:52.477 SB_PLAYER EG.wz.SBP.01 on
2021-05-10 02:13:52.477 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-10 02:13:52.477 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 02:13:52.477 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:07:37
2021-05-10 02:13:52.477 SB_PLAYER EG.wz.SBP.01 volumeStraight: 59
2021-05-10 02:13:52.477 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-10 02:13:52.477 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-10 02:13:52.477 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
[...]
2021-05-10 02:18:52.506 SB_PLAYER EG.wz.SBP.01 on
2021-05-10 02:18:52.506 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-10 02:18:52.506 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 02:18:52.506 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:02:37
2021-05-10 02:18:52.506 SB_PLAYER EG.wz.SBP.01 volumeStraight: 59
2021-05-10 02:18:52.506 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-10 02:18:52.506 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-10 02:18:52.506 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
[...]
2021-05-10 02:18:52.576 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 02:18:52.589 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 02:21:29.735 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-10 02:21:29.749 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-10 02:21:29.769 SB_PLAYER EG.wz.SBP.01 off
2021-05-10 02:21:29.769 SB_PLAYER EG.wz.SBP.01 power: off
2021-05-10 02:21:29.769 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
# Timer war um 02:21:29 abgelaufen. Hier hätte dann statt dem '? noch ein '00:00:00' kommen müssen.

2021-05-10 02:21:29.780 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-10 02:21:29.798 SB_PLAYER EG.wz.SBP.01 off
2021-05-10 02:21:29.798 SB_PLAYER EG.wz.SBP.01 power: off
2021-05-10 02:21:29.798 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
2021-05-10 02:21:29.810 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-10 02:21:30.753 SB_PLAYER EG.wz.SBP.01 playlistStop
# Hier dann wieder korrekt

[...]
2021-05-10 02:43:12.677 SB_PLAYER EG.wz.SBP.01 on
2021-05-10 02:43:12.677 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-10 02:43:12.677 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 02:43:12.677 SB_PLAYER EG.wz.SBP.01 volumeStraight: 59
2021-05-10 02:43:12.677 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-10 02:43:12.677 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-10 02:43:12.677 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
# Korrekt. Player erneut eingeschaltet.

[...]
2021-05-10 02:43:13.015 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 02:43:22.523 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:15:00
# Schlafmodus gesetzt

[...]
2021-05-10 02:43:22.963 SB_PLAYER EG.wz.SBP.01 presence: present
2021-05-10 02:43:22.963 SB_PLAYER EG.wz.SBP.01 on
2021-05-10 02:43:22.963 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-10 02:43:22.963 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-10 02:43:22.963 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:14:59
2021-05-10 02:43:22.963 SB_PLAYER EG.wz.SBP.01 volumeStraight: 59
2021-05-10 02:43:22.963 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-10 02:43:22.963 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-10 02:43:22.963 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
# Gleiches Verhalten wie oben

[...]
2021-05-10 02:46:09.244 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
# Schlafmodus abgebrochen.
--
Admin, Developer, Gründungsmitglied des FHEM e.V.

ChrisD

Hallo,

Anbei findest du eine Test-Version die zusätzliche Logausgaben erzeugt, kannst du bitte damit den Test wiederholen ? Die Meldung mit '23:59:57' sollte nicht mehr auftreten. Eventuell sind auch die '?' verschwunden.

Da der Server keine Meldung schickt wenn sleep ausgelöst wird, versucht das Modul dies anhand der power off Meldung zu erkennen.

Grüße,

ChrisD

Martin Fischer

So.. da bin ich wieder  :D

Mir ist in diesem Zusammenhang aufgefallen, das einige Events mehrfach in kurzer Reiheenfolge erzeugt werden. Am Beispiel um 11:02:17:
2021-05-17 11:02:17.602 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:02:17.602 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-17 11:02:17.627 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:02:17.627 SB_PLAYER EG.wz.SBP.01 power: on

Innerhalb von 25 ms doppelte Informationen. Und keine 205 ms später erneut:
2021-05-17 11:02:17.832 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:02:17.832 SB_PLAYER EG.wz.SBP.01 power: on


Auch der playStatus wird oftmals in nur kurzen Abständen wiederholt. Ein Beispiel (3x innerhalb von 35 ms):
[2021-05-17 11:02:17.899 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:02:17.910 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:02:17.934 SB_PLAYER EG.wz.SBP.01 playStatus: playing


Jeder Trigger "belastet" ja auch die interne FHEM Queue. Auch wenn das jetzt nichts zur Sache ist, ist es vielleicht später ein Optimierungskandidat  ;)

Zur Sache selbst:

Bei den erzeugte Events sieht das schon recht ordentlich aus. Einzig am Ende wird zweimal innerhalb von 37 ms
2021-05-17 11:24:40.647 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:00:00
[...]
2021-05-17 11:24:40.684 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:00:00


Im Ideal sollte davon einer rausfliegen.

Hier nun die Events in Gänze:
2021-05-17 10:59:46.073 SB_PLAYER EG.wz.SBP.01 off
2021-05-17 10:59:46.073 SB_PLAYER EG.wz.SBP.01 power: off
2021-05-17 10:59:46.073 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-17 10:59:46.073 SB_PLAYER EG.wz.SBP.01 volumeStraight: 69
2021-05-17 10:59:46.073 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 8
2021-05-17 10:59:46.073 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-17 10:59:46.073 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?

[...]
# Player wird eingeschaltet
2021-05-17 11:02:17.419 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:02:17.602 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:02:17.602 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-17 11:02:17.627 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:02:17.627 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-17 11:02:17.644 SB_PLAYER EG.wz.SBP.01 currentMedia: tmp:///music/xxxxx.mp3
2021-05-17 11:02:17.655 SB_PLAYER EG.wz.SBP.01 currentMedia: tmp:///music/xxxxx.mp3
2021-05-17 11:02:17.681 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:02:17.693 SB_PLAYER EG.wz.SBP.01 currentArtist: xxxxx
2021-05-17 11:02:17.703 SB_PLAYER EG.wz.SBP.01 currentAlbum: xxxxx
2021-05-17 11:02:17.713 SB_PLAYER EG.wz.SBP.01 currentTitle: xxxxx
2021-05-17 11:02:17.832 SB_PLAYER EG.wz.SBP.01 presence: present
2021-05-17 11:02:17.832 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:02:17.832 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-17 11:02:17.832 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:02:17.832 SB_PLAYER EG.wz.SBP.01 volumeStraight: 69
2021-05-17 11:02:17.832 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 8
2021-05-17 11:02:17.832 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-17 11:02:17.832 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
2021-05-17 11:02:17.832 SB_PLAYER EG.wz.SBP.01 coverarturl: http://192.168.1.2:9002/music/-139930529773464/cover_100x100.jpg
2021-05-17 11:02:17.845 SB_PLAYER EG.wz.SBP.01 alarmsFadeIn: on
2021-05-17 11:02:17.845 SB_PLAYER EG.wz.SBP.01 alarmsFadeSeconds: 1
2021-05-17 11:02:17.856 SB_PLAYER EG.wz.SBP.01 alarmsEnabled: on
2021-05-17 11:02:17.866 SB_PLAYER EG.wz.SBP.01 alarmsDefaultVolume: 50
2021-05-17 11:02:17.876 SB_PLAYER EG.wz.SBP.01 alarmsTimeout: 60
2021-05-17 11:02:17.886 SB_PLAYER EG.wz.SBP.01 alarmsSnooze: 9
2021-05-17 11:02:17.899 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:02:17.910 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:02:17.934 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:02:17.945 SB_PLAYER EG.wz.SBP.01 currentArtist: xxxxx
2021-05-17 11:02:17.955 SB_PLAYER EG.wz.SBP.01 currentAlbum: xxxxx
2021-05-17 11:02:17.966 SB_PLAYER EG.wz.SBP.01 currentTitle: xxxxx
2021-05-17 11:02:17.979 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 8
2021-05-17 11:02:27.985 SB_PLAYER EG.wz.SBP.01 presence: present
2021-05-17 11:02:27.985 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:02:27.985 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-17 11:02:27.985 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:02:27.985 SB_PLAYER EG.wz.SBP.01 volumeStraight: 69
2021-05-17 11:02:27.985 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 8
2021-05-17 11:02:27.985 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-17 11:02:27.985 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
2021-05-17 11:02:27.985 SB_PLAYER EG.wz.SBP.01 coverarturl: http://192.168.1.2:9002/music/-139930526745280/cover_100x100.jpg

[...]
# Schlafmodus auf 15 min. gesetzt
2021-05-17 11:03:17.535 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:15:00
2021-05-17 11:07:11.307 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-17 11:07:11.354 SB_PLAYER EG.wz.SBP.01 currentMedia: tmp:///music/xxxxx.mp3
2021-05-17 11:07:11.366 SB_PLAYER EG.wz.SBP.01 currentMedia: tmp:///music/xxxxx.mp3
2021-05-17 11:07:11.377 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:07:11.390 SB_PLAYER EG.wz.SBP.01 currentArtist: xxxxx
2021-05-17 11:07:11.401 SB_PLAYER EG.wz.SBP.01 currentAlbum: xxxxx
2021-05-17 11:07:11.411 SB_PLAYER EG.wz.SBP.01 currentTitle: xxxxx
2021-05-17 11:07:11.446 SB_PLAYER EG.wz.SBP.01 presence: present
2021-05-17 11:07:11.446 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:07:11.446 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-17 11:07:11.446 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:07:11.446 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:11:06
2021-05-17 11:07:11.446 SB_PLAYER EG.wz.SBP.01 volumeStraight: 69
2021-05-17 11:07:11.446 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-17 11:07:11.446 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-17 11:07:11.446 SB_PLAYER EG.wz.SBP.01 coverarturl: http://192.168.1.2:9002/music/-139930529773464/cover_100x100.jpg
2021-05-17 11:07:11.459 SB_PLAYER EG.wz.SBP.01 alarmsFadeIn: on
2021-05-17 11:07:11.459 SB_PLAYER EG.wz.SBP.01 alarmsFadeSeconds: 1
2021-05-17 11:07:11.470 SB_PLAYER EG.wz.SBP.01 alarmsEnabled: on
2021-05-17 11:07:11.480 SB_PLAYER EG.wz.SBP.01 alarmsDefaultVolume: 50
2021-05-17 11:07:11.490 SB_PLAYER EG.wz.SBP.01 alarmsTimeout: 60
2021-05-17 11:07:11.500 SB_PLAYER EG.wz.SBP.01 alarmsSnooze: 9
2021-05-17 11:07:11.514 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:07:11.524 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:07:11.537 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:07:11.757 SB_PLAYER EG.wz.SBP.01 currentArtist: xxxxx
2021-05-17 11:07:11.769 SB_PLAYER EG.wz.SBP.01 currentAlbum: xxxxx
2021-05-17 11:07:11.779 SB_PLAYER EG.wz.SBP.01 currentTitle: xxxxx
2021-05-17 11:07:11.798 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-17 11:07:11.809 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:07:21.790 SB_PLAYER EG.wz.SBP.01 presence: present
2021-05-17 11:07:21.790 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:07:21.790 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-17 11:07:21.790 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:07:21.790 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:10:55
2021-05-17 11:07:21.790 SB_PLAYER EG.wz.SBP.01 volumeStraight: 69
2021-05-17 11:07:21.790 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-17 11:07:21.790 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-17 11:07:21.790 SB_PLAYER EG.wz.SBP.01 coverarturl: http://192.168.1.2:9002/music/-139930529950016/cover_100x100.jpg

[...]
# Schlafmodus auf 30 min. gesetzt
2021-05-17 11:07:58.884 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:30:00

# Schlafmodus manuell abgebrochen
2021-05-17 11:08:58.892 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?

# Schlafmodus auf 15 min. gesetzt
2021-05-17 11:09:40.474 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:15:00
2021-05-17 11:12:11.407 SB_PLAYER EG.wz.SBP.01 currentArtist: xxxxx
2021-05-17 11:12:11.417 SB_PLAYER EG.wz.SBP.01 currentAlbum: xxxxx
2021-05-17 11:12:11.428 SB_PLAYER EG.wz.SBP.01 currentTitle: xxxxx
2021-05-17 11:12:11.462 SB_PLAYER EG.wz.SBP.01 presence: present
2021-05-17 11:12:11.462 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:12:11.462 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-17 11:12:11.462 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:12:11.462 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:12:29
2021-05-17 11:12:11.462 SB_PLAYER EG.wz.SBP.01 volumeStraight: 69
2021-05-17 11:12:11.462 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-17 11:12:11.462 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-17 11:12:11.462 SB_PLAYER EG.wz.SBP.01 coverarturl: http://192.168.1.2:9002/music/-139930529773464/cover_100x100.jpg
2021-05-17 11:12:11.476 SB_PLAYER EG.wz.SBP.01 alarmsFadeIn: on
2021-05-17 11:12:11.476 SB_PLAYER EG.wz.SBP.01 alarmsFadeSeconds: 1
2021-05-17 11:12:11.486 SB_PLAYER EG.wz.SBP.01 alarmsEnabled: on
2021-05-17 11:12:11.497 SB_PLAYER EG.wz.SBP.01 alarmsDefaultVolume: 50
2021-05-17 11:12:11.507 SB_PLAYER EG.wz.SBP.01 alarmsTimeout: 60
2021-05-17 11:12:11.517 SB_PLAYER EG.wz.SBP.01 alarmsSnooze: 9
2021-05-17 11:12:11.530 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:12:11.544 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:17:11.413 SB_PLAYER EG.wz.SBP.01 currentArtist: xxxxx
2021-05-17 11:17:11.423 SB_PLAYER EG.wz.SBP.01 currentAlbum: xxxxx
2021-05-17 11:17:11.434 SB_PLAYER EG.wz.SBP.01 currentTitle: xxxxx
2021-05-17 11:17:11.470 SB_PLAYER EG.wz.SBP.01 presence: present
2021-05-17 11:17:11.470 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:17:11.470 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-17 11:17:11.470 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:17:11.470 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:07:29
2021-05-17 11:17:11.470 SB_PLAYER EG.wz.SBP.01 volumeStraight: 69
2021-05-17 11:17:11.470 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-17 11:17:11.470 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-17 11:17:11.470 SB_PLAYER EG.wz.SBP.01 coverarturl: http://192.168.1.2:9002/music/-139930529773464/cover_100x100.jpg
2021-05-17 11:17:11.483 SB_PLAYER EG.wz.SBP.01 alarmsFadeIn: on
2021-05-17 11:17:11.483 SB_PLAYER EG.wz.SBP.01 alarmsFadeSeconds: 1
2021-05-17 11:17:11.494 SB_PLAYER EG.wz.SBP.01 alarmsEnabled: on
2021-05-17 11:17:11.504 SB_PLAYER EG.wz.SBP.01 alarmsDefaultVolume: 50
2021-05-17 11:17:11.515 SB_PLAYER EG.wz.SBP.01 alarmsTimeout: 60
2021-05-17 11:17:11.525 SB_PLAYER EG.wz.SBP.01 alarmsSnooze: 9
2021-05-17 11:17:11.538 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:17:11.550 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:22:11.416 SB_PLAYER EG.wz.SBP.01 currentArtist: xxxxx
2021-05-17 11:22:11.428 SB_PLAYER EG.wz.SBP.01 currentAlbum: xxxxx
2021-05-17 11:22:11.439 SB_PLAYER EG.wz.SBP.01 currentTitle: xxxxx
2021-05-17 11:22:11.474 SB_PLAYER EG.wz.SBP.01 presence: present
2021-05-17 11:22:11.474 SB_PLAYER EG.wz.SBP.01 on
2021-05-17 11:22:11.474 SB_PLAYER EG.wz.SBP.01 power: on
2021-05-17 11:22:11.474 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:22:11.474 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:02:29
2021-05-17 11:22:11.474 SB_PLAYER EG.wz.SBP.01 volumeStraight: 69
2021-05-17 11:22:11.474 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-17 11:22:11.474 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-17 11:22:11.474 SB_PLAYER EG.wz.SBP.01 coverarturl: http://192.168.1.2:9002/music/-139930529773464/cover_100x100.jpg
2021-05-17 11:22:11.487 SB_PLAYER EG.wz.SBP.01 alarmsFadeIn: on
2021-05-17 11:22:11.487 SB_PLAYER EG.wz.SBP.01 alarmsFadeSeconds: 1
2021-05-17 11:22:11.498 SB_PLAYER EG.wz.SBP.01 alarmsEnabled: on
2021-05-17 11:22:11.509 SB_PLAYER EG.wz.SBP.01 alarmsDefaultVolume: 50
2021-05-17 11:22:11.519 SB_PLAYER EG.wz.SBP.01 alarmsTimeout: 60
2021-05-17 11:22:11.529 SB_PLAYER EG.wz.SBP.01 alarmsSnooze: 9
2021-05-17 11:22:11.542 SB_PLAYER EG.wz.SBP.01 playStatus: playing
2021-05-17 11:22:11.553 SB_PLAYER EG.wz.SBP.01 playStatus: playing

# Schlafmodus beendet den Titel und schalter Player ab
2021-05-17 11:24:40.475 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-17 11:24:40.490 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-17 11:24:40.647 SB_PLAYER EG.wz.SBP.01 off
2021-05-17 11:24:40.647 SB_PLAYER EG.wz.SBP.01 power: off
2021-05-17 11:24:40.647 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:00:00
2021-05-17 11:24:40.657 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-17 11:24:40.684 SB_PLAYER EG.wz.SBP.01 off
2021-05-17 11:24:40.684 SB_PLAYER EG.wz.SBP.01 power: off
2021-05-17 11:24:40.684 SB_PLAYER EG.wz.SBP.01 willSleepIn: 00:00:00
2021-05-17 11:24:40.735 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-17 11:24:41.526 SB_PLAYER EG.wz.SBP.01 playlistStop
2021-05-17 11:27:11.422 SB_PLAYER EG.wz.SBP.01 currentArtist: xxxxx
2021-05-17 11:27:11.433 SB_PLAYER EG.wz.SBP.01 currentAlbum: xxxxx
2021-05-17 11:27:11.443 SB_PLAYER EG.wz.SBP.01 currentTitle: xxxxx
2021-05-17 11:27:11.477 SB_PLAYER EG.wz.SBP.01 presence: present
2021-05-17 11:27:11.477 SB_PLAYER EG.wz.SBP.01 off
2021-05-17 11:27:11.477 SB_PLAYER EG.wz.SBP.01 power: off
2021-05-17 11:27:11.477 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-17 11:27:11.477 SB_PLAYER EG.wz.SBP.01 volumeStraight: 69
2021-05-17 11:27:11.477 SB_PLAYER EG.wz.SBP.01 playlistCurrentTrack: 9
2021-05-17 11:27:11.477 SB_PLAYER EG.wz.SBP.01 playlistTracks: 16
2021-05-17 11:27:11.477 SB_PLAYER EG.wz.SBP.01 willSleepIn: ?
2021-05-17 11:27:11.477 SB_PLAYER EG.wz.SBP.01 coverarturl: http://192.168.1.2:9002/music/-139930529773464/cover_100x100.jpg
2021-05-17 11:27:11.490 SB_PLAYER EG.wz.SBP.01 alarmsFadeIn: on
2021-05-17 11:27:11.490 SB_PLAYER EG.wz.SBP.01 alarmsFadeSeconds: 1
2021-05-17 11:27:11.500 SB_PLAYER EG.wz.SBP.01 alarmsEnabled: on
2021-05-17 11:27:11.510 SB_PLAYER EG.wz.SBP.01 alarmsDefaultVolume: 50
2021-05-17 11:27:11.520 SB_PLAYER EG.wz.SBP.01 alarmsTimeout: 60
2021-05-17 11:27:11.530 SB_PLAYER EG.wz.SBP.01 alarmsSnooze: 9
2021-05-17 11:27:11.543 SB_PLAYER EG.wz.SBP.01 playStatus: stopped
2021-05-17 11:27:11.554 SB_PLAYER EG.wz.SBP.01 playStatus: stopped


Und das (gekürzte) Logfile:
2021.05.17 10:59:46.039 0: EG.wz.SBP.01: updateWillSleepIn, sleep ?
2021.05.17 10:59:46.040 0: EG.wz.SBP.01: updateWillSleepIn, sleepV -1
2021.05.17 11:02:17.428 0: EG.wz.SBP.01: updateWillSleepIn, sleep -3
2021.05.17 11:02:17.602 0: EG.wz.SBP.01: updateWillSleepIn, sleep -3
2021.05.17 11:02:17.802 0: EG.wz.SBP.01: updateWillSleepIn, sleep ?
2021.05.17 11:02:17.802 0: EG.wz.SBP.01: updateWillSleepIn, sleepV -1
2021.05.17 11:02:27.936 0: EG.wz.SBP.01: updateWillSleepIn, sleep ?
2021.05.17 11:02:27.937 0: EG.wz.SBP.01: updateWillSleepIn, sleepV -1
2021.05.17 11:03:17.523 0: EG.wz.SBP.01: updateWillSleepIn, sleep 900
2021.05.17 11:03:17.523 0: EG.wz.SBP.01: updateWillSleepIn, sleepV 900
2021.05.17 11:07:11.416 0: EG.wz.SBP.01: updateWillSleepIn, sleep 666.15465092659
2021.05.17 11:07:11.416 0: EG.wz.SBP.01: updateWillSleepIn, sleepV 666
2021.05.17 11:07:21.751 0: EG.wz.SBP.01: updateWillSleepIn, sleep 655.753005027771
2021.05.17 11:07:21.753 0: EG.wz.SBP.01: updateWillSleepIn, sleepV 655
2021.05.17 11:07:58.866 0: EG.wz.SBP.01: updateWillSleepIn, sleep 1800
2021.05.17 11:07:58.866 0: EG.wz.SBP.01: updateWillSleepIn, sleepV 1800
2021.05.17 11:08:58.874 0: EG.wz.SBP.01: updateWillSleepIn, sleep 0
2021.05.17 11:08:58.874 0: EG.wz.SBP.01: updateWillSleepIn, sleepV -1
2021.05.17 11:09:40.457 0: EG.wz.SBP.01: updateWillSleepIn, sleep 900
2021.05.17 11:09:40.458 0: EG.wz.SBP.01: updateWillSleepIn, sleepV 900
2021.05.17 11:12:11.432 0: EG.wz.SBP.01: updateWillSleepIn, sleep 749.084009170532
2021.05.17 11:12:11.432 0: EG.wz.SBP.01: updateWillSleepIn, sleepV 749
2021.05.17 11:17:11.438 0: EG.wz.SBP.01: updateWillSleepIn, sleep 449.080067157745
2021.05.17 11:17:11.438 0: EG.wz.SBP.01: updateWillSleepIn, sleepV 449
2021.05.17 11:22:11.443 0: EG.wz.SBP.01: updateWillSleepIn, sleep 149.075667142868
2021.05.17 11:22:11.444 0: EG.wz.SBP.01: updateWillSleepIn, sleepV 149
2021.05.17 11:24:40.490 0: EG.wz.SBP.01: updateWillSleepIn, sleep -2
2021.05.17 11:24:40.491 0: EG.wz.SBP.01: updateWillSleepIn, sleepV 0
2021.05.17 11:24:40.657 0: EG.wz.SBP.01: updateWillSleepIn, sleep -2
2021.05.17 11:24:40.657 0: EG.wz.SBP.01: updateWillSleepIn, sleepV 0
2021.05.17 11:27:11.448 0: EG.wz.SBP.01: updateWillSleepIn, sleep ?
2021.05.17 11:27:11.448 0: EG.wz.SBP.01: updateWillSleepIn, sleepV -1


Viele Grüße
Martin
--
Admin, Developer, Gründungsmitglied des FHEM e.V.

palatin8

Zuerst einmal Dank für die Arbeit, das Modul über die Jahre am Leben zu halten. 

Wär es zuviel verlangt, Events für Samplerate, Bitrate und Type zu erzeugen wie bei Squeezelite-X. Liegt alles vor in den Songinfo-Tags -T, -r, -o. Year -y wär auch interessant. 
https://forums.slimdevices.com/showthread.php?113499-Squeezelite-How-to-get-the-sample-rate-of-the-stream&p=1000406&viewfull=1#post1000406

ChrisD

Hallo,

@Martin: Vielen Dank für die Tests, ich habe die Version ohne Logausgaben eingecheckt.

Verschiedene Events können gehäuft auftreten, je nachdem was der Server alles zurückschickt. Wenn ein Player eingeschaltet wird kann z.B. 'power on' oder 'prefset power on' oder beides kommen. Das Modul aktualisiert daraufhin die Readings, zu denen dann u.a. auch willSleepIn gehört. Ich könnte dies mit einem internen event-on-change-reading unterbinden, denke aber dass der User selbst entscheiden sollte ob er das offizielle event-on-change-reading nutzen möchte. Ich denke auch nicht dass ein internes Filtern viel einsparen würde. Es gibt sicher noch Optimierungspotential bei den Abfragen, bis jetzt war die Strategie 'lieber etwas zu oft abfragen als den falschen Zustand anzeigen'.

@Palatin8: Es ist im Prinzip möglich weitere Readings aus den Songinfos zu erzeugen. Dies ist etwas aufwendiger da die 'songinfo'-Auswertung im Moment für ftui verwendet wird. Ich möchte diese Readings aber nicht automatisch erstellen, ein Vorschlag wäre ein zusätzliches Attribut, z.B. songinfoReadings in dem man die gewünschten Tags vorgeben kann. In deinem Fall wäre das 'Troy'.

Grüße,

ChrisD

scooty

Hallo ChrisD,

danke für deine kontinuierliche Weiterentwicklung der Module.

Nur eine kleine Auffälligkeit seit heute durchgeführtem Update aus
https://raw.githubusercontent.com/ChrisD70/FHEM-Modules/master/autoupdate/sb/controls_squeezebox.txt

Die Sprechgeschwindigkeit bei "talk/sayText"-Ausgabe (Attribut ttslink=Google) ist sehr langsam geworden, als ob die Dame ein paar Schlaftabletten intus hat.
Hast Du da etwas geändert oder kann ich die Sprechgeschwindigkeit irgendwie beeinflussen (=wieder schneller machen)?

Vielen Dank und Grüße,
Andreas
Fhem auf Gigabyte Brix
CUL V3 HM / CUL V3 MAX / MaxCube aFW Homematic&MAX / ZWave.me ZME_UZB1 / SDuino 433 / Velux KLF200
Homematic / MAX / Logitech Hub / ZWave / Wifi LED / div. 433 Temperatursensoren / pywws WH10880 / IO Homecontrol

bismosa

Zitat von: scooty am 25 Mai 2021, 14:24:15
Die Sprechgeschwindigkeit bei "talk/sayText"-Ausgabe (Attribut ttslink=Google) ist sehr langsam geworden, als ob die Dame ein paar Schlaftabletten intus hat.
Hast Du da etwas geändert oder kann ich die Sprechgeschwindigkeit irgendwie beeinflussen (=wieder schneller machen)?

Hallo!

Das beobachte ich auch schon seit ein paar Tagen. Jedoch ohne ein Update ausgeführt zu haben.
Google scheint hier irgendwas verändert zu haben.  :(
Wenn ich im Browser
http://translate.google.com/translate_tts?ie=UTF-8&tl=de&q=Mein%20Text&client=tw-ob
eingebe erhalte die gleiche (ätzende) Stimme. Klingt so, als hätte google keine Lust mehr auf Home-Office.

Wenn ich es im inkognito-Modus von Chrome probiere, habe ich wieder die altbekannte Stimme.
Könnte mir vorstellen, dass goggle irgendwie merkt, dass mehr Text übersetzt wird und das so unterbinden möchte ???

Wäre auch an einer Lösung interessiert.

Gruß
Bismosa
1x nanoCUL 433MHz (SlowRF Intertechno) für Fenstersensoren
1x nanoCUL 868Mhz für MAX (9x HT 1xWT)
1x ZigBee CUL
Weiteres: Squeezebox server, Kindle Display, ESP8266, Löterfahrung, ...

Martin Fischer

Zitat von: ChrisD am 24 Mai 2021, 17:49:06
@Martin: Vielen Dank für die Tests, ich habe die Version ohne Logausgaben eingecheckt.

Danke dafür! Dann werde ich das bei Zeiten mal ausgiebig testen und einbauen.

Viele Grüße
Martin
--
Admin, Developer, Gründungsmitglied des FHEM e.V.

ChrisD

Hallo,

Die Google-Sprachausgabe ist bei mir auch manchmal 'falsch'. Reproduzieren lässt es sich aber nicht und es passiert sowohl im Browser als auch über den LMS.

Im Modul hat sich diesbezüglich in letzter Zeit nichts geändert.

Eine Alternative ist VoiceRSS. Dies ist aber auf 350 Abfragen/Tag beschränkt.

Grüße,

ChrisD

ChrisD

Hallo,

Ich habe das Player-Modul um das Attribut additionalSonginfos erweitert. Darüber werden zusätzliche Readings mit den gewünschten Songinfos angelegt.

Im Attribut müssen die in der CLI-Dokumentation angegebenen Kürzel verwendet werden, aktuell sind folgende implementiert:

C compilation 1 if the album this track belongs to is a compilation
f filesize Song file length in bytes. Only if known.
g genre Genre name. Only if known.
i disc Disc number. Only if known.
I samplesize Song sample size (in bits)
j coverart 1 if coverart is available for this song. Not listed otherwise.
k comment Song comments, if any.
m bpm Beats per minute. Only if known.
n modificationTime Date and time song file was last changed on disk.
N remote_title Title of the internet radio station.
o type Content type. Only if known.
D addedTime Date and time song file was first added to the database.
U lastUpdated Date and time song file was last updated in the database.
q disccount Number of discs. Only if known.
r bitrate Song bitrate. Only if known.
R rating Song rating, if known and greater than 0.
O playcount Song play count.
t tracknum Track number. Only if known.
T samplerate Song sample rate (in KHz)
v tagversion Version of tag information in song file. Only if known.
w lyrics Lyrics. Only if known.
x remote If 1, this is a remote track.
X album_replay_gain Replay gain of the album (in dB), if any
y year Song year. Only if known.
Y replay_gain Replay gain (in dB), if any


Mit attr meinPlayer additionalSonginfos yTkwerden z.B. die 3 Readings siComment, siYear und siSamplerate erzeugt. Wenn das Attribut gelöscht wird, werden auch die Readings gelöscht.

Grüße,

ChrisD

freddykr

Hallo,

ich habe gerade mal angefangen mich mit der Medialist zu beschäftigen und da ist mir aufgefallen, dass bei Playlisten bei "Track" immer "0" steht. Müsste da nicht eigentlich eine fortlaufende Zahl rein?
Somit bekomme ich im FTUI bei der Medialiste nicht die Tracknummer - er spricht immer "0" an.
Wenn ich mir ein Listing selbst baue mit fortlaufender Zahl, dann geht es.

Versionen:
98_SB_PLAYER.pm               113 2021-06-09 21:58:00Z CD/MM/Matthew/Heppel
97_SB_SERVER.pm                56 2021-04-29 19:17:00Z CD


Auszug aus dem SB_Player-Device (wird sonst zu lang - im Anhang das komplette list):
2021-08-05 09:35:55   ftuiMedialist   [{"Artist":"MATCHBOX","Title":"Midnite Dynamos","Album":"Platz 26","Time":"181","File":"file:///mnt/nas/Music/1980%20Top%20100/26%20-%20MATCHBOX%20-%20Midnite%20Dynamos.mp3","Track":"0","Cover":"http://192.168.178.56:9000/0"},{"Artist":"Roland Kaiser","Title":"Santa Maria","Album":"Platz 15","Time":"243","File":"file:///mnt/nas/Music/1980%20Top%20100/15%20-%20Roland%20Kaiser%20-%20Santa%20Maria.mp3","Track":"0","Cover":"http://192.168.178.56:9000/0"},{"Artist":"Olivia Newton John & ELO","Title":"Xanadu","Album":"Platz 10","Time":"206","File":"file:///mnt/nas/Music/1980%20Top%20100/10%20-%20Olivia%20Newton%20John%20&%20ELO%20-%20Xanadu.mp3","Track":"0","Cover":"http://192.168.178.56:9000/0"},{"Artist":"Saragossa Band","Title":"Zabadak","Album":"Platz 23","Time":"235","File":"file:///mnt/nas/Music/1980%20Top%20100/23%20-%20Saragossa%20Band%20-%20Zabadak.mp3","Track":"0","Cover":"http://192.168.178.56:9000/0"},{"Artist":"Lipps Inc","Title":"Funkytown","Album":"Platz 3","Time":"247","File":"file:///mnt/nas/Music/1980%20Top%20100/03%20-%20Lipps%20Inc%20-%20Funkytown.mp3","Track":"0","Cover":"http://192.168.178.56:9000/0"}]

Das Thema habe ich bei selbst erstellten Playlisten (via LMS erstellt) und bei Spotify-Playlisten.

Viele Grüße,
Danilo

ChrisD

Hallo,

Die Track-Information kommt vom Server. Sie ist optional und kann bei Alben die Reihenfolge der Tracks auf einer CD enthalten:

{"Artist":"Méav","Title":"She Moved Through the Fair","Album":"A Celtic Journey","Time":"248","File":"file://...","Track":"1","Cover":"http://..."},
{"Artist":"Méav","Title":"The Last Rose of Summer","Album":"A Celtic Journey","Time":"284","File":"file://...","Track":"2","Cover":"http://..."},
{"Artist":"Méav","Title":"Down by the Salley Gardens","Album":"A Celtic Journey","Time":"235","File":"file://...","Track":"3","Cover":"http://..."},
{"Artist":"Méav","Title":"I Dreamt I Dwelt in Marble Halls","Album":"A Celtic Journey","Time":"230","File":"file://...","Track":"4","Cover":"http://..."},
{"Artist":"Méav","Title":"Celtic Prayer","Album":"A Celtic Journey","Time":"258","File":"file://...","Track":"5","Cover":"http://..."},
{"Artist":"Méav","Title":"Suantrai","Album":"A Celtic Journey","Time":"302","File":"file://...","Track":"6","Cover":"http://..."},
{"Artist":"Méav","Title":"Danny Boy","Album":"A Celtic Journey","Time":"201","File":"file://...","Track":"7","Cover":"http://..."},
{"Artist":"Méav","Title":"Greensleeves","Album":"A Celtic Journey","Time":"198","File":"file://...","Track":"8","Cover":"http://..."},
{"Artist":"Méav","Title":"Dante's Prayer","Album":"A Celtic Journey","Time":"336","File":"file://...","Track":"9","Cover":"http://..."},
{"Artist":"Méav","Title":"Goltrai","Album":"A Celtic Journey","Time":"232","File":"file://...","Track":"10","Cover":"http://..."},
{"Artist":"Méav","Title":"Silent Night","Album":"A Celtic Journey","Time":"220","File":"file://...","Track":"11","Cover":"http://..."}


Mit der Tracknummer vom Server kann FTUI nicht viel machen da sie nicht eindeutig ist. Sie ist aber für die Bedienung in FTUI eigentlich auch nicht nötig. Wie sieht die Konfiguration in FTUI aus ?

Grüße,

ChrisD


freddykr

Das sieht so aus:
<ftui-row>
        <ftui-column align-items="center" margin="1">
                <ftui-medialist [list]="PCP_Kueche:ftuiMedialist" [track]="PCP_Kueche:playlistCurrentTrack"
                      (track)="setreading PCP_Kueche playlistCurrentTrack"></ftui-medialist>
        </ftui-column>
</ftui-row>


Aber egal, was ich da eintrage, da kommt dann immer "setreading PCP_Kueche playlistCurrentTrack 0". Die "0" zieht er aus dem "Track-Eintrag", denn wenn ich mir das Reading manuell mit gefüllten Werten setze, dann kommt die Tracknummer auch in den Befehl rein. Und dann gehts auch.
Vielleicht liegts dann aber doch am FTUI3.
Viele Grüße,
Danilo

ChrisD

Hallo,

Ich habe mir den Code von FTUI3 angesehen. Leider wurde gegenüber der Version 2 die Zuordnung der Tracknummern geändert so dass es nicht mehr funktionieren kann.

Wenn du in der Datei components/medialist/medialist.component.js die Zeile
elemItem.track = item.Track || index + 1;
durch
elemItem.track = index + 1;
ersetzt und deine Definition so änderst
<ftui-row>
        <ftui-column align-items="center" margin="1">
                <ftui-medialist [list]="PCP_Kueche:ftuiMedialist" [track]="PCP_Kueche:playlistCurrentTrack"
                      (track)="set PCP_Kueche track"></ftui-medialist>
        </ftui-column>
</ftui-row>

sollte es funktionieren.

Grüsse,

ChrisD