08-18-2022, 09:52 PM
(08-18-2022, 05:50 PM)adolfotregosa Wrote:(08-18-2022, 01:24 PM)fdealexa Wrote:(08-18-2022, 11:07 AM)adolfotregosa Wrote: @fdealexa please add this to your tutorial or the touchscreen will not react when you touch it with peppymeter running
[current]
.....
exit.on.touch = False change to exit.on.touch = True
......
Now, your script to start peppymeter needs a tweak, without it the screen does not turn off when you stop/pause the music via web browser. Can you, please make it so that when you pause the music it also stops peppymeter, please ?
Hi Adolfo,
It is my opinion that the tutorial has to be for PeppyMeter as is; then the "Autostart" could be considered as an option, where, of course, the modification of the parameter has to be reported.
With reference to your second request, I will put it in my "to do list".
Thanks and best regards,
Francesco
Hi Francesco, I did the work for you.
File attached: EDIT: updated file next posts
When you press play I made it wait 4 seconds so moodeaudio has time to wake up screen, when you press pause it stops peppymeter and if you touch the touchscreen while peppymeter is working it will restart on song change and if you press pause it will let the screen turn off since peppymeter is no longer working.
Seams to me a very good compromise until @Tim Curtis integrates peppymeter wink wink, hmmm ??
Just an fyi that the interval for screen wake-up on play is 6 seconds. Have a look at script (link) below. It gets executed just before /daemon/worker.php startup finishes.
https://github.com/moode-player/moode/bl...atchdog.sh
PeppyMeter is super nice but I'm leaning toward a Web VU Meter implementation. It's basically a daemon that reads Loopback or a fifo pipe and then streams PCM amplitude data to a front-end Javascript routine that displays the meters. The meters could be rendered at any size and with custom backgrounds etc and the solution should be lightweight and efficient.