Some of your suggestions have been implemented in the beta version!
The plugin is promoted to the stable channel
Thank you @mervinio
Hi @supercrab Thanks for this nice plugin.
Just I have some questions suggestions
-
Questions
A. when I set the delay (with second), it didnāt work in Volumio 3.251. However no delay option works. Is that a issue with new Volumio version?
B. when a music starts to play, does this plugin trigger gpio afterward or reversely ? can it have an option such as
press āplayā button ā gpio is triggered ā delay(until device fully activated) ā actual music is play? Not sure it wonāt be implemented if Volumio providing such hooking api. -
Suggestions
A. it would be really nice if it allows to select multiple gpio to trigger one more devices as I am using mono block(2amp with 12v trigger) so, both amp need to be turned on at (mostly) same time
Thank you.
- A. Not sure, I will have a look when I am able - I donāt have a device to test at the moment. Do you mean it comes on straight away?
B. the GPIO is triggered as soon as the music starts playing. Iām noot sure if itās possible to do what your suggest. - You could hook up 2 transistors that are connected to the same GPIO to control 2 things. It would not be practical to implement anything more complicated in the UI for controlling multiple GPIOs for the same event.
Thanks
Do you mean it comes on straight away? ā when I set any value in delay to turn off gpio. The gpio wasnāt going to be turned off. However if I set āno delayā to turn off gpio, it immediate turned off.
Hi @supercrab, great plugin!
Installed today and testing it. Seems to be working mainly ok.
I just found one issue, for the āMusic Stop Eventā section, there is no āDelay Unitsā settings, so this delay time unit seems to be stick to hours.
Thanks! Iāll see it i can get it sorted!
Donāt worry by me.
After leaving the comment here i managed to tweak a little bit the plugin and got everything worked as is needed.
For this setting I sent a custom message via WebSocket using Chrome console.
Also moved both clearTimeout from lines 348 and 349, up to line 345 (before the if) in order to get the GPIO control for powering my amp.
With this change i have no more problems with the delays for powering off that other users where asking.
Iāve updated the plugin! It always take a while to work out what Iām meant to be doing with these volumio plugins
You should find a beta version available 1.0.5. I believe Iāve fixed the bug you mentioned and some other issues that others found. Let me know if the plugin works for you.
Iāve also added more events that I discovered so I thought Iād included those too. Thereās new events for muting, shuffling and repeating, which might be of use to people.
- system startup
- system shutdown
- music start
- music stop
- music pause
- mute on &off
- random mode on & off
- repeat on & off
- repeat all on & off
- repeat single & off
See if my latest version fixes the powering off issue.
I think Iāve fixed your issue now too
Sorry i didnāt had time before to test this beta.
Actually i donāt know how to install a plugin beta release, just the conventional plugin manager form the user UI.
How should i do to install it?
The plugin has now been included to the latest version. Iām not sure how to install a beta plugin sorry
My plugin now supports pulses
Hi,
Thanks for creating this plugin, it looks great.
Is there any reason why it wouldnāt work with GPIO7 ?
I get this error in the logs:
error: Failed callmethod call: Error: EBUSY: resource busy or locked, write
I guess GPIO7 is used by something else, but what would that be?
I tried using GPIO12 and it works.
The problem is that my raspberry case uses GPIO7 for external relay control so I donāt have the choice to use another GPIOā¦
Hi! I have no idea sorry Must be some other process using GPIO7
It looks like GPIO7 is used by SPI CS1.
I donāt really know why Volumio enables SPI by default and I didnāt figure out how to disable it.
Nevertheless, you can reclaim GPIO7 by redirecting CS1 to another pin.
You just need to add this line is userconfig.txt:
dtoverlay=spi0-cs,cs1_pin=16
Yourt plugin works great now
Oh, if you donāt need SPI then you can add this line to userconfig.txt
to disable it.
dtparam=spi=off
Glad you enjoy the plugin
I already tried that but it doesnāt seem to work for me