• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-RemoteControl - set BRIGHTNESS with Python

Scheduled Pinned Locked Moved Development
4 Posts 2 Posters 313 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    Phoenix
    last edited by Jan 25, 2025, 12:50 PM

    I would control my MagicMirror with a LDR. If it is dark I would hide modules and if it is light I would show modules. For this funktion I use
    r = requests.get(‘http://127.0.0.1:8080/remote?action=HIDE&module=module_2_currentweather’)
    and
    r = requests.get(‘http://127.0.0.1:8080/remote?action=SHOW&module=module_2_currentweather’)
    and it works well. But I want to set the brightness by the same way and I don’t now what the command is. Can anybody help?
    Thanks Sven

    S 1 Reply Last reply Jan 25, 2025, 1:09 PM Reply Quote 0
    • S Offline
      sdetweil @Phoenix
      last edited by Jan 25, 2025, 1:09 PM

      @Phoenix what do you mean by brightness?
      Monitor control, or MagicMirror app control

      If the former, I don’t think there is any interface to the hardware.

      If the latter, you would have to change the css . And maybe for a lot of elements. I haven’t seen anyone do that.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      P 1 Reply Last reply Jan 25, 2025, 1:20 PM Reply Quote 0
      • P Offline
        Phoenix @sdetweil
        last edited by Jan 25, 2025, 1:20 PM

        @sdetweil I want to control the Display brightness with a python command to the RemoteControl module.
        Example: If the LDR give an number lower than 800 I will hide module XY and set the Display brightness to 50%. If the LDR ist higher than 800 I will show module XY and set the brightness to 100%. Show and hide is working but I don’t know how to set the brightness by the sam way.

        S 1 Reply Last reply Jan 25, 2025, 1:30 PM Reply Quote 0
        • S Offline
          sdetweil @Phoenix
          last edited by sdetweil Jan 25, 2025, 1:31 PM Jan 25, 2025, 1:30 PM

          @Phoenix as I said there is no ‘simple’ way. one would have to write code to do that

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            Last post
          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