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