@sdetweil how would i get sudo echo into my MMM-Brightness.js? this Is my module rn. Ik its probably very wrong but i don’t actually know javascript so…
Module.register("MMM-Brightness", {
defaults: {
startingBrightness: 130,
jump: 10,
path_to_backlight: '/sys/class/backlight/rpi_backlight/brightness',
},
start: function () {
self = this;
var brightness = this.config.startingBrightness;
},
notificationReceived: function() {
if (notification === 'BRIGHTNESS_UP') {
var brightness = brightness-this.config.jump;}
if (notification === 'BRIGHTNESS_DOWN') {
var brightness = brightness+this.config.jump;}
},
loaded: function(callback) {
this.finishLoading();
Log.log(this.name + ' is loaded!');
callback();
}
})