Read the statement by Michael Teeuw here.
Dimming of a module
-
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 -
@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 -
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.
-
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=bananawe are now able to control all of that.
Will further test and then share.chrga
-
@chrga awesome!!
