Peppy WebRadio

Heute ist Stammtischzeit:
Jeden Donnerstag 20:30 Uhr hier im Chat.
Wer Lust hat, kann sich gerne beteiligen. ;)
  • Der folgende Code installiert alle erforderlichen Bibliotheken über die Hogarth Edition, verschiebt den Ordner Peppy in die Datei Peppy.bak und installiert den neuesten Player-Code aus dem GitHub:

    Code
    pip3 install pexpect
    pip3 install Pillow
    pip3 install rpi-backlight
    pip3 uninstall tornado==4.5.3
    pip3 install tornado
    mv Peppy Peppy.bak
    git clone https://github.com/project-owner/Peppy.git

    Bitte versuchen Sie, ob es hilft.

    Beste Grüße

    ------------------------------------------------------------------

    The following code will install all required libraries on top of the Hogarth Edition, move Peppy folder into Peppy.bak and install the latest player code from the GitHub:

    Please try and see if it helps.

    Best regards

    Peppy Player Entwickler. Ehemaliger DESY (Hamburg) Entwickler :)

  • Hallo,

    meine Eltern haben auch einen Player mit nem PI 3B, der vom einen auf den anderen Tag nicht mehr startet. Die Fehlermeldung ist im Bild zu sehen. Wie lässt sich der Fehler beheben? Ich habe das Gefühl, dass etwas mit der config nicht mehr stimmt...

    Vielen Dank!

    Grüße

    Mattes

  • Hallo kle,

    es läuft aktuell noch die Hogarth Edition vom 23.02.2020 drauf. Vorher wurde der PI normal heruntergefahren (wie schon seit Monaten auch). Die Current.txt muss ich noch organisieren, ich habe aktuell leider keinen physischen Zugriff aufs Gerät.

    Grüße

    Mattes

  • Hallo Mattes93,

    Es sieht so aus, als ob die Datei /home/pi/Peppy/current.txt beschädigt wurde. Diese Datei enthält den aktuellen Player-Status. Die Fehlermeldung, dass der Abschnitt 'current' nicht gefunden werden kann:

    https://github.com/project-owner/…/current.txt#L1

    Dies kann passieren, wenn der Strom abgeschaltet wurde, während der Player Daten in dieser Datei speicherte. Um dies in Zukunft zu verhindern, warten Sie nach zweimaligem Klicken auf die Ausschalttaste in der Benutzeroberfläche etwa 5 Sekunden, bevor Sie den Strom abschalten. Eine andere Möglichkeit besteht darin, das 'Power Management System' zu implementieren, das alles automatisch erledigt:

    https://github.com/project-owner/Peppy.doc/wiki/Power-OnOff

    Um das Problem zu beheben, kopieren Sie einfach den Inhalt dieser Datei:

    https://github.com/project-owner/…/current.txt#L1

    zur Datei /home/pi/Peppy/current.txt

    Ich werde versuchen, einen besseren Weg zu implementieren, mit dieser Situation umzugehen, indem ich eine separate Kopie der Standarddatei current.txt behalte und die beschädigte Datei ersetze, wenn es diese Art von Ausnahme gibt.

    Mit freundlichen Grüßen

    -------------------------------------------------------------------------

    Hi Mattes93,

    It looks like the file /home/pi/Peppy/current.txt was corrupted. This file keeps the current player's state. The error message saying that the section 'current' cannot be found:

    https://github.com/project-owner/…/current.txt#L1

    This can happen if the power was switched off when the player was saving data in that file. To prevent this in the future after clicking twice on the power off button in UI wait about 5 seconds before switching the power off. Another way is to implement the 'Power Management System' which will do everything automatically:

    https://github.com/project-owner/Peppy.doc/wiki/Power-OnOff

    To fix the issue just copy the content of this file:

    https://github.com/project-owner/…/current.txt#L1

    to the /home/pi/Peppy/current.txt

    I'll try to implement a better way to handle this situation by keeping a separate copy of the default file current.txt and replacing the corrupted file when there is this kind of exception.

    Best regards

    Peppy Player Entwickler. Ehemaliger DESY (Hamburg) Entwickler :)

  • Ich habe das Hogarth Disk-Image für den Waveshare 3.5" Touchscreen (Pi 3B+) installiert und bin den Schritten gefolgt, die ich im Beitrag #641 definiert habe. Ich habe keinen DAC oder Verstärker an den Pi angeschlossen und einen Aktivlautsprecher an den 3,5"-Audioausgangsanschluß angeschlossen. Der Player funktionierte einwandfrei (kein schwarzer Bildschirm) mit Ausnahme der Lautstärkeregelung. Ich ließ 'alsamixer' laufen und fand heraus, dass der Name des Steuergeräts 'PCM' lautet. Ich ersetzte den Standardnamen 'Kopfhörer' durch 'PCM' in der Datei /home/pi/Peppy/config.txt:

    https://github.com/project-owner/…config.txt#L151

    Danach begann der Lautstärkeregler zu arbeiten.

    Ich bin mir nicht sicher, was den schwarzen Bildschirm verursachen kann. Hatten Sie spezielle Einstellungen für Ihre Anzeige in der config.txt? Wenn ja, müssen Sie die gleichen Einstellungen in der neuen Datei config.txt definieren. Wenn Sie die Sicherungskopie Peppy.bak erstellt haben, können Sie diese Dateien vergleichen:

    diff Peppy/config.txt http://Peppy.bak/config.txt

    Mit freundlichen Grüßen

    -------------------------------------------------------------------------------

    I have installed Hogarth disk image for the Waveshare 3.5" (Pi 3B+) touchscreen and followed the steps which I defined in the post #641. I didn't connect any DAC or Amp to the Pi and connected powered speaker to the 3.5" audio output connector. The player worked fine (no black screen) except volume control. I ran 'alsamixer' and found that control device name is 'PCM'. I replaced the default 'Headphone' by 'PCM' in the /home/pi/Peppy/config.txt:

    https://github.com/project-owner/…config.txt#L151

    After that the volume control started working.

    I'm not sure what can cause the black screen. Did you have any special settings for your display in config.txt? If so you need to define the same settings in the new config.txt file. If you made the backup copy Peppy.bak you can compare those files:

    diff Peppy/config.txt http://Peppy.bak/config.txt

    Best regards

    Peppy Player Entwickler. Ehemaliger DESY (Hamburg) Entwickler :)

  • Welchen Namen sehen Sie in dem 'Alsamixer'? Wenn Sie z.B. 'Master' sehen, müssen Sie ihn in der config.txt definieren:

    [volume.control]

    type = amixer

    amixer.scale = linear

    amixer.control = Master

    Mit freundlichen Grüßen

    --------------------------------------------------------------------

    Which name do you see in the 'alsamixer'? If you see for example 'Master' you need to define it in the config.txt:

    [volume.control]

    type = amixer

    amixer.scale = linear

    amixer.control = Master

    Best regards

    Peppy Player Entwickler. Ehemaliger DESY (Hamburg) Entwickler :)

  • Es gibt nicht so viele Punkte zu überprüfen.

    Bitte zeigen Sie die Ausgabe der folgenden Befehle:

    aplay -l

    aplay -L

    alsamixer

    Haben Sie die Datei /home/pi/.asoundrc? Sie können das überprüfen, indem Sie den Befehl im Ordner /home/pi ausführen:

    ls -la

    Zeigen Sie den Dateiinhalt an, wenn Sie diese Datei haben. Wenn Sie sie nicht haben, können Sie sie durch Ausführen des folgenden Befehls aus dem Ordner /home/pi abrufen:

    wget https://raw.githubusercontent.com/project-owner/…onfig/.asoundrc

    Haben Sie diese Einstellungen in der Datei /home/pi/Peppy/players.txt?

    [vlc.linux]

    server.start.command = --aout=alsa --alsa-audio-device=default --verbose=-1

    Mit freundlichen Grüßen

    ---------------------------------------------------------------------------------------

    There are not so many points to check.

    Please show the output from the following commands:

    aplay -l

    aplay -L

    alsamixer

    Do you have the file /home/pi/.asoundrc? You can check that by running the command in the folder /home/pi:

    ls -la

    Show the file content if you have that file. If you don't have it can you get it by running the following command from the folder /home/pi:

    wget https://raw.githubusercontent.com/project-owner/…onfig/.asoundrc

    Do you have these settings in the file /home/pi/Peppy/players.txt?

    [vlc.linux]

    server.start.command = --aout=alsa --alsa-audio-device=default --verbose=-1

    Best regards

    Peppy Player Entwickler. Ehemaliger DESY (Hamburg) Entwickler :)

  • Hallo Sp3kul4tius,

    Kannst du einstellungen von amixer bitte mal posten, einfach im terminal amixer eingeben.

    Diese sollte in etwa wie diese aussehen (in meinem Fall hifiberry) siehe Anhang.

    eventuell ist dein digitale Audio noch auf mute.

    Alex

    --------------------------

    Hello Sp3kul4tius,

    Could you post the settings of amixer

    "type in terminal amixer"

    The screen should look similar to my (in my case it's hifiberry) see attached.

    Maybe the digital output is set to mute.

    Alex

  • So sieht das alles aus.

    /home/pi/.asoundrc nicht vorhanden


    aplay -l

    **** List of PLAYBACK Hardware Devices ****

    card 0: sndrpijustboomd [snd_rpi_justboom_dac], device 0: JustBoom DAC HiFi pcm512x-hifi-0 [JustBoom DAC HiFi pcm512x-hifi-0]

    Subdevices: 0/1

    Subdevice #0: subdevice #0

    aplay -L

    null

    Discard all samples (playback) or generate zero samples (capture)

    default

    plugequal

    equal

    sysdefault:CARD=sndrpijustboomd

    snd_rpi_justboom_dac, JustBoom DAC HiFi pcm512x-hifi-0

    Default Audio Device

    dmix:CARD=sndrpijustboomd,DEV=0

    snd_rpi_justboom_dac, JustBoom DAC HiFi pcm512x-hifi-0

    Direct sample mixing device

    dsnoop:CARD=sndrpijustboomd,DEV=0

    snd_rpi_justboom_dac, JustBoom DAC HiFi pcm512x-hifi-0

    Direct sample snooping device

    hw:CARD=sndrpijustboomd,DEV=0

    snd_rpi_justboom_dac, JustBoom DAC HiFi pcm512x-hifi-0

    Direct hardware device without any conversions

    plughw:CARD=sndrpijustboomd,DEV=0

    snd_rpi_justboom_dac, JustBoom DAC HiFi pcm512x-hifi-0

    Hardware device with all software conversions

    Amixer

    amixer

    Simple mixer control 'DSP Program',0

    Capabilities: enum

    Items: 'FIR interpolation with de-emphasis' 'Low latency IIR with de-emphasis' 'High attenuation with de-emphasis' 'Fixed process flow' 'Ringing-less low latency FIR'

    Item0: 'FIR interpolation with de-emphasis'

    Simple mixer control 'Analogue',0

    Capabilities: pvolume

    Playback channels: Front Left - Front Right

    Limits: Playback 0 - 1

    Mono:

    Front Left: Playback 1 [100%] [0.00dB]

    Front Right: Playback 1 [100%] [0.00dB]

    Simple mixer control 'Analogue Playback Boost',0

    Capabilities: volume

    Playback channels: Front Left - Front Right

    Capture channels: Front Left - Front Right

    Limits: 0 - 1

    Front Left: 0 [0%] [0.00dB]

    Front Right: 0 [0%] [0.00dB]

    Simple mixer control 'Auto Mute',0

    Capabilities: pswitch

    Playback channels: Front Left - Front Right

    Mono:

    Front Left: Playback [on]

    Front Right: Playback [on]

    Simple mixer control 'Auto Mute Mono',0

    Capabilities: pswitch pswitch-joined

    Playback channels: Mono

    Mono: Playback [on]

    Simple mixer control 'Auto Mute Time Left',0

    Capabilities: enum

    Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s' '10.66s'

    Item0: '21ms'

    Simple mixer control 'Auto Mute Time Right',0

    Capabilities: enum

    Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s' '10.66s'

    Item0: '21ms'

    Simple mixer control 'Clock Missing Period',0

    Capabilities: enum

    Items: '1s' '2s' '3s' '4s' '5s' '6s' '7s' '8s'

    Item0: '1s'

    Simple mixer control 'Deemphasis',0

    Capabilities: pswitch pswitch-joined

    Playback channels: Mono

    Mono: Playback [on]

    Simple mixer control 'Digital',0

    Capabilities: pvolume pswitch

    Playback channels: Front Left - Front Right

    Limits: Playback 0 - 207

    Mono:

    Front Left: Playback 108 [52%] [-49.50dB] [on]

    Front Right: Playback 108 [52%] [-49.50dB] [on]

    Simple mixer control 'Max Overclock DAC',0

    Capabilities: volume volume-joined

    Playback channels: Mono

    Capture channels: Mono

    Limits: 0 - 40

    Mono: 0 [0%]

    Simple mixer control 'Max Overclock DSP',0

    Capabilities: volume volume-joined

    Playback channels: Mono

    Capture channels: Mono

    Limits: 0 - 40

    Mono: 0 [0%]

    Simple mixer control 'Max Overclock PLL',0

    Capabilities: volume volume-joined

    Playback channels: Mono

    Capture channels: Mono

    Limits: 0 - 20

    Mono: 0 [0%]

    Simple mixer control 'Volume Ramp Down Emergency Rate',0

    Capabilities: enum

    Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'

    Item0: '1 sample/update'

    Simple mixer control 'Volume Ramp Down Emergency Step',0

    Capabilities: enum

    Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'

    Item0: '4dB/step'

    Simple mixer control 'Volume Ramp Down Rate',0

    Capabilities: enum

    Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'

    Item0: '1 sample/update'

    Simple mixer control 'Volume Ramp Down Step',0

    Capabilities: enum

    Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'

    Item0: '1dB/step'

    Simple mixer control 'Volume Ramp Up Rate',0

    Capabilities: enum

    Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'

    Item0: '1 sample/update'

    Simple mixer control 'Volume Ramp Up Step',0

    Capabilities: enum

    Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'

    Item0: '1dB/step'

  • Hallo Sp3kul4tius,

    Da auf deinem Bild der Digital Ausgang nicht zu sehen ist gib bitte im Terminal folgendes ein

    Code
    amixer scontrols | grep -oE "'.*'" | awk -F\' \ '{print "amixer -c 0 set \""$2"\" unmute 100"}' | sh

    Dieses setzt alle Ausgänge auf 100%

    Alex

    --------------------

    Hello Sp3kul4tius,

    as I can't see the digital output on the picture,

    please type following in terminal

    Code
    amixer scontrols | grep -oE "'.*'" | awk -F\' \ '{print "amixer -c 0 set \""$2"\" unmute 100"}' | sh

    this will set all output to 100%

    Alex

  • peppy.player

    Hallo,

    Es geht um die Kombination Equalizer + Bluetooth-Lautsprecher:

    In Deinem Peppy Player Wiki Bluetooth Devices fehlt am Schluß die zugehörige Konfiguration in Datei players.txt

    Code: ~/Peppy/players.txt # Ausschnitt
    [vlc.linux]
    server.start.command = --aout=alsa --alsa-audio-device=default --verbose=-1

    sonst fehlt der Equalizer.

    Ich würde in der Konfigurationsdatei Peppy/players.txt immer das default device verwenden. Dann muß man nur die alsa-Konfiguration (~/.asoundrc) ändern.

    So macht es der Desktop/GUI auch. Der Desktop generiert bei der Auswahl des Audio Ausgabegerätes die Datei ~/.asoundrc

    Beispiele für buster ohne Equalizer:

    Sound über 3.5mm Klinkenstrecker

    Sound über Bluetooth-Lautsprecher

  • Hallo,


    #671

    https://raw.githubusercontent.com/project-owner/…onfig/.asoundrc

    -bash: https://raw.githubusercontent.com/project-owner/…nfig/.asoundrc: No such file or d irectory

    Die Einstellung in /home/pi/Peppy/players.txt ist vorhanden

    server.start.command = --aout=alsa --alsa-audio-device=default --verbose=-1


    #674 habe ich gemacht

    unter Volume control noch von Master auf snd_rpi_justboom_dac geändert (beides probiert)

    Die Lautstärke bleibt aber auf den manuell festgelegten Wert mit dem Alsamixer

  • kle,

    Vielen Dank für Ihren Rat. Es ist sinnvoll, players.txt unangetastet zu lassen. Ich werde versuchen, das in der nächsten Version zu implementieren.

    Sp3kul4tius,

    Es ist einfacher, die Datei .asoundrc in Ihrem Heimatordner /home/pi als im Ordner /etc zu ändern. Ich würde empfehlen, diese Datei durch Ausführen des folgenden Befehls im Ordner /home/pi zu erhalten:

    Code
    wget https://raw.githubusercontent.com/project-owner/Peppy.doc/master/files/alsa-config/.asoundrc

    Sie wird diese Datei herunterladen:

    https://github.com/project-owner/…onfig/.asoundrc

    Wenn Sie die Datei /home/pi/.asoundrc nicht verwenden, zeigen Sie bitte den Inhalt der Datei /etc/asound.conf

    Wie AlexAmend erwähnte, zeigt Ihr Screenshot nicht alle Bedienelemente des Amixers. Sie sollten wahrscheinlich 'Digital' auf der rechten Seite haben, die nicht sichtbar ist.

    Die möglichen Werte für den Parameter 'amixer.control' in der config.txt, die ich bisher gesehen habe, können sein: Kopfhörer (Standard für On-Board-Audio in Constable), PCM (wird von On-Board-Audio in Hogarth verwendet), Digital (wird für HiFiBerry-Produkte verwendet). Wahrscheinlicher ist es, daß Sie 'Digital' brauchen, wie AlexAmend erwähnte.

    Mit freundlichen Grüßen

    -----------------------------------------------------------------------------------------------------

    kle,

    Thank you for the advice. It makes sense to keep players.txt untouched. I'll try to implement that in the next release.

    Sp3kul4tius,

    It's easier to modify the file .asoundrc in your home folder /home/pi than in the /etc folder. I'd recommend to get this file by running the following command in the folder /home/pi:

    wget https://raw.githubusercontent.com/project-owner/…onfig/.asoundrc

    It will download this file:

    https://github.com/project-owner/…onfig/.asoundrc

    If you don't use /home/pi/.asoundrc file please show the content of the /etc/asound.conf

    As AlexAmend mentioned, your screenshot doesn't show all amixer controls. You should probably have 'Digital' on the right side which is not visible.

    The possible values for the 'amixer.control' parameter in the config.txt which I saw so far can be: Headphone (default for on-board audio in Constable), PCM (used by on-board audio in Hogarth), Digital (used for HiFiBerry products). More likely you need 'Digital' as AlexAmend mentioned.

    Best regards

    Peppy Player Entwickler. Ehemaliger DESY (Hamburg) Entwickler :)

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!