Peppy WebRadio

L I V E Stammtisch ab 20:30 Uhr im Chat
  • Also wäre die Headless Installation sinnvoller? Okay, dann setze ich es nochmal neu auf. Hatte nämlich wirklich schon 7,9er probiert, wie auch die 5er, nur irgendwie hab ich eh nicht verstanden, was ich da mache, weshalb ich quasi beides gemacht hatte, zwischendurch neben dem Splash Screen auch die Konsole gesehen, aber mehr dann nicht. Ich probiere es einfach noch mal neu aus.

  • Okay, 24h später und der Bildschirm ist immer noch schwarz, obwohl ich mich voll und ganz an die Waveshare 7.9 Anleitung gehalten habe.
    Einzige was ich geänder habe, ist natürlich

    Code
    max_usb_current=1
    hdmi_force_hotplug=1 
    config_hdmi_boost=10
    hdmi_group=2 
    hdmi_mode=87 
    hdmi_cvt 1024 600 60 6 0 0 0

    in der /boot/config.txt.

    Beim Speaker Test

    Code
    cp .asoundrc-equal-peppyalsa .asoundrc
    speaker-test -t wav

    kam übrigens nix (will es später auch eigentlich via Bluetooth einbinden), aber bis ich den auskommentierten Player wieder gestartet hatte, habe ich wenigstens noch eine Commandozeile auf dem Bildschirm gehabt, jetzt nur noch schwarz.
    Allgemein ist die Installation echt ziemlich lang...

  • Also wäre die Headless Installation sinnvoller?

    nein, nimm das Diskimage hokusai-waveshare.7.9.zip, da ist alles schon gemacht.

    Dann änderst Du nur die 6 Zeilen in der /boot/config.txt

    Vergiss nicht die Auflösung auch in ~/Peppy/config.txt

    width = 1024

    height = 600

    Du hast den hdmi-Stecker (an Raspi-HDMI) und den Stecker für Touch (an Raspi-USB) angesteckt?

    Beim Speaker Test

    Du weißt schon, daß der Sound über die 3.5mm-Klinkenbuchse geht (plughw:0,0 in .asoundrc)?

    peppyalsa würde ich erstmal weglassen, so:

    cp .asoundrc-equal .asoundrc

    Edit: es gibt zwei 3.5mm-Klinkenbuchsen, eine am Raspi und eine am HDMI-Touchdisplay.

    plughw:0,0 meint die am Raspi

    speaker-test -t wav

    mit alsamixer kannst Du die Lautstärke einstellen

    Einmal editiert, zuletzt von kle (23. Februar 2021 um 22:47)

  • nein, nimm das Diskimage hokusai-waveshare.7.9.zip, da ist alles schon gemacht.

    Headless + Anleitung sollte doch trotzdem zu den selben Ergebnis kommen?

    Dann änderst Du nur die 6 Zeilen in der /boot/config.txt

    Vergiss nicht die Auflösung auch in ~/Peppy/config.txt

    width = 1024

    height = 600

    Du hast den hdmi-Stecker (an Raspi-HDMI) und den Stecker für Touch (an Raspi-USB) angesteckt?

    Jop, genau das habe ich getan. Touch hat ja funktioniert, Bild in der Konsole auch...

    Du weißt schon, daß der Sound über die 3.5mm-Klinkenbuchse geht (hw:0,0 in .asoundrc)?

    peppyalsa würde ich erstmal weglassen, so:

    cp .asoundrc-equal .asoundrc

    speaker-test -t wav

    mit alsamixer kannst Du die Lautstärke einstellen

    Ich möchte eigentlich den Player endlich mal zum Laufen bringen. Die Ausgabe will ich definitiv aber später NICHT über Klinke regeln, sondern via Bluetooth.

  • peppy.player please have a look at the issue starting with post #800.

    you see the splash screen during boot. than the screen is black.

    The right picture of post #802 identifies the Display.

    It's a waveshare 7 inch HDMI LCD(H) display with capacitive touch via USB, resolution is 1024x600.

    In post #805  MasterPhW tried die Waveshare 7.9 Anleitung and reported "Bildschirm ist immer noch schwarz"

    I have no idea and no HDMI Display to test

    Regards, kle

  • Hallo,

    ich glaube, Sie haben diese Anzeige:

    https://www.waveshare.com/wiki/7inch_HDMI_LCD_(H)

    Ich gehe davon aus, dass Sie die /boot/config.txt geändert haben:

    max_usb_current=1

    hdmi_force_hotplug=1

    config_hdmi_boost=10

    hdmi_group=2

    hdmi_mode=87

    hdmi_cvt 1024 600 60 6 0 0 0

    Und diese Zeile auskommentiert oder entfernt:

    dtoverlay=vc4-fkms-V3D

    Wenn Sie alle diese Änderungen vorgenommen haben, stellen Sie bitte sicher, dass die Player-Startzeile:

    su pi -c 'cd /home/pi/Peppy; openvt -s -- python3 peppy.py'

    in der Datei /etc/rc.local steht

    steht und dass der Player läuft (in der Ausgabe sollte python process zu sehen sein):

    ps -elf | grep python

    Bitte lassen Sie mich das Ergebnis wissen.

    Mit freundlichen Grüßen

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

    Hi,

    I believe you have this display:

    https://www.waveshare.com/wiki/7inch_HDMI_LCD_(H)

    I assume that you changed the /boot/config.txt:

    max_usb_current=1

    hdmi_force_hotplug=1

    config_hdmi_boost=10

    hdmi_group=2

    hdmi_mode=87

    hdmi_cvt 1024 600 60 6 0 0 0

    And commented out or removed this line:

    dtoverlay=vc4-fkms-V3D

    If you made all these changes please make sure that the player start line:

    su pi -c 'cd /home/pi/Peppy; openvt -s -- python3 peppy.py'

    is in the file /etc/rc.local

    and that the player is running (you should see python process in the output):

    ps -elf | grep python

    Please let me know the result.

    Best regards

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

    Einmal editiert, zuletzt von peppy.player (24. Februar 2021 um 03:48)

  • Habe mit

    Code
    sudo nano /boot/config.txt

    folgende Parameter ans Ende gesetzt:

    Code
    max_usb_current=1 hdmi_force_hotplug=1 config_hdmi_boost=10 hdmi_group=2 hdmi_mode=87 hdmi_cvt 1024 600 60 6 0 0 0

    und weil es ein bisschen schneller gehen soll habe ich noch

    Code
    default. arm_freq=1200

    drin, was man jetzt nicht sieht.
    Sollte ja eigentlich keinerlei Probleme machen.

    Code
    dtoverlay=vc4-fkms-V3D

    Habe ich drin gelassen, weil ich ja einen

    nutze.
    Hier der nano screen:

    Nun zurück zur Player-Startzeile:

    Code
    sudo nano /etc/rc.local

    ist natürlich nicht mehr auskommentiert, die Raute ist entfernt, wie man hier sieht:


    und

    Code
    ps -elf | grep python

    ergibt

    Bildschirm ist aber schwarz. Weiß mir grad echt nicht zu helfen.

  • Wie lautet die Ausgabe dieses Befehls?

    ls /dev/fb*

    Haben Sie versucht, den Kalibrierungsbefehl entweder mit fb0 oder fb1 auszuführen, je nach der Ausgabe des vorherigen Befehls?

    sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate

    Was war das Ergebnis?

    Mit freundlichen Grüßen

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

    What is the output from this command:

    ls /dev/fb*

    Did you try to run the calibration command using either fb0 or fb1 depending on the output from the previous command?

    sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate

    What was the result?

    Best regards

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

  • OK, Sie haben also das Kalibrierungs-UI gesehen und dort Punkte berührt,

    und ich glaube, Sie haben diese Zeile in der Datei /home/pi/Peppy/config.txt:

    hdmi = True

    Sie können versuchen, die Dateiprotokollierung in der Datei /home/pi/Peppy/config.txt zu aktivieren:

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

    Prüfen Sie dann nach dem Neustart die Protokolldatei: /home/pi/Peppy/peppy.log

    Hoffentlich enthält sie einige zusätzliche Informationen.

    Haben Sie versucht, Web UI zu verwenden? Funktioniert es?

    Mit freundlichen Grüßen

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

    OK, so you have seen the calibration UI and touched points there,

    and I believe you have this line in the /home/pi/Peppy/config.txt:

    hdmi = True

    You can try to enable file logging in the /home/pi/Peppy/config.txt:

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

    Then after reboot check the log file: /home/pi/Peppy/peppy.log

    Hopefully it has some additional info.

    Have you tried to use Web UI? Is it working?

    Best regards

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

  • Meine config.txt sieht so aus:

    sollte soweit stimmen.
    Logging habe ich jetzt mal aktiviert und folgenden Inhalt in der peppy-log:

    Code
    [2021-02-24 09:13:10,971] {selector_events.py:53} DEBUG - Using selector: EpollSelector
    [2021-02-24 09:13:11,023] {webserver.py:110} DEBUG - Web Server Started
    [2021-02-24 09:13:11,305] {peppy.py:314} DEBUG - Audio Server Started

    Der Webserver ist unter Port 8000 erreichbar und wird angezeigt...

    Edit: ich habe weiterhin Fehlersuche gemacht.
    Mein Display zeigt mir mit

    Code
    /opt/vc/bin/tvservice -m DMT

    folgendes an:

    Deswegen bin ich noch mal in die Peppy/config.txt gegangen und habe die frame.rate auf 60 angepasst. Reboot.
    Kein Unterschied gebracht. Dann das gleiche noch mal mit der /boot/config.txt und dort auf mode 88 gegangen. Reboot. Ebenfalls kein Unterschied.
    Letzter Versuch war ein überstürztes

    Code
    sudo -i

    gefolgt von einem

    Code
    apt-get update && apt-get upgrade

    was mir jetzt anscheinend sogar komplett peppy zerhauen hat.

    Code
    ps -elf | grep python

    listet peppy zumindest nicht mehr auf:

    Im peppy log hat sich auch nicht viel getan, IP ist auch noch die selbe(n), kann nur nicht mehr connecten.

    Ich glaub, ich gebe auf und setze einfach auf Kodi + Radio Addon auf...
    Eigentlich overkill für ein 1024x600er Display mit Touch, aber ich finde einfach nicht meinen Fehler und bin mittlerweile (weil auch zu wenig in Linux drin) einfach überfragt.

    2 Mal editiert, zuletzt von MasterPhW (24. Februar 2021 um 14:18)

  • Hallo,

    Alle Einstellungen sehen gut aus. Wenn Sie den Kalibrierungsprozess abschließen können, sollte das Display normalerweise mit dem Player funktionieren. Leider bin ich mir nicht sicher, woran es liegen könnte. Leider kann ich nicht für alle Waveshare-Displays Disk-Images zur Verfügung stellen. Es gibt zu viele davon.

    Das ist lustig, der Hauptgrund, warum ich den Peppy Player erstellt habe, war, dass ich mit dem Radio-Add-on von Kodi nicht zufrieden war :)

    Mit freundlichen Grüßen

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

    Hi,

    All settings look OK. Usually if you can complete the calibration process the display should work with the player. I'm sorry to say that but I'm not sure what could be the issue. Unfortunately I cannot provide disk images for all Waveshare displays. There are too many of them.

    This is funny, the main reason why I created the Peppy Player was that I was not satisfied with Kodi's Radio add-on :)

    Best regards

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

  • MasterPhW

    eins fällt mir noch ein,

    kannst Du in der Datei ~/Peppy/config.txt die Variablen "mouse" und "touchscreen" suchen

    mit egrep "touchscreen|mouse" ~/Peppy/config.txt | grep -v events

    Du solltest touchscreen = True und mouse = True sehen.

    Ich erinnere mich touchscreen geändert zu haben, bin mir aber nicht sicher.

    peppy.player

    Code
    util/config.py:66:USE_TOUCHSCREEN = "touchscreen"
    util/config.py:632:        c[USE_TOUCHSCREEN] = config_file.getboolean(USAGE, USE_TOUCHSCREEN)
    util/config.py:1320:        if not self.config[USAGE][USE_TOUCHSCREEN] or self.config[USAGE][USE_HEADLESS] or not self.config[LINUX_PLATFORM]:
  • Hier ist ein weiteres Projekt, das auf dem Peppy Player basiert. Der Projektname ist 'Dietrich' nach 'DIgital TRansport'. Dies ist der alte deutsche Name, der bedeutet - 'Herrscher des Volkes' ;) .

    Das Gerät besteht aus:

    - Stromversorgung +12V 12,5A für externe Festplatten und für die Netzschalter-LED

    - Stromversorgung +5V 10A für den Raspberry Pi 4, USB-Hub und Display

    - Raspberry Pi 4. Ein USB2 ist mit dem Touchscreen verbunden. Ein weiterer USB2 angeschlossen an die Rückwand. Ein USB3, angeschlossen an den USB-Hub. Ein weiterer USB3, der mit der Rückwand verbunden ist. Ein LAN, das mit der Rückwand verbunden ist. Ein HDMI ist mit dem Display verbunden. Ein weiterer HDMI-Anschluss an der Rückwand.

    - USB3-Hub mit 8 Anschlüssen

    - Waveshare 7,9"-Touchscreen

    - 8 Relais-Modul zum Ein- und Ausschalten von 12V für externe Festplatten

    - MCP23017 Modul zur Steuerung der Relais über I2C

    - ULN2803 Senken-Treiber-Transistor-Array

    Das Gerät kann arbeiten als:

    - Audioplayer mit USB-Ausgang unter Verwendung angeschlossener Festplatten.

    - Audioplayer mit USB-Ausgang unter Verwendung eines daran angeschlossenen NAS.

    - Videoplayer mit HDMI-Ausgang.

    - Dient als NAS für angeschlossene externe Festplatten.

    - Streamer.

    Die Bilder wurden mit laufendem Peppy-Player auf dem Gerät aufgenommen (VU-Meter-Bildschirmschoner).

    Die Unterstützung für das Ein- und Ausschalten von Festplatten über die Benutzeroberfläche wird der Peppy Player Software in einer der nächsten Versionen hinzugefügt werden.

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

    Here is another project based on the Peppy Player. The project name is 'Dietrich' after 'DIgital TRansport. This is the ancient German name which means - 'Ruler of the people' ;) .

    The device consists of:

    - Power supply +12V 12.5A for external hard drives and for the power switch LED

    - Power Supply +5V 10A for the Raspberry Pi 4, USB Hub and display

    - Raspberry Pi 4. One USB2 connected to the touchscreen. Another USB2 connected to the back panel. One USB3 connected to the USB Hub. Another USB3 connected to the back panel. LAN connected to the back panel. One HDMI connected to the display. Another HDMI connected to the back panel.

    - USB3 Hub 8 port

    - Waveshare 7.9" touchscreen

    - 8 Relay Module to switch on/off 12V for external hard drives

    - MCP23017 module to control relays through I2C

    - ULN2803 sink driver transistor array

    The device can work as:

    - Audio player with USB output using hard drives connected to it.

    - Audio player with USB output using NAS mounted to it.

    - Video player with HDMI output.

    - Serve as a NAS for external hard drives connected to it.

    - Streamer.

    The pictures were taken with Peppy player running on device (VU Meter screensaver).

    The support for switching on/off hard drives from UI will be added to the Peppy Player software in one of the next releases.

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

  • I'm not sure if I have to write posts in English and/or German. I see both languages used, so let me start in English. As a Dutchman I have some knowledge of German, so if it's necessary I will use German.

    My first post here is about Peppy because I was inspired by this blog post. The main reason I want to have a device like this is that the analog cable radio will get terminated this year. I need an internet radio device that plays my favorite stations through my existing (and very old) hifi-stack.

    So I started this Raspberry project. (I have some experience with the Raspberry as I have a computer like that to control the kiln of my wife. But maybe I can write about that at a later time.)

    During the installation and use of the Peppy software I encountered many problems. Most of them I could overcome but there are two major problems I cannot resolve: 1. Volume control and 2. VU-meter both don't work.

    Getting the 3.5" (Wavefront clone from China) touch screen seemed impossible starting with the headless image of Peppy. Display yes but touch no. So I used the latest Raspbian (buster) and installed Peppy from scratch. With help of the forementioned blog post I got that to work.

    The volume control works when I set the type = player, but then the VU-meters become scambled. Volume part of my config.txt:

    Code
    [volume.control]
    type = amixer
    amixer.scale = linear
    amixer.control = Headphone

    Audio part in players.txt:

    Code
    [audio]
    player.name = vlc
    music.folder.linux = /home/pi/music
    music.folder.windows = C:\music

    .asoundrc:

    I am completely in the dark on how to activate the VU-meters. I installed them as mentioned in the Expert manual but they refuse to move the needle.

    I very much hope to get this nice micro-computer and a splendid Peppy media player to be my next radio player, but I'm sure I will not succeed without the help of some of the experts here. Thanks in advance!

    Leo

  • Hallo Leobo7, Sie müssen den Wechsel zwischen Zähler und Player implementieren. Vielleicht können einige Infos, wie das in einem Volumio-Plugin gemacht wird, hilfreich sein:

    https://community.volumio.org/t/install-pepp…volumio/42773/9

    Hallo leof, wie geben Sie Audio aus? Verwenden Sie 3,5-mm-Audiobuchse oder ein USB-Gerät? Das VU-Meter arbeitet mit dem Lautstärketyp amixer. Lassen Sie uns zuerst versuchen, es zum Laufen zu bringen.

    Deutsch ist die Hauptsprache in diesem Forum. Es wird empfohlen, diese zu verwenden und nur bei Bedarf ins Englische zu übersetzen. Normalerweise schreibe ich Nachrichten auf Englisch (was ich viel besser kann) und übersetze dann mit deepl.com ins Deutsche

    Beste Grüße

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

    Hi Leobo7, you need to implement the switch between meter and player. Maybe some info how that's done in a Volumio plugin can be helpful:

    https://community.volumio.org/t/install-pepp…volumio/42773/9

    Hi leof, how do you output audio? Do you use 3.5mm audio jack or any USB device? The VU Meter works with amixer volume type. Let's try to make it working first.

    German is the the main language of this forum. It's recommended to use it and translate to English only if there is the need for that. I usually write messages in English (which I know much better) and then translate to German using deepl.com

    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!