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

Re: Peppy player

Thu Sep 05, 2019 4:51 am

I have tried to translate to Polish some parts of the player - weather-config.txt and radio folder names under radio-stations folder. If you want to see the rest labels in Polish you need to translate/localize the file labels.properties. You can get the files which I prepared here:
https://github.com/project-owner/Peppy. ... Polish.zip
Just unzip it in the 'languages' folder. I grabbed radio playlists from the English-USA folder and left just one station in each genre just as an example.

If you will face any issue please let me know either here or via e-mail peppy.playerATgmail.com
Here are the screenshots with my partial translations:

Image

Image

Image

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

Re: Peppy player

Thu Sep 12, 2019 4:44 pm

thank you

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

Re: Peppy player

Thu Sep 12, 2019 8:09 pm

Sure, if you will have complete translation and radio playlists for Polish web radio stations I could include it to the next version.

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

Re: Peppy player

Sat Oct 26, 2019 5:03 pm

I've just added two new projects to the Gallery.

Portable player by Francesco (Italy):
https://github.com/project-owner/PeppyP ... esco-italy

Image

Herbert's Küchenradio (Germany):
https://github.com/project-owner/PeppyP ... io-germany

Image

Image

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

Re: Peppy player

Sun Nov 03, 2019 7:28 pm

Here is the new entry in the Gallery - Shoebox player by Dee (USA):
https://github.com/project-owner/PeppyP ... by-dee-usa

Image

Image

Koepisch
Posts: 23
Joined: Fri Mar 18, 2016 10:41 pm

Re: Peppy player

Wed Nov 27, 2019 4:50 pm

Hi peppy.player,

i'm running an older version of peppy and want to know, if the current version can manage a bluetooth speaker from within the GUI? I want to switch between "Line Out" and "Bluetooth" device and want to do pairing with new bluetooth speakers.

Is that possible - in the last version i had to edit the linux files (a mess).

Thanks,
Koepisch

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

Re: Peppy player

Fri Nov 29, 2019 5:06 pm

Hi Koepisch,

Unfortunately Peppy player doesn't have UI for connecting Bluetooth devices. So right now it's a manual process:
https://github.com/project-owner/Peppy. ... th-Devices
Though I'm planning to add one. I hope that eventually the player will have UI for all required configuration settings including Password, Timezone, ALSA etc.

I'm at the cleanup and testing stage for the next Peppy software release (Cranach Edition). It still doesn't have Bluetooth UI. But in the release after Cranach Edition I'll try to add UI for Bluetooth devices (tentative date January-February 2020). The idea is to add Bluetooth to the Network screen. In that release I'm also planning to add ability to manage audio files collection and quickly search through it ( e.g. using voice commands).

Best Regards

Koepisch
Posts: 23
Joined: Fri Mar 18, 2016 10:41 pm

Re: Peppy player

Sun Dec 01, 2019 2:13 pm

Hi peppy.player,

that sounds great. The bluetooth configuration would be a huge step forward (for my needs). Today i begin to build my second peppy player! I'm very curious about the current edition too.

PS: I'm really impressed and deeply grateful. My second player works within Minutes - out of the box. For the first player i worked DAYS to get the 7" screen working. It seems that my GUI relations are reused in the new version - it looks like my first player, great!

So i can work on the details. I will use the default 7" frame, but build a new backend for the PI4, HifiBerry DAC+ Card and a slot for a slim powerbank. At my first version all of this was pressed into the default frame - never again.

Regards,
Koepisch

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

Re: Peppy player

Sun Dec 01, 2019 5:52 pm

Hi Koepisch,

Your code for 7" display was used as the base in Peppy player. I made just some minor modifications to support sliding actions and long press. Your work was very helpful. Thanks a lot!

Also I tried to address your other requirements. For example the ability to change color theme. You can do that now through Config Web UI and select/adjust that Pinky color theme :)
Another change inspired by your work - show/hide folder names, now it's the configuration parameter (hide.folder.name). Next release will also have ability to define the number of items in menu through configuration parameters (rows, columns).
If you will have any other requirements/ideas feel free to contact me. That can be useful for other people as well.

Good luck with your new project. If you will decide to share it please let me know and I'll place it in the Gallery.
Best Regards!

Koepisch
Posts: 23
Joined: Fri Mar 18, 2016 10:41 pm

Re: Peppy player

Mon Dec 02, 2019 6:27 am

Hi peppy.player,

it's really great that you add new features continuously. Nice to hear the row / column size will be configurable too. It seems, that i don't have to make any adapting changes to the code so far. Till now only one issue is left (but it's a non brainer). The cover picture size is too small when the screensaver kicks in (7" display). I thing i used a sizing factor which could control the picture size. That would be great seeing this in the config.

I have one issue with the volume/track position slider. The control freezes at some point - it happens a few times in my short test period. I thing it is an older problem. If i can re-activate my debug environment, i can localize the error source.

Thanks and regards,
koepisch

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

Re: Peppy player

Mon Dec 02, 2019 4:13 pm

Hi Koepisch,

I believe you are talking about 'Logo' screensaver. If so, you can adjust the image size by changing configuration parameter 'vertical.size.percent' in the screensaver configuration file: /home/pi/Peppy/screensaver/logo/screensaver-config.txt. You can do that from the Config Web UI too. It's described here:
https://github.com/project-owner/Peppy.doc/wiki/Logo

If you will find the root cause of the volume/time slider issue please let me know. Just remember that you can not move sliders in the Pause mode. That's intentional.

Best Regards!

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

Re: Peppy player

Fri Dec 06, 2019 4:11 am

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

New features:

* Implemented Advanced Playlist Editor in the Configuration Web UI
https://github.com/project-owner/Peppy. ... ist-Editor

Image

Image

* Show images embedded into MP3 and FLAC files.

Image

* Support AirPlay.
https://github.com/project-owner/Peppy.doc/wiki/AirPlay

This functionality allows to stream audio from Apple devices to Peppy Player using AirPlay protocol. It allows to stream from Spotify player using free and premium accounts.

Image

* Support Spotify Connect.
https://github.com/project-owner/Peppy. ... fy-Connect

It allows to send audio stream from Spotify player running on any platform to the Peppy Player. It works only for premium Spotify accounts.

Image

* Added two new languages: Italian and Spanish.

* Check for updates.

Image

* Added ability to configure rotary encoders from the Configuration Web UI.

Koepisch
Posts: 23
Joined: Fri Mar 18, 2016 10:41 pm

Re: Peppy player

Mon Dec 09, 2019 11:03 am

Hello peppy.player,

this year i've tried to play videos within linux RPI and it worked. After christmas both of my kids have one peppy player in their rooms, so i want to add more features to it, which aren't music related. I want to make the following workflow happen, but i'm still a linux newbee, so i don't know to do that.

1. Peppy starts normally und the GUI is displayed
2. User starts one action within the peppy GUI (not realized yet, could be a new page with n buttons with icons, currently tried with the "About" action)
3. Peppy.player shuts down
4. new command / linux shell script is executed / synchron (like play music video, start/show camera stream, start full desktop)
5. if this process ends, the peppy.player starts again and present the GUI

How could that be done? I think the first peppy.player call could be executed within an overall script which manages the processes (peppy + n user scripts)

Thanks,
koepisch

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

Re: Peppy player

Mon Dec 09, 2019 4:59 pm

Hi Koepisch,

I was planning to make Peppy player the best audio player first and then switch to video ;)

I believe video needs different backend player. It can be either omxplayer as it has hardware acceleration or VLC compiled with hardware acceleration. Currently Peppy player leverages regular VLC without hardware acceleration. Omxplayer is available on Raspbian OS by default and doesn't need installation/compilation but it needs additional code/library to control it over dbus. Peppy player has similar code to control AirPlay server (shairport-sync) over dbus:
https://github.com/project-owner/Peppy/ ... ortdbus.py

There are two main approaches which can be used:

1. Ideally handling video should be done inside of the player itself. This way you could avoid overhead related to the inter-process communication. But the player is not ready for that yet. If you could build VLC with hardware acceleration then it could be used as the backend player for video the same way it is used now for audio. I use Python wrapper to control it. The same wrapper can be used to control video playback. This is the easiest way as you could use the same existing code to control audio and video as well.

2. Another less preferable way is the way which you suggested - scripts started from player. The player has some similar functionality. Have a look at the 'Startup & Shutdown Scripts':
https://github.com/project-owner/Peppy. ... wn-Scripts
Those scripts can be started during startup and shutdown but the same idea can be used for any other script started by the player. If you are going to spawn external process have a look at the 'pexpect' Python library. It's very useful.

The player disk images which I provide right now are based on Raspbian Lite OS and don't have desktop. But separate disk image for Desktop OS could be created if you need it.

If you have more questions you can contact me directly. My e-mail address is available on Github and in all Python source files.

Best Regards

Koepisch
Posts: 23
Joined: Fri Mar 18, 2016 10:41 pm

Re: Peppy player

Tue Dec 10, 2019 8:10 am

Hi peppy.player,

indeed video is related to music, but i don't wanted to push this feature too early. So i wanted to run this outside of peppy. I use omxplayer (i think with Python ) and can play the video files without problems. I don't want to span an parallel process, because peppy is blocking the interface/screen. Thats why peppy has to be shut down prior to execute the new task/script/program. But my question wasn't so much related to any defined task. I will invest more time (next year, due to my busy schedule) to get the STOP Peppy-RUN Non-Peppy Task-START Peppy workflow done.

Thanks,
Koepisch

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

Re: Peppy player

Tue Dec 10, 2019 3:55 pm

OK, I'm still not sure that the player should be completely shutdown. Probably running pygame.quit() could release resources. Though I didn't try it myself.

Good luck in your investigations. Please keep me informed.

Koepisch
Posts: 23
Joined: Fri Mar 18, 2016 10:41 pm

Re: Peppy player

Sat Dec 14, 2019 5:18 pm

Hello peppy.player,

i've trying the new cranach edition at a PI4 with BerryBoot setup. At the first run the GUI was loaded properly and i've set a new podcast link and rebootet. At all following boots the peppy version screen is sohwn and after that the GUI stalls with "Loading..." and never gets any further.

The Web Confog GUI and the WinScp Session is responding OK.

i've removed all podcast links and disabled the podcast in the main menu, but th problem ist still there.

What is peppy doing at that stage?

[2019-12-14 17:14:05,355] {web.py:2064} INFO - 304 GET /labels?language=English-USA (192.168.178.26) 4.31ms
[2019-12-14 17:14:05,362] {web.py:2064} INFO - 304 GET /labels?language=English-USA (192.168.178.26) 4.29ms
[2019-12-14 17:14:05,396] {web.py:2064} INFO - 304 GET /labels?language=English-USA (192.168.178.26) 4.32ms
[2019-12-14 17:14:05,441] {web.py:2064} INFO - 304 GET /labels?language=English-USA (192.168.178.26) 4.29ms

EDIT: After All i couldn't fix it. I cleaned the config file -> nothing changed, i deleted the config file -> nothing changed. But it doesn't matter - due to BerryBase Install i could reinstall the image in seconds. Really nice. I will try the podcast setup again (i think it was my fault).

EDIT2:
After adding the another Link (was labeled with RSS). the same error accoured. Is it a Language-related probel with the parser?
-- https://feeds.br.de/geschichten-fuer-kinder/feed.xml --
EDIT3:
The official Link to the main news works!
-- https://www.tagesschau.de/export/podcas ... chau_https --

Regards,
Koepisch
Last edited by Koepisch on Sat Dec 14, 2019 6:21 pm, edited 3 times in total.

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

Re: Peppy player

Sat Dec 14, 2019 5:41 pm

Hi,

More likely the link to the podcast is not the link to the RSS feed. The player can parse only valid RSS files.
As you selected that invalid link it was saved as the current podcast link in file /home/pi/Peppy/current.txt
You can cleanup [current] and [podcasts] section in that file and player should start properly.

Regarding the previous discussion I found the following info which can be helpful:
https://gist.github.com/smathot/1521059 ... 27c2e781fa

Best Regards

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

Re: Peppy player

Sat Dec 14, 2019 6:36 pm

The valid RSS file is a regular XML file. If you open it in browser you should see the the root tag of that file is 'rss'. For example you can open one of the default podcast links in browser and see the structure of the RSS feed file:
https://radio.nac-cna.ca/podcast/explor ... mphony.xml

If it's still not working you can give me the link to your podcast and I can check why it's not working.

Best Regards

Koepisch
Posts: 23
Joined: Fri Mar 18, 2016 10:41 pm

Re: Peppy player

Sat Dec 14, 2019 8:32 pm

This link doesn't work and break the booting
-- https://feeds.br.de/geschichten-fuer-kinder/feed.xml --

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

Re: Peppy player

Sat Dec 14, 2019 11:10 pm

Hmm, weird. I put it to the top of the playlist and it works fine for me:

Image

It also works after shutdown. I'm not sure what could break it in your case. Try to enable logging, that can help in debugging.

Best Regards

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

Re: Peppy player

Sat Dec 14, 2019 11:28 pm

When does it stop working? Is it after shutdown?
Did you change the playlist from the web UI? Can you try to change it in editor (e.g. nano).
Could you check the character encoding of the podcasts.m3u and /home/pi/Peppy/current.txt ? Is it ANSI, ANSI as UTF-8 or UTF-8 ? I usually use notepad++ for that.

Koepisch
Posts: 23
Joined: Fri Mar 18, 2016 10:41 pm

Re: Peppy player

Sun Dec 15, 2019 1:30 pm

No, as i said, that URL is stopping the starting of peppy. The log is attached to the prior post. I've made all changes via Web GUI. I will try to add the URL with nano.

EDIT: I've added the URL via putty and nano. This way it worked! So i assume, that the web gui is changing something on the file.

Other Topic: In my first player (dürer edition) there was a lot of german radio stations. I don't think that i added them manually. Did you remove some stations in the further editions? It's doesn't matter, because i can add them with the new Web Config tool easily.

Regards,
Koepisch

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

Re: Peppy player

Sun Dec 15, 2019 5:31 pm

Thank you Koepisch for the help in debugging the issue!
It looks like Web UI changes the file encoding, I'll fix that in the next release.

I believe the only change I did in the last release in the playlists - I updated dead links to some Rock radio-stations:
https://github.com/project-owner/Peppy/ ... ions/Genre

I hope you will not face the same issue when you will update radio playlists ;)

Best Regards

Koepisch
Posts: 23
Joined: Fri Mar 18, 2016 10:41 pm

Re: Peppy player

Sun Dec 15, 2019 8:01 pm

I've already added a radio station via web GUI without an issue. I think i have only the US-based stations - i think i have missed a language selection step (?!?).

Return to “Media centres”