[PLUGIN] Custom Autoplay

Hi,

I just wrote a simple Autoplay plugin for Volumio3 that does not depend on the current playlist.
It clears the playlist and plays a configurable json command (syntax from REST_API).

I wrote this plugin for my own use case (playing a radio station on every startup), but maybe it’s also useful for somebody else.

2 Likes

Hi,

Thank you, great idea.
I will test it asap.

Are you planning to move it on the way to the official plugin store ?

Best Regards
Josef

Very good thing!
I missed this feature.
Are there any screenshots?

1 Like

Works like a charm! Thanks

1 Like

Are there any screenshots?

No, but there is not really much to see (on/off + command on the settings page).

Are you planning to move it on the way to the official plugin store ?

Not really. I’m not a regular user, my project was part of a Christmas present :wink:
Also I don’t really like the requirement to register to use the plugin store.
But it’s MIT licensed so if you like you can just fork it and add it to the store.

Hi there,
can someone explain to me how the plugin can be installed?
Greetings Andreas

volumio plugin install

1 Like

i downloaded the zip, unpacked it on the pc scped it to volumio, changed into it’s directory started volumio pugin install and got an error, then i used sudo and got this:

This command will install the plugin on your device

Compressing the plugin
Plugin succesfully compressed
Progress: 10
Status :Plugin wird geladen
nloading plugin at http://127.0.0.1:3000/plugin-serve/custom_autoplay.zip

after that nothing happens. i am lost, what am i doing wrong?

i think you forgot npm update

1 Like

Thanks for your help, but npm update doesn’t change the outcome
With sudo it’s the same as i said, without sudo it’s this

volumio plugin install

This command will install the plugin on your device

Compressing the plugin
Plugin succesfully compressed
/bin/mv: inter-device move failed: ‘custom_autoplay.zip’ to ‘/tmp/plugins/custom_autoplay.zip’; unable to remove target: Permission denied
child_process.js:866
throw err;
^

Error: Command failed: /bin/mv *.zip /tmp/plugins/custom_autoplay.zip
/bin/mv: inter-device move failed: ‘custom_autoplay.zip’ to ‘/tmp/plugins/custom_autoplay.zip’; unable to remove target: Permission denied

at checkExecSyncError (child_process.js:790:11)
at execSync (child_process.js:863:15)
at install (/volumio/pluginhelper.js:767:9)
at Object.<anonymous> (/volumio/pluginhelper.js:862:9)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
at internal/main/run_main_module.js:17:47 {

status: 1,
signal: null,
output: [
null,
Buffer(0) [Uint8Array] ,
Buffer(139) [Uint8Array] [
47, 98, 105, 110, 47, 109, 118, 58, 32, 105, 110, 116,
101, 114, 45, 100, 101, 118, 105, 99, 101, 32, 109, 111,
118, 101, 32, 102, 97, 105, 108, 101, 100, 58, 32, 39,
99, 117, 115, 116, 111, 109, 95, 97, 117, 116, 111, 112,
108, 97, 121, 46, 122, 105, 112, 39, 32, 116, 111, 32,
39, 47, 116, 109, 112, 47, 112, 108, 117, 103, 105, 110,
115, 47, 99, 117, 115, 116, 111, 109, 95, 97, 117, 116,
111, 112, 108, 97, 121, 46, 122, 105, 112, 39, 59, 32,
117, 110, 97, 98,
… 39 more items
]
],
pid: 3036,
stdout: Buffer(0) [Uint8Array] ,
stderr: Buffer(139) [Uint8Array] [
47, 98, 105, 110, 47, 109, 118, 58, 32, 105, 110, 116,
101, 114, 45, 100, 101, 118, 105, 99, 101, 32, 109, 111,
118, 101, 32, 102, 97, 105, 108, 101, 100, 58, 32, 39,
99, 117, 115, 116, 111, 109, 95, 97, 117, 116, 111, 112,
108, 97, 121, 46, 122, 105, 112, 39, 32, 116, 111, 32,
39, 47, 116, 109, 112, 47, 112, 108, 117, 103, 105, 110,
115, 47, 99, 117, 115, 116, 111, 109, 95, 97, 117, 116,
111, 112, 108, 97, 121, 46, 122, 105, 112, 39, 59, 32,
117, 110, 97, 98,
… 39 more items
]
}

is it possible that the access right on the folders in the x86 version aren’t the same as in the pi-version?
a chmod -c -R 77 plugins got me a step further, now i am at

This command will install the plugin on your device

Compressing the plugin
Plugin succesfully compressed
Progress: 10
Status :Plugin wird geladen
nloading plugin at http://127.0.0.1:3000/plugin-serve/custom_autoplay.zip
Progress: 30
Status :Erstelle Installationspfad
Erstelle Installationspfad

did you change the default PW for volumio?

no. not yet.

Hi there,
I have installed the plugin but not sure what command I should put in under “Settings”.
I am just wanting to automatically play a web radio station.

Thanks

1 Like

I might not be the best source for your problem, but here is how I did it:

  • Play the radio station in Volumio
  • go to http://volumio.local/dev (or however your Volumio instance is named)
  • Copy the player state
  • (I simplified it by removing some unneeded entries)
  • use it as command
1 Like

can you post it with screenshots and more details please

1 Like