Install peppy meter in volumio

At this point, it is just a basic pipe. I don’t know for dsd file what is required. We’ll see later :wink:
edit : Do not hesitate to gives your tips to get it work!

Peppymeter plugin would be the best! :hugs:

step by step :wink:

3 Likes

and don’t trip over your peppy only step by steppy…

Hello!
A first version of PeppyMeter plugin is out!
It requires testing :wink:
You need a Buster version with modular_alsa enabled and other fixes (node path, etc).
You need touch_display installed
Once ready, just install the plugin, enable and… that’s it!
Tested only with RPI4 + official 7"
The link : https://github.com/balbuze/volumio-plugins/tree/alsa_modular/plugins/audio_interface/peppyalsapipe



1 Like

is this running on 3.10 @balbuze ? getting errors…

This command will install the plugin on your device

Compressing the plugin
No modules found, running “npm install”
/bin/sh: 1: /usr/local/bin/npm: not found
Error installing node modules: Error: Command failed: /usr/local/bin/npm install --production
/bin/sh: 1: /usr/local/bin/npm: not found

/bin/mv: cannot stat ‘*.zip’: No such file or directory
child_process.js:650
throw err;
^

Error: Command failed: /bin/mv .zip /tmp/plugins/peppyMeter.zip
/bin/mv: cannot stat '
.zip’: No such file or directory

at checkExecSyncError (child_process.js:607:13)
at execSync (child_process.js:647:13)
at install (/volumio/pluginhelper.js:689:9)
at Object.<anonymous> (/volumio/pluginhelper.js:751:9)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)

volumio@music:~/pipe$

Tested in 3.014 only…
before trying, you need to
Disable plugin such as equalizer if any and

sudo ln -s "$(which node)" /usr/local/bin/node
sudo ln -s "$(which npm)" /usr/local/bin/npm
sudo ln -s "$(which npm)" /bin/npm

and modular_alsa enabled

cd /volumio
volumio pull -b dev/buster/alsa-pipeline https://github.com/timothyjward/Volumio2
cd ..
cd /volumio
nano .env

and change lines

WRITE_MPD_CONFIGURATION_ON_STARTUP=true
MODULAR_ALSA_PIPELINE=true

and restart

volumio vrestart

and
You have to be root

su
echo ‘/opt/vc/lib’ >/etc/ld.so.conf.d/00-vmcs.conf

and

/sbin/ldconfig

Installing is long because it needs to compile peppyalsa. Be patient… But when the plugin appears in UI, it is ready!

@balbuze asla seems to fail after it all can’t play songs any more…

su
echo ‘/opt/vc/lib’ >/etc/ld.so.conf.d/00-vmcs.conf

and

/sbin/ldconfig

seems to end on bash-5.0#… pasted the text in it …

btw the 3.10 seems to be a bit diffirent then the 3.14

Have you enabled modular_alsa?
Have you sound with the plugin desactivated?
what is /etc/asound.conf ?

at the moment i have no sound any more how to enable modular_asla installed it …

pcm.!default {
    type             copy
    slave.pcm       "volumio"
}

pcm.volumio {
    type             copy
    slave.pcm       "volumioPeppyalsa"
}

pcm.volumioPeppyalsac {
    type lfloat
    slave.pcm "volumioPeppyalsac"
    slave.format "FLOAT"
}

pcm.volumioPeppyalsa  {
	type meter
        slave.pcm "postpeppyalsa"
        scopes.0 peppyalsa
}


pcm_scope.peppyalsa {
        type peppyalsa
        decay_ms 400
        meter "/tmp/myfifopeppy"
        meter_max 100
        meter_show 1
     
}

pcm_scope_type.peppyalsa {
        lib /usr/local/lib/libpeppyalsa.so
}

pcm.postpeppyalsac {
    type lfloat
    slave.pcm "postpeppyalsa"
    slave.format "S24_LE"
}

pcm.postpeppyalsa {
  type copy
  slave.pcm "postPeppyalsa"
}


pcm.postPeppyalsa {
    type             copy
    slave.pcm       "volumioOutput"
}


# There is always a plug before the hardware to be safe
pcm.volumioOutput {
    type plug
    slave.pcm "volumioHw"
}

pcm.volumioHw {
    type hw
    card 3
}

This seems ok!
Can you check if peppyalsa is well compiled/installed ?

ls /usr/local/lib/libpeppyalsa.*

can not access ```
ls /usr/local/lib/libpeppyalsa.*

it's not there only python 2.7 & python 3.7 and 2 libsox files

check if a peppyalsa folder exists in /tmp
if yes go in it and try

sudo make install

not there…

Remove the plugin and resinstall it…

ok …will do…`
volumio@music:~$ cd /volumio
volumio@music:/volumio$ volumio pull -b dev/buster/alsa-pipeline https://github.com/timothyjward/Volumio2
Stopping Volumio
[sudo] password for volumio:
Backing Up current Volumio folder in /volumio-current
Cloning Volumio Backend repo
Cloning branch dev/buster/alsa-pipeline from repository https://github.com/timothyjward/Volumio2
Cloning into ‘/volumio’…
remote: Enumerating objects: 50, done.
remote: Counting objects: 100% (50/50), done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 24473 (delta 30), reused 33 (delta 21), pack-reused 24423
Receiving objects: 100% (24473/24473), 28.95 MiB | 12.44 MiB/s, done.
Resolving deltas: 100% (16578/16578), done.
Copying Modules
Copying UI
Copying Volumio3 UI
Getting Network Manager
–2020-12-31 11:15:23-- https://raw.githubusercontent.com/volumio/Build/master/volumio/bin/wireless.js
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.128.133, 151.101.192.133, 151.101.0.133, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.128.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 11918 (12K) [text/plain]
Saving to: ‘/volumio/app/plugins/system_controller/network/wireless.js’

/volumio/app/plugin 100%[===================>] 11.64K --.-KB/s in 0.001s

2020-12-31 11:15:23 (8.20 MB/s) - ‘/volumio/app/plugins/system_controller/network/wireless.js’ saved [11918/11918]

Setting Proper permissions
Pull completed, restarting Volumio
Done
volumio@music:/volumio$
`

EXIT_ON_EXCEPTION=true
PUSH_UPDATES_COMM=true
WARNING_ON_PLUGIN_INSTALL=false
NODE_MOUNT_HANDLER=false
SHOW_ADVANCED_SETTINGS_MODE_SELECTOR=true
HIDE_BROWSE_SOURCES_VISIBILITY_SELECTOR=false
WRITE_MPD_CONFIGURATION_ON_STARTUP=false
ALLOW_CD_RIP_ON_INTERNAL_MEMORY=true
HIDE_TESTMODE_SELECTOR=false
DEFAULT_PLAYBACK_MODE_CONTINUOUS=true
ENABLE_INPUT_STREAMING=false
ALWAYS_ON_INPUT_STREAMING=false
TIDAL_CLOUD=true
QOBUZ_CLOUD=true
WRITE_MPD_CONFIGURATION_ON_STARTUP=true
MODULAR_ALSA_PIPELINE=true

saved…

volumio@music:/volumio$ cd …
volumio@music:/$ cd /volumio
volumio@music:/volumio$ nano .env
volumio@music:/volumio$ nano .env
volumio@music:/volumio$ volumio vrestart
volumio@music:/volumio$ reboot

still nothing in tmp/

now the bash-5.0 2 lines…

volumio plugin install

it seems not getting to the tmp..@balbuze

It is supposed to be downloaded from github. Have you problem with that?
And wait while installing, it may takes several minutes…

gonna try the 3.14 this hangs on 10%

Nice balbuze :slight_smile: the first step is done. It will be great that also others users will test this in order to find more use cases so that col dev to integrated of necessary the missing info in the release.
I will also try it next week when I will go home.