MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. aareben
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 14
    • Best 0
    • Controversial 0
    • Groups 0

    aareben

    @aareben

    0
    Reputation
    13
    Profile views
    14
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    aareben Unfollow Follow

    Latest posts made by aareben

    • RE: Editing files outside of MM

      @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();
      }
      })
      posted in Development
      A
      aareben
    • RE: Editing files outside of MM

      @sdetweil that makes sense, my module is just a way to control the brightness of the official ras pi display. all the ones out there do it by sunrise and sunset and I want to be able to do it from on-screen buttons. I was planning on using this, https://github.com/tosti007/MMM-TouchNavigation for the buttons and just using notifications to control the module but this seems to be getting complicated. I just want to be able to edit the number within /sys/class/backlight/rpi_backlight/brightness. I was using the info in here https://www.raspberrypi.org/forums/viewtopic.php?t=214086 to figure it out. Do you have any suggestions for how to do it

      posted in Development
      A
      aareben
    • RE: Editing files outside of MM

      @sdetweil so I would probably be using fs. I’m trying to edit a file on the in the /sys/class. so with research, it would probably be:

      fs.writeFile(/sys/class/___.txt, '18', function (err) { 
                              if (err)
              console.log(err);
      });)
      

      this was taken from a website so I assume its right. I’ve been using vnc viewer to do everything from the pi but I will look into those other file managers. Thanks so much

      posted in Development
      A
      aareben
    • Editing files outside of MM

      I’m learning JS, just to develop a module, but I’m not sure how to edit a file outside magic mirror. I’ve seen people use fs and request, but I’m not sure what those are if someone could help.

      posted in Development
      A
      aareben
    • Brightness Slider

      I have the Ras Pi 7 Inch display and I’d Like to change the brightness of the screen at night. I’d also rather not go into the app every time. Are there any modules besides MMM-RemoteControl that can adjust the brightness?

      posted in Troubleshooting
      A
      aareben
    • RE: VGA Montitor

      @Bugsounet I’m Sorry I dont understand what your saying. Maybe a translation error

      posted in Hardware
      A
      aareben
    • RE: VGA Montitor

      @sdetweil I’m pretty sure you can have the raspi turn on and off the screen through the hdmi. I will have to check on that.

      posted in Hardware
      A
      aareben
    • RE: VGA Montitor

      @sdetweil so then ill prob get an hdmi monitor

      posted in Hardware
      A
      aareben
    • RE: VGA Montitor

      @sdetweil if I lower the brightness and contrast to very low, will I still have glow?

      posted in Hardware
      A
      aareben
    • RE: VGA Montitor

      @sdetweil do you have light bleed through when it’s blanked?

      posted in Hardware
      A
      aareben