Turn on a LED when Volumio UI is ready

Discuss about Hardware diy and tweaks

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Turn on a LED when Volumio UI is ready

Postby mredone » Tue Jul 10 2018 05:09

Anyone?
Random avatar
mredone
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Sat Feb 24 2018 21:11

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Turn on a LED when Volumio UI is ready

Postby Buckler » Tue Jul 10 2018 07:55

@mredone

Hi,

Try this:
Code: Select all
sudo nano /etc/rc.local

and add the next line before the line with 'exit 0'
Code: Select all
(/home/volumio/guiready.py)&

script.png
script.png (41.23 KiB) Viewed 1199 times

save and close the file with: Ctrl+x, and Y

By the way, make sure your python script is executable:
Code: Select all
sudo chmod +x guiready.py

script2.png
script made executable, filename will turn green!
script2.png (18.82 KiB) Viewed 1199 times

Kind regards

Harry
User avatar
Buckler
Serious Listener
Serious Listener
 
Posts: 64
Joined: Sun Sep 14 2014 08:34
Location: The Netherlands


Turn on a LED when Volumio UI is ready

Postby mredone » Tue Jul 10 2018 17:06

So i try rc.local and same thing.
Problem with rc.local is rc.local not have a recovery from error, and rc.local scripts is killed by next system process.
Script check site and led on is wait in loop so if it not download with wget it wait. But is killed by next system process and not check long enough.


Sorry for my english
Random avatar
mredone
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Sat Feb 24 2018 21:11


Turn on a LED when Volumio UI is ready

Postby balbuze » Tue Jul 10 2018 20:32

An other way to do what you want would be to write a plugin using the lib onoff. Easy to install and share!
Have a look at other plugins using this link (gpio, rotary encoder, and other).
User avatar
balbuze
Moderator
 
Posts: 1637
Joined: Thu May 08 2014 08:42
Location: Isère France


Turn on a LED when Volumio UI is ready

Postby mredone » Wed Jul 11 2018 11:02

Ok. I check gpio buttons how it works and i try create new plugin for GUI ready led.
Random avatar
mredone
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Sat Feb 24 2018 21:11


Turn on a LED when Volumio UI is ready

Postby balbuze » Wed Jul 11 2018 11:43

I have something nearly ready for that :[urlhttps://github.com/balbuze/volumio-plugins/tree/master/plugins/system_controller/volsmartpower[/url]. The boot ok signal is the output for a del. Let me know.
User avatar
balbuze
Moderator
 
Posts: 1637
Joined: Thu May 08 2014 08:42
Location: Isère France


Turn on a LED when Volumio UI is ready

Postby mredone » Wed Jul 11 2018 12:26

I use thing like https://lowpowerlab.com/guide/atxraspi/
It use script when i click phisical button it send to RPI shutdown command.

I check your plugin and maybe i add support to GUI ready gpio.
Random avatar
mredone
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Sat Feb 24 2018 21:11


Turn on a LED when Volumio UI is ready

Postby Saiyato » Wed Jul 11 2018 15:18

balbuze wrote:I have something nearly ready for that: volsmartpower. The boot ok signal is the output for a del. Let me know.


Hehehe we had the same idea, I named mine after the soundcard I'm using it with: Audiophonics, the code was neatly created by Jedail in combination with an node implementation for the LCD.
Just.Love.Music.
User avatar
Saiyato
Golden Ear
Golden Ear
 
Posts: 575
Joined: Wed Dec 23 2015 07:58
Location: Woudenberg, Netherlands


Re: Turn on a LED when Volumio UI is ready

Postby Xfiles_de » Sat Aug 31 2019 06:58

balbuze wrote:I have something nearly ready for that :[urlhttps://github.com/balbuze/volumio-plugins/tree/master/plugins/system_controller/volsmartpower[/url]. The boot ok signal is the output for a del. Let me know.
Hello ,
does not work with the new Volumio 2.599 anymore. want the plugin for my on / off status led. Hope you can fix it. Thank you
Random avatar
Xfiles_de
Fresh off the boat
Fresh off the boat
 
Posts: 1
Joined: Sat Aug 31 2019 06:46

Previous

Return to Diy and Tweaks

Who is online

Users browsing this forum: No registered users and 1 guest