Thank you for your donation!


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


PeppyMeter and moOde
(01-29-2023, 11:28 AM)Patolog1964 Wrote: Hi.
Please help. I did a fresh install of the latest Modee. Installed as instructed by PeppyMeter.
I get this message when I start.
root@Pi4:/home/pi# cd /home/pi/PeppyMeter
root@Pi4:/home/pi/PeppyMeter# sudo python3 peppymeter.py
pygame 1.9.6
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
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
^CTraceback (most recent call last):
 File "/home/pi/PeppyMeter/peppymeter.py", line 296, in <module>
   pm.start_display_output()
 File "/home/pi/PeppyMeter/peppymeter.py", line 220, in start_display_output
   clock.tick(self.util.meter_config[FRAME_RATE])
KeyboardInterrupt
^CException ignored in: <module 'threading' from '/usr/lib/python3.9/threading.py'>
Traceback (most recent call last):
 File "/usr/lib/python3.9/threading.py", line 1428, in _shutdown
   lock.acquire()
Where did I go wrong please?
I have PI4, Usb dac IFI, 7,9 display waveshare.
Thanks in advance for any help.
Regards Roman

Hello Roman,
the "libpng warning: iCCP: known incorrect sRGB profile" it is a warning only. It is due to a different colour definition in the .png files (3 messages for each displayed vumeter type); the other 4 lines are normal message for a forced program stop (^C).
So the message you see are normal; if you don't see anything let us try the follow:
1. when you start the peppymeter (sudo python3 peppymeter.py), what does it happen on the display?
2. what is the resolution of your display?
3. could you please send the result of the
Code:
cat /home/pi/PeppyMeter/config.txt
 
Best regards,
Francesco
Reply
1. After entering the command, the display only flashes. You cannot stop the program even with the reboot command. Only disconnect the power supply
2.1280x400
Here is the listing:
root@Pi4:/home/pi# cat /home/pi/PeppyMeter/config.txt
[current]
meter = random
random.meter.interval = 20
meter.size = large
screen.width =
screen.height =
exit.on.touch = False
stop.display.on.touch = False
output.display = True
output.serial = False
output.i2c = False
output.pwm = False
output.http = False
use.logging = False
use.cache = True
frame.rate = 30

[sdl.env]
framebuffer.device = /dev/fb0
mouse.device = /dev/input/event0
mouse.driver = TSLIB
mouse.enabled = True
video.driver = dummy
video.display = :0
double.buffer = False
no.frame = False

[serial.interface]
device.name = /dev/serial0
baud.rate = 9600
include.time = False
update.period = 0.1

[i2c.interface]
port = 1
left.channel.address = 0x21
right.channel.address = 0x20
output.size = 10
update.period = 0.1

[pwm.interface]
frequency = 500
gpio.pin.left = 24
gpio.pin.right = 25
update.period = 0.1

[http.interface]
target.url = http://localhost:8000/vumeter
update.period = 0.033

[web.server]
http.port = 8001

[data.source]
type = pipe
polling.interval = 0.033
pipe.name = /var/tmp/peppyfifo
volume.constant = 80.0
volume.min = 0.0
volume.max = 100.0
volume.max.in.pipe = 100.0
step = 6
mono.algorithm = average
stereo.algorithm = new
smooth.buffer.size = 4
root@Pi4:/home/pi#

Best regards,
Roman
Reply
Hi Roman,
let's try changing (in config.txt) from:
meter.size = large
to
meter.size = wide
Regards,
Francesco
Reply
Bingo...That's it.
Thank you very much for the quick help.
Thank you very much.
Regards
Roman
Reply
Hi Roman,
now you can choice the vumeter you want, instead of the rotation.
Glad you are happy.
Best regards,
Francesco
Reply
I would send you a photo, but I can't insert it here.
I'm probably too old for this
Send for mail..
Reply
(01-29-2023, 04:55 PM)Patolog1964 Wrote: I would send you a photo, but I can't insert it here.
I'm probably too old for this
Send for mail..

I am 9 years older than you!!!
Regards,
Francesco
Reply
Snad se to povedlo.. Big Grin
[Image: 20230129-175844.jpg]
Reply
Hi Francesco.
I'm asking for advice. It's already embarrassing to bother me all the time.
Peppy is working, but since yesterday the pointer has stopped working. It's standing still and I don't know what happened.
Can you advise please?
Regards
Roman
Reply
(01-31-2023, 09:32 AM)Patolog1964 Wrote: Hi Francesco.
I'm asking for advice. It's already embarrassing to bother me all the time.
Peppy is working, but since yesterday the pointer has stopped working. It's standing still and I don't know what happened.
Can you advise please?
Regards
Roman

Hello Roman,
have you changed anything?
Please try to see if the Fifo is running:
Code:
/home/pi/peppyalsa/src/peppyalsa-client /var/tmp/peppyfifo
 
Listening the music you should see on the putty screen a couple of bar moving with the music intensity.


Please let us know.
Regards,
Francesco
Reply


Forum Jump: