Peppy WebRadio

  • jaja der Alzheimer schlägt zu. War es dann jar der an einer langsamen Leitung hing?

    Jedenfalls ist mir in Erinnerung, daß ich darauf aufpassen muß.

    Schönen Gruß, kle

  • Wow, you have 3 different systems.

    Did you buy all enclosures or made some of them yourself?


    As it was mentioned already the only recommendation would be to improve the

    sound quality as the sound from 3.5 mm jack is not so good. But for

    that you need to attach additional DAC or Amplifier to the GPIO. In that

    case the design becomes not so compact. Only if USB DAC is in use...


    Congratulations! Great job!


    If you have any questions/proposals feel free to post it here or contact me directly.

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

  • Hi peppy.player,

    with the same hardware I used NewTron-Radio.


    Instead of raspbian-lite as OS I used pipaos (pipaos-guarana-console-5.0.img.gz), a very fast and small 'raspbian-jessie-lite'.


    Sound via bluetooth to speaker JBL Go.

    I used the bluez-alsa package for bluetooth.

    Best regards, kle


    Did you buy all enclosures or made some of them yourself?

    I bought them all.

    Edited once, last by kle ().

  • ...

    Sound via bluetooth to speaker JBL Go.

    I used the bluez-alsa package for bluetooth.

    ...

    Bluetooth is a good alternative. Though I've never used it myself.

    Could you share the details of this connection?

    What are the extra steps required? Do you really need any additional packages?

    Is it reliable connection? Does it work well with WiFi? How far you can move the speakers?

    How about sound quality?


    Thanks in advance!

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

  • about Raspis, Raspbian and Bluetooth

    RPi 3B and RPi Zero W have an internal bluetooth controller. You need the package pi-bluetooth to use the internal controller.

    Attention: the internal bluetooth controller uses the serial interface.


    Every Raspbian Release (wheezy, jessie and stretch) handles bluetooth devices in a special way.

    wheezy --> alsa --> bt-speaker

    jessie --> alsa --> pulseaudio1 --> bt-speaker

    stretch --> alsa2 --> bt-speaker


    1 pulseaudio sound server uses the pulseaudio-module-bluetooth to send sound to a bt-speaker.

    2 alsa uses bluealsa (package bluez-alsa) to send sound to a bt-speaker.


    jessie and stretch there is the command bluetoothctl to control bluetooth devices (scan, pair, trust, connect, disconnect, remove, ...).


    pulseaudio runs as session daemon.

    mpd runs as system daemon.


    jessie GUI has bluetooth desktop controls to connect a speaker to pulseaudio.

    stretch GUI has bluetooth desktop controls to connect a speaker to bluealsa.


    You can build bluealsa also for jessie (raspbian-jessie-lite, pipaos-guarana-console, )

    If the package pulseaudio-module-bluetooth is installed, remove it. (Afterwards jessie bluetooth desktop controls doesn't work any more!)


    Bluealsa works with jessie/stretch and mpd/vlc1/???mplayer


    1 there is an issue #23 'bad sound with VLC' and a work around. Details in Bluetooth for Peppy Player with VLC.


    Proposals for improvement welcome.

    Edited 2 times, last by kle ().

  • Bluetooth for Peppy Player with VLC


    1. The adafruit GUI image 2016-11-08-pitft-35r.zip for Peppy Player contains pulseaudio-module-bluetooth.
      To prevent problems with bluealsa it shall be removed.
      sudo apt-get remove pulseaudio-module-bluetooth
    2. Using bluealsa in jessie
      Link (ignore mpd paragraphs)
    3. Change players.txt
      Code
      1. nano ~/Peppy/players.txt
      2. ...
      3. [audio]
      4. player.name = vlc
      5. music.folder.linux = /home/pi/Music
      6. ...
      7. [vlc.linux]
      8. #server.command = --aout=alsa --alsa-audio-device=hw --verbose=-1
      9. server.command = --aout=alsa --alsa-audio-device=headset --verbose=-1
    4. Check vlc
      There is an issue #23 'bad sound with VLC'
      if aplay -D headset /usr/share/sounds/alsa/Front_Center.wav works
      and cvlc --aout=alsa --alsa-audio-device=headset --verbose=-1 http://st01.dlf.de/dlf/01/128/mp3/stream.mp3 doesn't
      then modify asound.conf, add line delay -20000.


    5. Run Peppy Player
      Code
      1. cd ~/Peppy
      2. sudo python3 peppy.py &

      If it works you can edit /etc/rc.local to autostart Peppy Player

      Code
      1. sudo nano /etc/rc.local
      2. ...
      3. cd /home/pi/Peppy
      4. python3 peppy.py &
      5. exit 0

    Edited 37 times, last by kle: use python3 ().

  • Bluetooth for Peppy Player with MPLAYER

    same as VLC except

    3. change players.txt

    Code
    1. nano ~/Peppy/players.txt
    2. ...
    3. [audio]
    4. player.name = mplayer
    5. music.folder.linux =
    6. ...
    7. [mplayer.linux]
    8. #server.command = mplayer -ao alsa:device=hifiberry -idle -slave -quiet -msglevel statusline=6 -msglevel global=6
    9. server.command = mplayer -ao alsa:device=headset -idle -slave -quiet -msglevel statusline=6 -msglevel global=6

    Edited 3 times, last by kle ().

  • New version (Vermeer Edition) of the Peppy Player was just released.

    User kle from this forum provided very valuable and helpful input for this release especially in resolving several issues related to the Peppy Player configuration. Thanks a lot Klaus! I appreciate your help very much!


    Here are the new features:


    - Replaced HiFiBerry Amp+ by HiFiBerry Amp2. That solved audiobooks playback issues.

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

    https://github.com/project-own…py.doc/wiki/HiFiBerry-Amp


    - Added CD Player mode.

    https://github.com/project-owner/Peppy.doc/wiki/CD-Player

    https://github.com/project-owner/Peppy.doc/wiki/CD-Browser


    - Made Home menu customizable.

    - Added configuration files for screensavers.

    - Refactored VU Meter screensaver.

    - Improved logging functionality.


    - Provided disk images to simplify player installation and configuration.

    https://github.com/project-own…yers.doc/wiki/Disk-Images


    - Added Wish List to the Wiki pages:

    https://github.com/project-own…layers.doc/wiki/Wish-List


    - Updated Gallery with new images depicting projects created by Klaus:

    https://github.com/project-own…yPlayers.doc/wiki/Gallery

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

  • New version (Rubens Edition) of the Peppy Player was released today.


    New features:


    - Streamlined the process of adding new languages.

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

    Here are the screenshots showing Language and Home menus in Japanese:


    [Blocked Image: https://raw.githubusercontent.com/project-owner/Peppy.doc/master/images/software/j-2.png]


    [Blocked Image: https://raw.githubusercontent.com/project-owner/Peppy.doc/master/images/software/j-3.png]


    - Added CD album art functionality. The CD cover images are retrieved from the largest free web collection on Discogs.com. Here are examples of CD Player with album art:


    [Blocked Image: https://raw.githubusercontent.com/project-owner/Peppy.doc/master/images/software/cd-art-1.png]

    [Blocked Image: https://raw.githubusercontent.com/project-owner/Peppy.doc/master/images/software/cd-art-2.png]


    - Made Screensaver and Language menus customizable.


    - Implemented Weather forecast screensaver.

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

    Here are the examples of the Weather screensaver:


    [Blocked Image: https://raw.githubusercontent.com/project-owner/Peppy.doc/master/images/software/weather-de.png]

    [Blocked Image: https://raw.githubusercontent.com/project-owner/Peppy.doc/master/images/software/weather-fr.png]


    - Added information about connecting Bluetooth devices.

    https://github.com/project-own…oc/wiki/Bluetooth-Devices


    - Provided disk images.

    https://github.com/project-own…yers.doc/wiki/Disk-Images

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

  • Nach der Installation kann ich Peppy starten, wenn ich es aus dem Ordner Peppy starte läuft alles, beim Start aus dem pi Verzeichnis mit Python3 /home/pi/Peppy/peppy.py kommt die Fehlermeldung unten:

    Jemand eine Idee?

    Ziel ist es Peppy automatisch zu starten. Wie kann man Peppy mit Hilfe der LXDE Autostart starten? Müsse zuerst wissen warum man nicht aus einem anderen Order starten kann.



    File "/usr/lib/python3.5/configparser.py", line 1135, in _unify_values

    sectiondict = self._sections[section]

    KeyError: 'screen.info'


    During handling of the above exception, another exception occurred:


    Traceback (most recent call last):

    File "./Peppy/peppy.py", line 1120, in <module>

    main()

    File "./Peppy/peppy.py", line 1116, in main

    peppy = Peppy()

    File "./Peppy/peppy.py", line 70, in __init__

    self.util = Util()

    File "/home/pi/Peppy/util/util.py", line 123, in __init__

    self.config_class = Config()

    File "/home/pi/Peppy/util/config.py", line 91, in __init__

    self.load_config(self.config)

    File "/home/pi/Peppy/util/config.py", line 112, in load_config

    c = {WIDTH : config_file.getint(SCREEN_INFO, WIDTH)}

    File "/usr/lib/python3.5/configparser.py", line 816, in getint

    fallback=fallback, **kwargs)

    File "/usr/lib/python3.5/configparser.py", line 806, in _get_conv

    **kwargs)

    File "/usr/lib/python3.5/configparser.py", line 800, in _get

    return conv(self.get(section, option, **kwargs))

    File "/usr/lib/python3.5/configparser.py", line 778, in get

    d = self._unify_values(section, vars)

    File "/usr/lib/python3.5/configparser.py", line 1138, in _unify_values

    raise NoSectionError(section)

    configparser.NoSectionError: No section: 'screen.info'

  • Peppy kann die Konfigurationsdatei nicht finden, wenn du sie aus einem anderen Ordner starten.

    Du müssen zuerst den Ordner wechseln. Zum Beispiel um den Spieler automatisch zu starten

    Beim Start kann die folgende Zeile zur Datei /etc/rc.local hinzugefügt werden:


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


    Dies wird hier beschrieben:

    https://github.com/project-own…peppy-player-installation


    Tschüss

  • Mein System:

    Raspbian 4.14

    Kedei 3,5" Touchscreen

    sonst erstmal nichts.

    Autostart mit rc.local startet bevor die Oberfläche gestartet ist -> funktioniert bei mir nicht, daher wollte ich Peppy in der /etc/xdg/lxsession/LXDE-pi/autostart eintragen.

  • Hallo,

    Du bootest in die grafische Oberfläche.

    Der Peppy-Player läuft in der Konsole.


    Ich habe es nur über RealVNC geschafft, den Peppy-Player in der grafischen Oberfläche zu automatisch starten. Der TFT-Screen bleibt dann schwarz.

    Auch kalibrieren mit kleinen Displays ist schwierig.


    ---- prinzipiell sollte es so gehen: ---

    zum Autostart von Programmen mit Grafik-Oberfläche (hier pygame) bei Desktop (oder auch GUI genannt) sollte X11 gestartet sein.

    ich würde die Datei /home/pi/.config/lxsession/LXDE-pi/autostart benutzen, da das peppy.py unter dem Benutzer 'pi' laufen muß (wegen der Rechte).

    • Du erzeugst das bin-Unterverzeichnis mit cd /home/pi; mkdir bin
    • dort erzeugst Du ein Start-Script /home/pi/bin/peppy-start.sh.
      Inhalt siehe unten.
    • Du machst es ausführbar mit chmod +x /home/pi/bin/peppy-start.sh
    • In der Autostart-Datei /home/pi/.config/lxsession/LXDE-pi/autostart fügst Du am Ende die Zeile /home/pi/bin/peppy-start.sh
    Shell-Script: /home/pi/bin/peppy-start.sh
    1. #!/bin/sh
    2. cd /home/pi/Peppy
    3. openvt -s -- python3 peppy.py

    Aber, wie gesagt das Touchdisplay bleibt schwarz.

    Schönen Gruß, kle

    Edited once, last by kle ().

  • Ich habe diese anzeige noch nie probiert. Soweit ich verstehe, funktioniert diese anzeige nur mit einem eigenen Disk-Image, das einen grafischen desktop (X) hat. Ist es möglich, bildschirmtreiber auf Raspbian Stretch Lite zu installieren, die keinen grafischen desktop haben?

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