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.

    Dimming of a module

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    5 Posts 2 Posters 95 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.
    • C Offline
      chrga
      last edited by

      Hi,
      I am trying to solve a problem: For better visibility, I am trying to dim (set the opacity and brightness) of a module (not all modules).
      I know that the scheduler module does offer something like that, But I do not want to schedule the dimming of an individual module, but I would like to trigger it via an API call or something.
      Do you guys see any option?

      Thanks,
      chrga

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @chrga
        last edited by

        @chrga I don’t see any module in the 3rd party list that provides that function directly on a per module basis via notifications

        this would be a great addition to MMM-RemoteControl
        @kristjanesperanto

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 1
        • C Offline
          chrga
          last edited by

          I looked at the code of MMM-scheduler and that does the job, but remote would be great. I have some experience in coding and I can see that is possible, but my coding was 20 years ago…
          I could see me creating an ioBroker adaper that would then allow ioBroker to fully control the Mirror. API endpoiints for most of it are there.

          I managed to get my doorbell working and show the image of the camera on the mirror by ussing ioBroker, stuff like that could be really cool. But the dimming is a problem, as I need to be more flexible with the screen, hence my question. Thanks for further thoughts.

          1 Reply Last reply Reply Quote 0
          • C Offline
            chrga
            last edited by

            ok, so I have looked into this a bit more and have changed some of the logic in the ModuleScheduler module. It now listens to notifications. Now, via the remote module I am able to trigger changes to the CSS, so I have added a gradient for BackgroundSlideshow to be able to dim the background images (like you might know that from different websites.

            With something like:
            http://192.168.22.238:8080/api/notification/CSS_change?target=MMM-BackgroundSlideshow&dimLevel=0.75&apiKey=banana

            we are now able to control all of that.
            Will further test and then share.

            chrga

            S 1 Reply Last reply Reply Quote 1
            • S Do not disturb
              sdetweil @chrga
              last edited by

              @chrga awesome!!

              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