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

Re: Peppy player

Thu Jun 25, 2020 6:00 pm

Thank you Tobias for sharing your great project! I've added it to the Gallery:
https://github.com/project-owner/PeppyP ... as-germany

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

Re: Peppy player

Sun Aug 23, 2020 11:19 pm

New version (Constable Edition) of the Peppy Player was just released.
The disk images with new release are available here:
https://github.com/project-owner/PeppyP ... isk-Images

New features:

- Added the following functionality to the File Menu: alignment, sorting, wrapping and layout.
https://github.com/project-owner/Peppy. ... /File-Menu

Image

Image

- Implemented a graceful poweroff.
https://github.com/project-owner/Peppy. ... ower-OnOff

Image

- Patched the bug in the ALSA library. That allowed to enable VU Meter and Spectrum Analyzer screensavers.

Image

- Added support for images embedded into mp4 and m4a audio files.
- Fixed the AirPlay mode issues.
- Upgraded to the latest version of the Tornado web server.
- To fix CD player issues replaced the nonfunctional API endpoint freedb.org by gnudb.org.
- Refactored the Wi-Fi configuration framework.
- Fixed multi-touch driver.

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

Re: Peppy player

Sun Sep 13, 2020 4:16 am

CAUTION! This project is only for people who are experienced in working with high voltage electricity as it assumes the work with the high voltage main power. If you are the beginner just connect a regular +5V power supply to the Raspberry Pi Zero W board.

Here is the new picoPeppy player.
This is the smallest player in the Peppy family.
It's using the Headless Peppy Player Disk Image.
The player can connect to the Internet via Wi-Fi and to the speaker via Bluetooth.
A Web Browser running on any device in the home network can be used to control the player.
The player can be used to listen to Web Radio, Podcasts and Audiobooks.

More information can be found here:
https://github.com/project-owner/picoPeppy.doc/wiki

Image

Image

Image

fernandz
Posts: 4
Joined: Sun Sep 20, 2020 10:06 am

Re: Peppy player

Sun Sep 20, 2020 10:13 am

Hello,
I'm trying to create a music player with a 7" touchscreen(not the official) and I cannot get the touchscreen to work.
It is working on raspbian 0S and I follow your expert guide.
I use these drivers : https://github.com/goodtft/LCD-show.

log.txt

Code: Select all

[2020-09-19 18:11:52,397] {selector_events.py:53} DEBUG - Using selector: EpollSelector
[2020-09-19 18:11:52,427] {webserver.py:110} DEBUG - Web Server Started
[2020-09-19 18:11:52,443] {peppy.py:314} DEBUG - Audio Server Started 
[2020-09-19 18:11:52,510] {mpdconnection.py:62} ERROR - Host: localhost Port: 6600
[2020-09-19 18:11:52,511] {mpdconnection.py:63} ERROR - Cannot connect to MPD server. Attempt 0
[2020-09-19 18:11:54,515] {mpdconnection.py:62} ERROR - Host: localhost Port: 6600
[2020-09-19 18:11:54,516] {mpdconnection.py:63} ERROR - Cannot connect to MPD server. Attempt 1
[2020-09-19 18:11:56,520] {mpdconnection.py:62} ERROR - Host: localhost Port: 6600
[2020-09-19 18:11:56,521] {mpdconnection.py:63} ERROR - Cannot connect to MPD server. Attempt 2
[2020-09-19 18:11:58,532] {mpdconnection.py:62} ERROR - Host: localhost Port: 6600
[2020-09-19 18:11:58,533] {mpdconnection.py:63} ERROR - Cannot connect to MPD server. Attempt 0
[2020-09-19 18:12:00,537] {mpdconnection.py:62} ERROR - Host: localhost Port: 6600
[2020-09-19 18:12:00,538] {mpdconnection.py:63} ERROR - Cannot connect to MPD server. Attempt 1
[2020-09-19 18:12:02,542] {mpdconnection.py:62} ERROR - Host: localhost Port: 6600
[2020-09-19 18:12:02,543] {mpdconnection.py:63} ERROR - Cannot connect to MPD server. Attempt 2
[2020-09-19 18:12:04,551] {mpdconnection.py:62} ERROR - Host: localhost Port: 6600
[2020-09-19 18:12:04,552] {mpdconnection.py:63} ERROR - Cannot connect to MPD server. Attempt 0
[2020-09-19 18:12:06,556] {mpdconnection.py:62} ERROR - Host: localhost Port: 6600
[2020-09-19 18:12:06,557] {mpdconnection.py:63} ERROR - Cannot connect to MPD server. Attempt 1
[2020-09-19 18:12:20,260] {mpdconnection.py:62} ERROR - Host: localhost Port: 6600
[2020-09-19 18:12:20,261] {mpdconnection.py:63} ERROR - Cannot connect to MPD server. Attempt 2
[2020-09-19 18:12:22,264] {mpdconnection.py:185} DEBUG - command: setvol 100
[2020-09-19 18:12:22,265] {mpdconnection.py:188} DEBUG - return: None 
[2020-09-19 18:12:22,268] {mpdconnection.py:62} ERROR - Host: localhost Port: 6600
[2020-09-19 18:12:22,275] {mpdconnection.py:63} ERROR - Cannot connect to MPD server. Attempt 0
[2020-09-19 18:12:22,450] {dispatcher.py:382} DEBUG - Unable to locate touchscreen device: raspberrypi-ts
players.txt

Code: Select all

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

[mpd.linux]
server.folder = /usr/bin
server.start.command = mpd
client.name = mpdsocket
server.stop.command = None
config

Code: Select all

[screen.info]
width = 800
height = 480
depth = 32
frame.rate = 30
hdmi = True
no.frame = False
flip.touch.xy = False
multi.touch = True

[usage]
touchscreen = False
mouse = True
lirc = False
rotary.encoders = False
web = True
stream.server = False
browser.stream.player = False
voice.assistant = False
headless = False
vu.meter = False
album.art = True
auto.play = True
long.press.time.ms = 700

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

Re: Peppy player

Sun Sep 20, 2020 3:27 pm

Hi,

Please try to set in players.txt
player.name = vlc
and in config.txt:
multi.touch = False

Please let me know if it helps.

Best regards

fernandz
Posts: 4
Joined: Sun Sep 20, 2020 10:06 am

Re: Peppy player

Sun Sep 20, 2020 6:02 pm

Thank you,
The touchscreen works but there is some problem with the precision of the touch.
For example on the audio interface where there is the shutdown button; for touching the shutdown button I need to touch just below the actual near the previous song symbol, the little button on the side seems to be ok but all the big button seems to not be on the wright place.

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

Re: Peppy player

Sun Sep 20, 2020 7:20 pm

Sounds like the issue described here:
https://github.com/project-owner/Peppy. ... d-libsdl12
Did you complete those steps?

Best regards

fernandz
Posts: 4
Joined: Sun Sep 20, 2020 10:06 am

Re: Peppy player

Tue Sep 22, 2020 3:23 pm

Unfortunately it doesn't work.
I retry to download and install it but it changes nothing.

I don't know if it will help but I try this command: sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate

Code: Select all

xres = 800, yres = 480
Took 9 samples...
Top left : X =   44 Y =   58
Took 12 samples...
Top right : X =  741 Y =   58
Took 11 samples...
Bot right : X =  727 Y =  413
Took 15 samples...
Bot left : X =   33 Y =  427
Took 11 samples...
Center : X =  396 Y =  235
0.901245 1.006662 0.034897
-14.130310 0.010602 1.049599
Calibration constants: 59064 65972 2287 -926044 694 68786 65536 

Best regards

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

Re: Peppy player

Tue Sep 22, 2020 4:47 pm

Try to set the following property in the file /home/pi/Peppy/config.txt:
touchscreen = True

If it doesn't help I would recommend to install the Headless disk image and the touchscreen driver on top of it. That disk image has all required software installed. After driver installation change the properties in the same file:
width = 800
height = 480
...
headless = False

Best regards

fernandz
Posts: 4
Joined: Sun Sep 20, 2020 10:06 am

Re: Peppy player

Fri Sep 25, 2020 4:43 pm

Thank you very much, I just change the touchscreen line and it's working perfectly now :) .

Palmont
Posts: 3
Joined: Thu Oct 15, 2020 2:29 pm

Re: Peppy player

Thu Oct 15, 2020 2:41 pm

Hello, Peppy!
Thank you so much for your work!
Is it possible to use this rotary encoder: https://www.epitran.it/ebayDrive/datasheet/25.pdf to control the volume?
My attempts to connect and configure this encoder in web UI were unsuccessful.

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

Re: Peppy player

Fri Oct 16, 2020 3:44 pm

Hi Palmont,

I hope you used this wiki page for connecting RE to the Pi:
https://github.com/project-owner/Peppy. ... y-Encoders

You need to connect the pin labeled CLK on the RE module to the GPIO pin #16 (pin #36 on the connector).
The pin labeled DT should be connected to the GPIO pin #26 (pin #37 on the connector).
The pin labeled SW should be connected to the GPIO pin #13 (pin #33 on the connector).
The pin labeled GND should be connected to the pin #34 on the connector.
There is no need to connect the pin labeled '+'.

Don't forget to select check-mark 'Use Rotary Encoders' in the Web UI. All pin numbers in UI should be set according to the GPIO numbers mentioned above:
Volume Up = 16
Volume Down = 26
Mute = 13
Keep Jitter Filter = 1

Save settings by clicking 'Save' button in Web UI. Then reboot the Pi by clicking the 'Reboot' button.
If you will find that RE works in opposite direction (Volume Up actually reduces the volume) you need just to switch pins CLK and DT.
If everything was connected and configured correctly you should be able to see that UI volume knob moves when you rotate RE.
If it's still not working please show the picture of your RE connection to the GPIO connector.
Does the UI volume control work fine?

Best regards

Palmont
Posts: 3
Joined: Thu Oct 15, 2020 2:29 pm

Re: Peppy player

Fri Oct 16, 2020 7:54 pm

Thank you so much! Works like a charm!
It was important to clearly follow the instructions.
I would be very grateful if you answer one more question of mine. Is it possible to make volume controls slider in music player accessible by default, and make timing slider accessible after pushing the button?
Thanks for your reply!

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

Re: Peppy player

Fri Oct 16, 2020 9:51 pm

There is no any configuration setting which could switch volume and time.
Though you can achieve that by changing the code in two files.

Add the line
self.toggle_time_volume()
after the line #146 in the file /home/pi/Peppy/ui/screen/fileplayer.py:
https://github.com/project-owner/Peppy/ ... er.py#L146
so that the code would look like this:

Code: Select all

        if self.info_popup:
            Container.add_component(self, self.info_popup)

        self.toggle_time_volume()
Use spaces, don't use Tab as Python is very sensitive to that. Save the file

Move this line
states.append(volume_state)
in the file /home/pi/Peppy/ui/factory.py:
https://github.com/project-owner/Peppy/ ... ry.py#L633
below this line:
https://github.com/project-owner/Peppy/ ... ry.py#L648
so that the code would look like this:

Code: Select all

        states.append(time_state) 
        states.append(volume_state)
Save the file.

This way you will switch volume and time sliders.

Best regards

Palmont
Posts: 3
Joined: Thu Oct 15, 2020 2:29 pm

Re: Peppy player

Sat Oct 17, 2020 6:04 pm

Thank you for your help and instructions!

Return to “Media centres”