Read the statement by Michael Teeuw here.
MMM-RemoteControl - set BRIGHTNESS with Python
-
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 -
@Phoenix what do you mean by brightness?
Monitor control, or MagicMirror app controlIf 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.
-
@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. -
@Phoenix as I said there is no ‘simple’ way. one would have to write code to do that