Posts: 609
Threads: 5
Joined: Mar 2020
Reputation:
34
(03-05-2025, 08:56 PM)Syma753dfx Wrote: Thanks Francesco,
I'll try to explain, in the configurations / peripherals / display, there is an option to darken the screen "screen blank" after a preset time (10 sec, 20 sec ....1 mn etc). I wonder if it is possible to use this command by replacing the black screen with the Peppy Meter.
Cheers
Maybe, but it might mean modifying moOde (I am not capable and up to it and would not want to).
Tim, a while back, mentioned adding PeppyMeter integration to ToDoList... that might be an idea.
Best regards,
Francesco
P.S.: Thanks Kent for your message.
Posts: 14,526
Threads: 332
Joined: Mar 2018
Reputation:
595
(03-05-2025, 10:11 PM)fdealexa Wrote: (03-05-2025, 08:56 PM)Syma753dfx Wrote: Thanks Francesco,
I'll try to explain, in the configurations / peripherals / display, there is an option to darken the screen "screen blank" after a preset time (10 sec, 20 sec ....1 mn etc). I wonder if it is possible to use this command by replacing the black screen with the Peppy Meter.
Cheers
Maybe, but it might mean modifying moOde (I am not capable and up to it and would not want to).
Tim, a while back, mentioned adding PeppyMeter integration to ToDoList... that might be an idea.
Best regards,
Francesco
P.S.: Thanks Kent for your message.
No bandwidth on my end but It would be a good project for an interested dev :-)
Posts: 8
Threads: 1
Joined: Mar 2025
Reputation:
0
Thanks for the info, let's see if someone with the skills and desire will implement this feature.
Posts: 23
Threads: 0
Joined: Apr 2024
Reputation:
0
(02-10-2021, 06:55 PM)fdealexa Wrote: First of all let us open a putty session on our moOde system and run:
and take care of the result because it will be useful later.
PeppyMeter needs PeppyAlsa to run: so we need first to install and adapt it to our environment.
Code: git clone https://github.com/project-owner/peppyalsa.git
cd peppyalsa
sudo apt-get install build-essential autoconf automake libtool libasound2-dev libfftw3-dev
aclocal && libtoolize
autoconf && automake --add-missing
./configure && make
sudo make install
Now we have to create 2 files with the same contents (in the third row (slave.pcm) we have to put the default output we had in "aplay -l": normally "hw:0,0" or "hw:1,0")
Code: sudo nano /etc/asound.conf
Copy and past the following content:
Code: pcm.peppyalsa {
type meter
slave.pcm "hw:1,0"
scopes.0 peppyalsa
}
pcm_scope.peppyalsa {
type peppyalsa
decay_ms 400
meter "/var/tmp/peppyfifo"
meter_max 100
meter_show 0
spectrum "/var/tmp/peppyfifosa"
spectrum_max 100
spectrum_size 30
}
pcm_scope_type.peppyalsa {
lib /usr/local/lib/libpeppyalsa.so
}
Quote:^o and Enter to save and then ^x to exit.
Let's create the second file:
Code: sudo cp /etc/asound.conf /home/pi/.asoundrc
At this point we have to patch an important file that create the configuration of moOde MPD:
Code: sudo nano /var/www/inc/playerlib.php
Quote:^-1994 to go to row 1994 and modify the current content from:
Code: "name \"ALSA default\"\n" . "device \"hw:" . $device . ",0\"\n",
to the new content:
Code: "name \"ALSA default\"\n" . "device \"peppyalsa\"\n",
^o and Enter to save and then ^x to exit.
Now reboot the system and try to listen any music (a radio is the simplest way) if it is still alive!!! If not we have to troubleshoot where we made a mistake.
If everything is ok let's continue:
Code: cd /home/pi/peppyalsa/src
gcc peppyalsa-client.c -o peppyalsa-client
At this point let's test all the chain:
Code: /home/pi/peppyalsa/src/peppyalsa-client /var/tmp/peppyfifo
Listening the music we should see on the putty screen a couple of bar moving with the music intensity, as the following picture:
Now we are closer to the end: we have, now, to install PeppyMeter
Code: cd /home/pi
git clone https://github.com/project-owner/PeppyMeter.git
sudo apt-get install python3-pygame
cd /home/pi/PeppyMeter
Now we have to configure our PeppyMeter:
Quote:Code: sudo nano /home/pi/PeppyMeter/config.txt
modifying the following contents:
Code: "screen.size = large"
"framebuffer.device = /dev/fb0"
"mouse.device = /dev/input/event0"
"pipe.name = /var/tmp/peppyfifo"
^o and Enter to save and then ^x to exit.
Now we have to modify the program to disable the double buffer:
Quote:Code: sudo nano /home/pi/PeppyMeter/peppymeter.py
^-142 to go to row 142 and modify the current content from:
Code: self.util.PYGAME_SCREEN = pygame.display.set_mode((screen_w, screen_h), pygame.DOUBLEBUF, depth)
to the new content:
Code: self.util.PYGAME_SCREEN = pygame.display.set_mode((screen_w, screen_h))
^o and Enter to save and then ^x to exit.
At this point we have finished. To see the meter on the default display we have to start listening music and:
Code: cd /home/pi/PeppyMeter
sudo python3 peppymeter.py > /dev/fb0
We should see, on the display, a kind of meter that changes every 20 seconds (time can be changed in the config.txt).
On the Putty screen appears a couple of message every change.
I suggest that, once you have decided what you prefer, we have to stop the meter:
Quote:^c^c
The available type of meter, for the "large" size we have choosen, at the moment, are:
Quote:bar
blue
vintage
dash
gas
rainbow
grunge
royal
compass
gold
black-white
white-red
orange
blue-2
emerald
red
tube
then configure our PeppyMeter:
Quote:Code: sudo nano /home/pi/PeppyMeter/config.txt
modifying the following contents. From:
to e.g.:
^o and Enter to save and then ^x to exit.
Then start again:
Code: cd /home/pi/PeppyMeter
sudo python3 peppymeter.py > /dev/fb0
Enjoy listening music... and its graphic
Posts: 23
Threads: 0
Joined: Apr 2024
Reputation:
0
Hi devs!
I am new to this environment and not too knowledgeable with promgramming but, i have few project that ive done using volumio.
there's a friend of mine refer to join this forum and he says some of this devs are very helpful with this kind of project specially in moode environment.
currently i am using these hardware and version of os:
moode os 9.3.2
raspberry pi 4b 2gb
es9018k2m from https://www.audiophonics.fr/en/dac-modul...16687.html
psu are separated rpi power filter board to rpi and 3wire line for es9018k2m dac.
4 inch lcd hdmi c from http://www.lcdwiki.com/4inch_HDMI_Display-C
rotary encoder.
Now, my concerns is/are i've been stuck with this procedure ,
sudo cp /etc/asound.conf /home/pi/.asoundrc and it says cp:cannot create regular file 'home/pi/ .asound' : No such file or directory.
Regards,
Posts: 2,115
Threads: 46
Joined: Mar 2020
Reputation:
99
I'd guess it is because the instructions assume that you have a user called "pi". That would have been the case a few years ago before the security was tightened up. Now you would (I expect) have to substitute the /pi/ bit with what ever user you set up in the Pi Imager when you put moOde on your SD card.
----------------
Robert
Posts: 609
Threads: 5
Joined: Mar 2020
Reputation:
34
Hi kuyadreiph,
you probably follow the instruction reported, on this thread, during the time.
Would you please follow the instruction reported in this GITHUB on a scratch installation and report any issue?
Best regards and thanks,
Francesco
Posts: 16
Threads: 4
Joined: Apr 2025
Reputation:
0
I had a lot of these issues described above before.
Now I did the entire installation one more time and testing every step.
The LAST thing I installed was Spotify.
So basically the moOde player and PeppyMeter works well in auto start function before I install / activate the Spotify renderer.
I tested with web radio and the VU meters show up and show the volume.
When I pause WebRadio they disappear just the way you expect it to happen.
Once I activate Spotify they wont work and I have all sorts of issues.
Can anyone help on that ?
Posts: 609
Threads: 5
Joined: Mar 2020
Reputation:
34
I am studying the issue and I am trying a solution.
I will come back.
Please do not duplicate the issue in different thread.
Best regards and thanks,
Francesco
Posts: 609
Threads: 5
Joined: Mar 2020
Reputation:
34
Hi BjoernStefan,
please find below some action to do:
1. Remove Autostart and restore config default value
Code: sudo rm -r /home/pi/PeppyMeter
sudo systemctl disable fda_autopeppy.service
sudo rm -r /etc/systemd/system/fda_autopeppy.service
restore the parameter in the config.txt
Code: nano /home/pi/PeppyMeter/config.txt
going to replace the content of only the line below and leaving everything else unchanged:
Code: "exit.on.touch = False"
2. And then install the new version (has been easyer to modify - thanks to Cloporte33440)
install evdev lib
Code: sudo apt-get install python3-evdev
# manually unzip and copy peppymeter.control.py and peppymeter_control.service to /home/pi/PeppyMeter/ (File Attached)
create and start service
Code: sudo cp /home/pi/PeppyMeter/peppymeter_control.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable peppymeter_control
sudo service peppymeter_control start
Best regards and let us know,
Francesco
PeppyMeter_Control - Last.zip (Size: 1.88 KB / Downloads: 8)
|