Open Ciao121 opened 1 year ago
A good solution IMHO is to test (at first run) if a led command can be executed without using sudo and using it only if the test is unsuccesfull. I'm not good enough to code it well so it's a suggestion if someoune would do it... As a workaroud I forked the repository and changed it to not using sudo at all.
Using this module like leds.power.turnOff() or any other command in a node script running as root I get those lines in auth.log file:
I'm using turnOff and turnOff thousand of times and the logfile become enourmous. How to workaround this? Thanks!!!!