• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. aareben
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
A
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 4
  • Posts 14
  • Groups 0

aareben

@aareben

0
Reputation
13
Profile views
14
Posts
0
Followers
0
Following
Joined Jun 29, 2020, 3:29 PM
Last Online Sep 1, 2020, 5:49 PM

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
    Sep 1, 2020, 5:49 PM
  • 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
    Sep 1, 2020, 4:38 PM
  • 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
    Sep 1, 2020, 3:50 PM
  • 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
    Sep 1, 2020, 2:06 PM
  • 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
    Aug 25, 2020, 2:52 AM
  • RE: VGA Montitor

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

    posted in Hardware
    A
    aareben
    Aug 12, 2020, 5:01 PM
  • 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
    Aug 12, 2020, 3:43 PM
  • RE: VGA Montitor

    @sdetweil so then ill prob get an hdmi monitor

    posted in Hardware
    A
    aareben
    Aug 12, 2020, 3:38 PM
  • RE: VGA Montitor

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

    posted in Hardware
    A
    aareben
    Aug 12, 2020, 3:25 PM
  • RE: VGA Montitor

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

    posted in Hardware
    A
    aareben
    Aug 12, 2020, 3:17 PM
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy