Thank you for your donation!


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


PeppyMeter and moOde
@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 ?
Reply
(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
Reply
(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 Cool Cool Big Grin Big Grin  wink wink, hmmm ??
Reply
(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:

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 Cool Cool Big Grin Big Grin  wink wink, hmmm ??
Hi Adolfo,
very good, thanks.
I have made a modification to your code because the status of "pause", in case of radio station is "stop": so I added this lines:

Code:
   elif song['state'] == "stop" and prevstat == "ON":
        prevstat = "OFF"
        subprocess.run(["sudo", "pkill","-f", "peppymeter.py"])
after the lines:

Code:
   elif song['state'] == "pause" and prevstat == "ON":
        prevstat = "OFF"
        subprocess.run(["sudo", "pkill","-f", "peppymeter.py"])
So it runs also with radio.
Best regards and thanks,
Francesco
Reply
(08-18-2022, 08:14 PM)fdealexa Wrote:
(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:

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 Cool Cool Big Grin Big Grin  wink wink, hmmm ??
Hi Adolfo,
very good, thanks.
I have made a modification to your code because the status of "pause", in case of radio station is "stop": so I added this lines:

Code:
   elif song['state'] == "stop" and prevstat == "ON":
        prevstat = "OFF"
        subprocess.run(["sudo", "pkill","-f", "peppymeter.py"])
after the lines:

Code:
   elif song['state'] == "pause" and prevstat == "ON":
        prevstat = "OFF"
        subprocess.run(["sudo", "pkill","-f", "peppymeter.py"])
So it runs also with radio.
Best regards and thanks,
Francesco

Ok, lets make it more elegant.

What you want is:

    elif ( song['state'] == "pause" or song['state'] == "stop" )and prevstat == "ON":
        prevstat = "OFF"
        subprocess.run(["sudo", "pkill","-f", "peppymeter.py"])


Corrected file attached.


Attached Files
.zip   fda_autopeppy.zip (Size: 875 bytes / Downloads: 10)
Reply
much more elegant!!!!
Reply
(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 Cool Cool Big Grin Big Grin  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.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
(08-18-2022, 09:52 PM)Tim Curtis Wrote:
(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 Cool Cool Big Grin Big Grin  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.

Very nice, thank you so much!! Although in my testing 4 seconds seams to work fine lol go figure.
 
In my opinion, that is too much work to achieve "the same result" when peppymeter works perfectly fine IMO. I can send camilladsp output to it and from it to plughw, multichannel works fine too. 

Why not really consider simply integrating peppymeter ? It works fine, seams stable and the amount of work would be a lot less, I think. Well this is just my opinion.
Reply
The source code lets you decide for yourself what number of seconds works.

If you think the peppy integration into moOde is easy then do the work and propose a PR to the project.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
(08-19-2022, 01:40 AM)Tim Curtis Wrote: The source code lets you decide for yourself what number of seconds works.

If you think the peppy integration into moOde is easy then do the work and propose a PR to the project.

We already have it pretty much integrated without... heck myself didn't touch a single line of moodes code! 
Using the correct audio chain is easy, I already showed how and moode integration basically means moode only has to start peppy when you press play and stop it when we touch the screen or press pause which we already kinda also have working, so, honestly I didn't follow. 

The only thing moode had to implement to make it easier is a page to enable/disable the service, configure the meters and timeouts.

Seams to me a heck of a lot easier than to create from scratch what you were thinking about,  IMO.

What am I missing ? Any conflict with external dac ? Sorry, I honestly didn't follow.
Reply


Forum Jump: