Posts: 568
Threads: 5
Joined: Mar 2020
Reputation:
31
09-22-2021, 06:00 AM
(This post was last modified: 09-22-2021, 06:21 AM by DRONE7.
Edit Reason: code tags...please use them :-)
)
(09-22-2021, 05:44 AM)Pranjal Wrote: (09-22-2021, 04:53 AM)fdealexa Wrote: (09-22-2021, 04:11 AM)Pranjal Wrote: Thank you everyone, phew one step crossed. Now hit another hurdle, While testing the working of peppymeter I get the undermentioned error
pi@moode:~/PeppyMeter $ sudo python3 peppymeter.py
pygame 1.9.4.post1
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "peppymeter.py", line 290, in <module>
pm.init_display()
File "peppymeter.py", line 150, in init_display
pygame.display.init()
pygame.error: Unable to open mouse
Can I please receive your esteemed guidance how to cross this hurdle
Hi Pranjal,
Have you modified the
Quote:/home/pi/PeppyMeter/config.txt
as reported on the tutorial?
I did Francesco, but in Moode 7.3, this option is not there
Code: "screen.size = large"
Could you please try:
Code: cat /home/pi/PeppyMeter/config.txt
Yes certainly, the results are as below :-
Code: pi@moode:~ $ cat /home/pi/PeppyMeter/config.txt
[current]
meter = random
random.meter.interval = 20
meter.size = large
screen.width =400
screen.height =800
exit.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
-------------------------------------------------------------------------
Thanks and regards,
Francesco
Please help
Hi dear,
The "meter size" and "screen size" difference is due to the new Peppymeter version: sorry.
The simptom seems to be related to the output display: have you a flat touch screen directly connected to the display port of your Raspberry?
Regards,
Francesco
Posts: 19
Threads: 0
Joined: Sep 2021
Reputation:
0
09-22-2021, 06:08 AM
(This post was last modified: 09-22-2021, 06:30 AM by DRONE7.
Edit Reason: Code tags
)
(09-22-2021, 06:00 AM)fdealexa Wrote: (09-22-2021, 05:44 AM)Pranjal Wrote: (09-22-2021, 04:53 AM)fdealexa Wrote: (09-22-2021, 04:11 AM)Pranjal Wrote: Thank you everyone, phew one step crossed. Now hit another hurdle, While testing the working of peppymeter I get the undermentioned error
pi@moode:~/PeppyMeter $ sudo python3 peppymeter.py
pygame 1.9.4.post1
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "peppymeter.py", line 290, in <module>
pm.init_display()
File "peppymeter.py", line 150, in init_display
pygame.display.init()
pygame.error: Unable to open mouse
Can I please receive your esteemed guidance how to cross this hurdle
Hi Pranjal,
Have you modified the
Quote:/home/pi/PeppyMeter/config.txt
as reported on the tutorial?
I did Francesco, but in Moode 7.3, this option is not there
Code: "screen.size = large"
Could you please try:
Code: cat /home/pi/PeppyMeter/config.txt
Yes certainly, the results are as below :-
Code: pi@moode:~ $ cat /home/pi/PeppyMeter/config.txt
[current]
meter = random
random.meter.interval = 20
meter.size = large
screen.width =400
screen.height =800
exit.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
-------------------------------------------------------------------------
Thanks and regards,
Francesco
Please help
Hi dear,
The "meter size" and "screen size" difference is due to the new Peppymeter version: sorry.
The simptom seems to be related to the output display: have you a flat screen directly connected to the display port of your Raspberry?
Regards,
Francesco Yes I have a 5" screen connected directly to the RPI pins and the HDMI out of the RPi is connected to the HDMI in of the screen
Posts: 568
Threads: 5
Joined: Mar 2020
Reputation:
31
09-22-2021, 06:28 AM
(This post was last modified: 09-22-2021, 07:58 AM by fdealexa.)
Hello,
All the procedure has been tested with a 7' touch screen directly connected to the raspberry display port.
Anyway let us try to disabile the mouse in the [sei.env] section of the /home/pi/PeppyMeter/config.txt.
Code: mouse.enabled = False
Let me know, good luck.
Francesco
Posts: 568
Threads: 5
Joined: Mar 2020
Reputation:
31
Could you please try also the following command:
and send back the result.
Thanks,
Francesco
Posts: 19
Threads: 0
Joined: Sep 2021
Reputation:
0
09-22-2021, 11:34 AM
(This post was last modified: 09-22-2021, 11:48 AM by Pranjal.)
(09-22-2021, 06:28 AM)fdealexa Wrote: Hello,
All the procedure has been tested with a 7' touch screen directly connected to the raspberry display port.
Anyway let us try to disabile the mouse in the [sei.env] section of the /home/pi/PeppyMeter/config.txt.
Code: mouse.enabled = False
Let me know, good luck.
Francesco
Your are fantastic Francesco.!!! done and working . Thanks so much man.. cant be grateful enough
Now Roadblock No 3
pi@moode: ~ $ sudo cp /home/pi/PeppyMeter/peppymeter.service /etc/systemd/system/
cp: cannot stat '/etc/systemd/system/sudo': No such file or directory
cp: cannot stat 'cp': No such file or directory
cp: warning: source file '/home/pi/PeppyMeter/peppymeter.service' specified more than once
pi@moode: ~ $
Hope I am not troubling you too much. I am sure it is a learning curve for us all.
Posts: 1,870
Threads: 43
Joined: Mar 2020
Reputation:
85
(09-22-2021, 11:34 AM)Pranjal Wrote: (09-22-2021, 06:28 AM)fdealexa Wrote: Hello,
All the procedure has been tested with a 7' touch screen directly connected to the raspberry display port.
Anyway let us try to disabile the mouse in the [sei.env] section of the /home/pi/PeppyMeter/config.txt.
Code: mouse.enabled = False
Let me know, good luck.
Francesco
Your are fantastic Francesco.!!! done and working . Thanks so much man.. cant be grateful enough
Now Roadblock No 3
pi@moode:~ $ sudo cp /home/pi/PeppyMeter/peppymeter.service /etc/systemd/system/
cp: cannot stat '/etc/systemd/system/sudo': No such file or directory
cp: cannot stat 'cp': No such file or directory
cp: warning: source file '/home/pi/PeppyMeter/peppymeter.service' specified more than once
pi@moode:~ $
Hope I am not troubling you too much. I am sure it is a learning curve for us all.
From the error messages, it looks for all the world like the command you issued was:
Code: sudo cp /home/pi/PeppyMeter/peppymeter.service /etc/systemd/system/sudo cp /home/pi/PeppyMeter/peppymeter.service /etc/systemd/system/
----------------
Robert
Posts: 19
Threads: 0
Joined: Sep 2021
Reputation:
0
(09-22-2021, 12:11 PM)the_bertrum Wrote: (09-22-2021, 11:34 AM)Pranjal Wrote: (09-22-2021, 06:28 AM)fdealexa Wrote: Hello,
All the procedure has been tested with a 7' touch screen directly connected to the raspberry display port.
Anyway let us try to disabile the mouse in the [sei.env] section of the /home/pi/PeppyMeter/config.txt.
Code: mouse.enabled = False
Let me know, good luck.
Francesco
Your are fantastic Francesco.!!! done and working . Thanks so much man.. cant be grateful enough
Now Roadblock No 3
pi@moode:~ $ sudo cp /home/pi/PeppyMeter/peppymeter.service /etc/systemd/system/
cp: cannot stat '/etc/systemd/system/sudo': No such file or directory
cp: cannot stat 'cp': No such file or directory
cp: warning: source file '/home/pi/PeppyMeter/peppymeter.service' specified more than once
pi@moode:~ $
Hope I am not troubling you too much. I am sure it is a learning curve for us all.
From the error messages, it looks for all the world like the command you issued was:
Code: sudo cp /home/pi/PeppyMeter/peppymeter.service /etc/systemd/system/sudo cp /home/pi/PeppyMeter/peppymeter.service /etc/systemd/system/
hi, no I just issued the command sudo cp /home/pi/PeppyMeter/peppymeter.service /etc/systemd/system/
Posts: 13,437
Threads: 305
Joined: Mar 2018
Reputation:
545
Whenever you create or update a systemd unit you need to ether run the command below or reboot so systemd picks up the change.
Code: sudo systemctl daemon-reload
Posts: 568
Threads: 5
Joined: Mar 2020
Reputation:
31
09-22-2021, 07:41 PM
(This post was last modified: 09-22-2021, 07:46 PM by fdealexa.)
Hi
you have, probably, copied twice the command:
Code: sudo cp /home/pi/PeppyMeter/peppymeter.service /etc/systemd/system/
Regards,
Francesco
Posts: 568
Threads: 5
Joined: Mar 2020
Reputation:
31
(09-22-2021, 12:37 PM)Tim Curtis Wrote: Whenever you create or update a systemd unit you need to ether run the command below or reboot so systemd picks up the change.
Code: sudo systemctl daemon-reload
@ Tim Curtis
Hello Tim,
Of course you are right, but everything is reported in the GITHUB that Pranjal is following, in particular in the section: Creation of scripts & service .
Thank you very much and best regards,
Francesco
|