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 267 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

      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 Reply Quote 0
      • S Offline
        sdetweil @Phoenix
        last edited by

        @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 Reply Quote 0
        • P Offline
          Phoenix @sdetweil
          last edited by

          @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 Reply Quote 0
          • S Offline
            sdetweil @Phoenix
            last edited by sdetweil

            @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
            • First post
              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