Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


PeppyMeter and moOde
@nagras:
Marco, would you, please, show us what you see on the command screen (terminal) and what you see in the display?
Best regards,
Francesco
Reply
(05-26-2024, 04:12 AM)fdealexa Wrote: @nagras:
Marco, would you, please, show us what you see on the command screen (terminal) and what you see in the display?
Best regards,
Francesco

Ciao Francesco

Yes, of course, which command?
So I also compare it with the two versions of moode, 9.0.0 and 8.3.9


Marco
Reply
Hi Marco,
The commands are:
Code:
cd /home/pi/PeppyMeter
export DISPLAY=:0.0
sudo python3 peppymeter.py

Best regards 
Francesco
Reply
Photo 
(05-28-2024, 11:10 PM)fdealexa Wrote: Hi Marco,
The commands are:
Code:
cd /home/pi/PeppyMeter
export DISPLAY=:0.0
sudo python3 peppymeter.py

Best regards 
Francesco

Hi Francesco 
The answer to the command is:

Code:
pygame 2.1.2 (SDL 2.26.5, Python 3.11.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile

Which apart from the pygame version is the same as moode version 8.3.9

and the screen picture is

So if I'm not mistaken my problem is in the auto start


Attached Files Thumbnail(s)
   
Reply
By the way, I got tired of seeing

Code:
libpng warning: iCCP: known incorrect sRGB profile

ad nauseum in the output from peppymeter.py.

A quick check of the InterWeb™ suggested that this warning results from the PNG files used in the graphical display.

The fix is trivial if you have ImageMagick installed on the moOde player (or on some other, faster host on which you've cloned the PeppyMeter repo, from which you can copy over the three subdirectories containing PNGS, such as 800x480, to the moOde player when you're done).

NOTE; the install will add about 80MB of code to the Pi. If that offends you, you can always remove the package when you're done. Depending on the model Pi you're using, the install may take a long time (which is why I suggest doing this on a more muscular Linux host).

Code:
sudo apt install imagemagick

cd /home/pi/PepperMeter
mogrify **/*.png

After a while (again, this can be slow on a Pi, see note above), this will return to the command line and you can try starting PeppyMeter again. On my test system, moOde 8.3.9 on a Pi 3B+ wiith official 7" touch screen, the program starts cleanly with only the following output


Code:
pi@m839pi3bp:~/PeppyMeter $ sudo python3 peppymeter.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html

at which point, the random meters take over the display.

NOTE: I've gone through full installs of PeppyMeter on various releases of moOde since it was introduced, but the players had always been configured with "pi" as the default username. It shouldn't be a problem to have a different default username; I just haven't done it.

NOTE: I haven't gotten around to a full install of PeppyMeter on a moOde 9.0.0 player. (A while ago, I did test just the peppyalsa install with peppyalsa-client but went no farther.)

NOTE: Instead of Imagegick and its mogrify, you could  install and use pngcrush (available in the apt repository). It takes a bit of scripting, requires an understanding of its options, and also can take quite a while to chew through all the PNGs, I've convinced myself works, but I like mogrify better.

Just my two cents worth.

Regards,
Kent
Reply
Cheers Kent, I can confirm the png modification works on my moode 9.0.0 image with no warnings too.
Reply
(05-30-2024, 09:52 AM)steve4star Wrote: Cheers Kent, I can confirm the png modification works on my moode 9.0.0 image with no warnings too.

Thanks for that.

Regards,
Kent
Reply
Unfortunately my joy did not last.
It seems with the newer version of peppymeter and pygame 2.1.2 there is some sort of memory leak going on.
Every time the meter changes, the process consumes another ~2mb.
Watched it creep up and up using htop.
Reply
Kent, Steve and all,
It could be nice if who has already converted them propose a zip to the Peppymeter author.
He is normaly available on Diyaudio (thread dedicated to peppymeter).
What do you think about this?
Best regards and thanks,
Francesco
Reply
(05-30-2024, 02:43 PM)fdealexa Wrote: Kent, Steve and all,
It could be nice if who has already converted them propose a zip to the Peppymeter author.
He is normaly available on Diyaudio (thread dedicated to peppymeter).
What do you think about this?
Best regards and thanks,
Francesco

I agree, Francesco. I'll sling a post his way.

Regards,
Kent
Reply


Forum Jump: