User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Sun Mar 10, 2019 4:35 am

New version (Durer Edition) of the Peppy Player was released.

New features:

* Implemented support for Podcasts.
https://github.com/project-owner/Peppy. ... sts-Player
https://github.com/project-owner/Peppy. ... ts-Browser

Image

Image

Image

* Added PWM output to VU Meter.
https://github.com/project-owner/PeppyM ... M-VU-Meter

* Added support for user-defined startup and shutdown scripts.
https://github.com/project-owner/Peppy. ... wn-Scripts

* Fixed the issue with Weather Screensaver.

* Updated the Gallery with new images of the NixiePeppy project created by Tobias (Germany, Hamburg):
https://github.com/project-owner/PeppyP ... ki/Gallery

Here is the project's introduction video on YouTube: https://youtu.be/Qb_7MUZivbU

Image

Image

Image

pancakeroll
Posts: 1
Joined: Sat Mar 09, 2019 10:44 am

Re: Peppy player

Sun Mar 10, 2019 10:15 am

Hi,
I'm attempting to build my own head unit for my car and this seems ideal to be the back end.

However, although I've tested several images on two PI 3's, I'm hitting the same block - I can't seem to get USB access to music files. I've tried two USB drives (8GB, 16GB) - I've tried exFAT and FAT32 and FAT but nothing is recognised. I've also tried a USB CD drive but this seems not to be recognised either with the icon greyed out.

I also don't seem to have mouse support (if I plug the mouse in before or after boot - no pointer, from reading the guide it seems I should be able to get this? - I do get keyboard support.

I'd love to get this working and provide, if you are interested, suggestions for the future and some feedback on the manual.

The software seems well thought out and capable but without being able to play anything, I can't go any further.

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Sun Mar 10, 2019 4:13 pm

Hi pancakeroll,

Sorry for inconveniences caused by the player. Let's try to resolve your issues.

The player was mostly designed to be used with touchscreens. In this case there is no need
in mouse cursor on screen. But you can enable it by changing the line #723 in the file
/home/pi/Peppy/util/config.py:
https://github.com/project-owner/Peppy/ ... ig.py#L723
from
pygame.mouse.set_visible(False)
to
pygame.mouse.set_visible(True)
I should probably make it as a configurable parameter.

Regarding mounting disks and CD player, Peppy player disk images are based on the regular Raspbian Stretch Lite OS.
The player doesn't change anything in OS. So if you face any issues with player disk images you will face
the same issues with regular OS.

You can try to mount your disk manually if it was not mounted automatically.

1. Run command 'blkid' to find the ID of your disk, for example you have the following output:
/dev/sdb: LABEL="MUSIC" UUID="CAE0-1FC6" TYPE="vfat"

2. Edit the file /etc/fstab and add the following line (change CAE0-1FC6 by your UUID which you get in the previous step):
UUID = CAE0-1FC6 /home/pi/music vfat defaults, users, nofail 0 0
here I mounted disk to folder /home/pi/music. This folder is easily accessible in Peppy player by clicking on 'User' icon.

Please make sure that you connect CD player through the powered USB hub not directly to the Pi USB connector.
I had issues when it was connected directly.

I'm open for any feedback and recommendations for improvements. Please let me know if you have any. You can contact me
either here or using e-mail address peppy.playerATgmail.com

Good luck!

mazellan
Posts: 16
Joined: Mon Aug 13, 2018 2:38 am

Re: Peppy player

Wed Apr 17, 2019 5:27 am

Hi

I was just trying to upgrade Peppy Waveshare 5" HDMI from Rubens to Durer.

The touch screen wouldn't work. I tried El Greco same problem.

Unfortunately I overwrote Rubens so couldn't go back.

I confirmed the touch hardware with the Waveshare Raspbian image.

Could you make the old Rubens image available, and if it works I can try to work out the problem with the later images.

I'm keen to try out the new podcast functionality.

Thanks

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Thu Apr 18, 2019 5:36 am

Hi mazellan,

I've just tested Durer image for 5" Waveshare screen. It works fine including
touchscreen functionality. I tested it with this display:
https://www.amazon.com/gp/product/B00TIA0PMQ
Do you have the same display?

mazellan
Posts: 16
Joined: Mon Aug 13, 2018 2:38 am

Re: Peppy player

Thu Apr 18, 2019 9:46 pm

I'm using a Chinese clone, but it worked perfectly with Rubens, as it does with the Waveshare Raspbian image. I wish I hadn't overwritten my working Rubens, I could have compared it to the later image to see what might be different. I don't recall having to change anything to make touch work.

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Fri Apr 19, 2019 4:44 am

I don't think that Peppy code caused the issue. Are you sure that you had the Rubens edition before?
According to the Release notes:
https://github.com/project-owner/Peppy
the disk image for 5" display was added in Velázquez edition which was released after the Rubens edition.
So if you had Rubens edition then more likely you installed/configured display driver yourself (?)

I don't have old binaries but source files are available here:
https://github.com/project-owner/Peppy/releases
Check the date in the Release notes and download required file, expand it into /home/pi/Peppy folder
(rename the old one) and set the following configuration for 5" display in the /hope/pi/Peppy/config.txt:
width = 800
height = 480
hdmi = True

Here is the cheatsheet which I use for creating disk image for the 5" Waveshare display. Maybe it can help
to configure your display.

1. Install Headless image:
https://github.com/project-owner/PeppyP ... isk-Images
2. Configure display in Peppy configuration file:
nano /home/pi/Peppy/config.txt:
width = 800
height = 480
hdmi = True

use.web = False
use.headless = False

nano /home/pi/Peppy/screensaver/peppymeter/config.txt:
screen.size = large
3. Configure display in boot config file:
sudo nano /boot/config.txt
add:
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
hdmi_drive=1
4. Install display driver:
wget https://www.waveshare.com/w/upload/3/34 ... 331.tar.gz
tar xzf LCD-show-180331.tar.gz
cd LCD-show/
chmod +x LCD5-show
./LCD5-show
5. Create file which makes touchscreen device without X-Windows
sudo nano /etc/udev/rules.d/95-ads7846.rules
add content:
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{name}=="ADS7846 Touchscreen", SYMLINK+="input/touchscreen"
run:
sudo reboot
6. Install touchscreen calibration software and run it (assuming that previous step created device /dev/input/touchscreen):
sudo apt-get install libts-bin
run:
sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate
7. Disable boot messages in the console:
sudo nano /boot/cmdline.txt
add:
fbcon=map:2
8. Add splash screen
sudo apt-get install fbi
wget https://raw.githubusercontent.com/proje ... sh.service
nano splash.service
change in splash.service /dev/fb1 to /dev/fb0
change splash.png -> splash-800.png
sudo mv splash.service /etc/systemd/system
sudo systemctl enable splash
sudo systemctl start splash
9. Add player autostart:
sudo nano /etc/rc.local
add (before 'exit' command):
su pi -c 'cd /home/pi/Peppy; openvt -s -- python3 peppy.py'

Please let know this info was helpful for you.
Good luck!

mazellan
Posts: 16
Joined: Mon Aug 13, 2018 2:38 am

Re: Peppy player

Fri Apr 19, 2019 9:20 pm

Thanks for that, I'll give it a try when I get time. You are right, it was Velázquez. Old age, memory failing!

mazellan
Posts: 16
Joined: Mon Aug 13, 2018 2:38 am

Re: Peppy player

Sat Apr 20, 2019 5:47 am

With your excellent checklist, that took 5 minutes to fix.
95-ads7846.rules doesn't exist in the image.

Now to try out podcasts! Thanks

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Sat Apr 20, 2019 4:13 pm

Great!
Please let me know if you will face any issues with podcasts which were
implemented after your request :)

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Mon May 06, 2019 2:54 am

New project was added to the Gallery:
Player with the official 7" Raspberry Pi Touch Display by Koepisch (Germany)
https://github.com/project-owner/PeppyP ... ki/Gallery

Koepisch made several code modification in order to make Peppy software working with the official 7" touchscreen. I hope to integrate those changes into one of the next Peppy software releases and prepare new disk image for the display.

Here is the author's description of the project:

The project took several months and became the music player for my daughter. I had to make some software adjustments. The standard Pygame event processing had to be switched to the MultiTouch driver. The colors were changed too.

Image

In terms of hardware, I installed the display without rotation. A HifiBerry DAC+ Card didn't have onboard connectors and used an extra audio output socket instead. A 2-pin power switch has the LED which switches between red (off) and green (on). The power supply was wired via an extra connector.

Image

Frankys
Posts: 5
Joined: Tue May 28, 2019 3:16 pm

Re: Peppy player

Tue May 28, 2019 3:36 pm

Hello,

I struggle trying to make a touchscreen work on peppy.
I use a 7inch Kuman display 800*480 with a raspberry pi 3. I try with the headless an waveshare 5 inch version modified with the information in the comments.
I got the gui working except for the touch part, it seems my action doesn't register or that it does register the wrong button.

I add the official drivers for the screen:
https://github.com/goodtft/LCD-show

Does have any ideas what would be wrong ?

thanks

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Wed May 29, 2019 4:04 pm

Hi, I have never used this display. Does it work with Raspbian Desktop?
If coordinates are flipped you can try to set parameter flip.touch.xy to True in file: /home/pi/Peppy/config.txt
flip.touch.xy = True

Did you try to run calibration utility:
sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate
Did it work?

Frankys
Posts: 5
Joined: Tue May 28, 2019 3:16 pm

Re: Peppy player

Thu May 30, 2019 3:44 pm

It finally works :p
The launch script was not working properly, I do each action one by one except the installation of xserver...
I spot one thing about the pause button, the music pause but the loading and the timer still continue like it's playing. It's just a nitpick :p .

Can the player show the music artalbum that is in the folder and not try to found it on the internet ?

It's a nice little player !

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Thu May 30, 2019 6:51 pm

This is great that you found the solution!
Could you clarify the issue with pause? In which mode that happens - radio, file playback or any other?
The player shows album art from the Internet only for Radio and CD player modes. For the file playback
mode it shows images from disk. Which mode do you mean?
Thank you!

Frankys
Posts: 5
Joined: Tue May 28, 2019 3:16 pm

Re: Peppy player

Fri May 31, 2019 10:47 am

I'm talking only about the audio module, when I try to play local music.

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Fri May 31, 2019 3:34 pm

the player will display images defined in property folder.images in file /home/pi/Peppy/config.txt:
[file.browser]
...
folder.images = folder.jpg, folder.png, cover.jpg, cover.png, front.jpg, front.png

If you have such images in your folders they will be displayed when you browse through the folders:
Image

and during playback:
Image

The Slideshow screensaver will display all images from the album art folder. The name of that folder
you can define in another property:
cover.art.folders = covers, artwork, scans, art

Could you provide the sequence of steps which lead to the pause issue?

Thank you!

Frankys
Posts: 5
Joined: Tue May 28, 2019 3:16 pm

Re: Peppy player

Wed Jun 05, 2019 10:48 am

I cannot reproduce the error :roll:

But I have a problem with the loading image:

Code: Select all

ioctl Vt_Getstate:Ioctl()  inappropriate linux device
it cannot launch the python script after that, if I disable splash it works again.

I'm using the headless peppy player image.

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Wed Jun 05, 2019 3:30 pm

OK, if you will face that pause issue again please let me know.

I had some issues with splash screen for some displays. It starts service which in turn
starts 'fbi' utility which should display images using framebuffer. For some displays it
doesn't work. You can try to change the device name in the command which starts the
splash screen from fb1 to fb0 (assuming that fb0 exists under /dev). The script is
in the folder /etc/systemd/system. The line which starts fbi looks like this:
ExecStart=/usr/bin/fbi -d /dev/fb1 --noverbose -a /home/pi/Peppy/splash.png

Please let me know if you will be able to make it working. Thank you!

Frankys
Posts: 5
Joined: Tue May 28, 2019 3:16 pm

Re: Peppy player

Tue Jun 11, 2019 11:47 am

The script is
in the folder /etc/systemd/system. The line which starts fbi looks like this:
ExecStart=/usr/bin/fbi -d /dev/fb1 --noverbose -a /home/pi/Peppy/splash.png
Unfortunately it doesn't work :(

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Tue Jun 11, 2019 4:32 pm

Yeah, that's the problem with some displays. Some of them work with 'fbi' some not.
If you will find a way to make it working please let me know. Thanks!

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Mon Sep 02, 2019 3:14 am

New version (Holbein Edition) of the Peppy Player was released.

According to the download statistics of the last two player releases the Headless disk image is the most popular one.
Image

Therefore in this release some effort was put into developing web UI for the player configuration:
https://github.com/project-owner/Peppy. ... figuration

Image

Image

Image

In addition to that new functionality for connecting to a Wi-Fi network was implemented:
https://github.com/project-owner/Peppy.doc/wiki/Network

Image

Another new features include:

- Made Home Navigator configurable. All items in the menu can be switched on/off:
https://github.com/project-owner/Peppy. ... ome-Screen

Image

- Added 'Start Now' option to the Screensaver navigator. It allows to start screensaver immediately.

- Provided new disk image for the Official 7" Touchscreen. It supports long press and sliding actions (sliding volume/equalizer knobs).

- Fixed the issues in the mpd playback and audiobooks.

janpas
Posts: 3
Joined: Mon Sep 02, 2019 8:06 pm

Re: Peppy player

Mon Sep 02, 2019 8:10 pm

Hi
Has anything changed in the new version by adding a different language.
For me, after entering Polish you can not enter through the website.

the greeted

User avatar
peppy.player
Posts: 196
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Tue Sep 03, 2019 12:06 am

Please let me know what you did to add new language? Was it Durer Edition?

janpas
Posts: 3
Joined: Mon Sep 02, 2019 8:06 pm

Re: Peppy player

Wed Sep 04, 2019 4:34 pm

Hi
I introduced Polish as in Durer but everything hung up.
As in the new version, a new language can be entered.
greetings

Return to “Media centres”