Heyy,
Regarding adjusting the brightness of generic screens, those with a good quality backlight driver that accepts a PWM signal !
The Raspberry Pi does support PWM output, and I was able to test it and adjust my screen's brightness directly from the terminal !
But I don't know how or by what method I'll be able to control the brightness from Hudiy !
Otherwise, excellent system; I find it more complete and customizable than OpenAuto Pro.
Thanks everyone !
Generic display brightness
Re: Generic display brightness
Hello, we're glad to hear that you enjoy using Hudiy.
Regarding the topic, there are several ways to control e. g. the screen brightness via the terminal in Hudiy.
As a starting point, you can use a simple Python script that runs the appropriate commands to increase or decrease the brightness. Then, using the Hudiy API, you can create and register your own actions inside such a script, and then bind and trigger them using shortcuts.
Another way is HTML/JS - Hudiy can display HTML/JS as interface elements. You can create a simple HTML/JS page with brightness controls, which would send requests to your Python script via a basic REST API, and the script would then execute the appropriate brightness commands. Then you can display and use such HTML/JS page as an application, widget or overlay in Hudiy.
On our GitHub you can find documentation for mentioned topics:
Actions: https://github.com/wiboma/hudiy/blob/ma ... md#actions
Shortcuts: https://github.com/wiboma/hudiy/blob/ma ... #shortcuts
Web view: https://github.com/wiboma/hudiy/blob/ma ... d#web-view
Applications: https://github.com/wiboma/hudiy/blob/ma ... plications
Dashboard widgets: https://github.com/wiboma/hudiy/blob/ma ... dashboards
Api:
https://github.com/wiboma/hudiy/blob/main/README.md#api
https://github.com/wiboma/hudiy/blob/ma ... proto#L732
https://github.com/wiboma/hudiy/blob/ma ... proto#L723
Examples: https://github.com/wiboma/hudiy/tree/main/examples
Related topics:
viewforum.php?f=15
viewtopic.php?t=8
Regarding the topic, there are several ways to control e. g. the screen brightness via the terminal in Hudiy.
As a starting point, you can use a simple Python script that runs the appropriate commands to increase or decrease the brightness. Then, using the Hudiy API, you can create and register your own actions inside such a script, and then bind and trigger them using shortcuts.
Another way is HTML/JS - Hudiy can display HTML/JS as interface elements. You can create a simple HTML/JS page with brightness controls, which would send requests to your Python script via a basic REST API, and the script would then execute the appropriate brightness commands. Then you can display and use such HTML/JS page as an application, widget or overlay in Hudiy.
On our GitHub you can find documentation for mentioned topics:
Actions: https://github.com/wiboma/hudiy/blob/ma ... md#actions
Shortcuts: https://github.com/wiboma/hudiy/blob/ma ... #shortcuts
Web view: https://github.com/wiboma/hudiy/blob/ma ... d#web-view
Applications: https://github.com/wiboma/hudiy/blob/ma ... plications
Dashboard widgets: https://github.com/wiboma/hudiy/blob/ma ... dashboards
Api:
https://github.com/wiboma/hudiy/blob/main/README.md#api
https://github.com/wiboma/hudiy/blob/ma ... proto#L732
https://github.com/wiboma/hudiy/blob/ma ... proto#L723
Examples: https://github.com/wiboma/hudiy/tree/main/examples
Related topics:
viewforum.php?f=15
viewtopic.php?t=8
Re: Generic display brightness
Hey Moko,
Just to give you a quick help of what I did.
First I created a shortcut with icon label "settings" that opens an html file.
Then I created an html file - where is a slider for changing the brighntess of the screen and also a button for automatic brighntess adjustment.
In general, I use TLS2561 senzor for getting LUX value, then a script in python that runs automatically after start of the Pi that reads the values from the sensor and adjust the brightness of the screen. If I move the slider, the script that sets brightness automatically stops. All the code related stuff I did with an AI, since I cant even print Hello world to the CLI... Ascreenshot of the slider and above the slider is a switch/button to turn on the script for automatic brightness.
Works great!
Just to give you a quick help of what I did.
First I created a shortcut with icon label "settings" that opens an html file.
Then I created an html file - where is a slider for changing the brighntess of the screen and also a button for automatic brighntess adjustment.
In general, I use TLS2561 senzor for getting LUX value, then a script in python that runs automatically after start of the Pi that reads the values from the sensor and adjust the brightness of the screen. If I move the slider, the script that sets brightness automatically stops. All the code related stuff I did with an AI, since I cant even print Hello world to the CLI... Ascreenshot of the slider and above the slider is a switch/button to turn on the script for automatic brightness.
Works great!
- Attachments
-
- 1280-800-max.png (83.75 KiB) Viewed 488 times
Re: Generic display brightness
I tried using WebSocket and the API, but I didn't get any results.
I'll stick with HTML for now, but I was wondering if it's possible to prevent the HTML from displaying in full screen ? So that when it opens, it displays as if it were part of the Hudiy menu !
I'm waiting for a solution for a more efficient integration !
I'm waiting for a solution for a more efficient integration !
Re: Generic display brightness
When you use your HTML page as an application in Hudiy, it will be embedded in the Hudiy UI and displayed just like this (example with YT Music):Moko wrote: Sat Nov 29, 2025 10:19 pm I tried using WebSocket and the API, but I didn't get any results.I'll stick with HTML for now, but I was wondering if it's possible to prevent the HTML from displaying in full screen ? So that when it opens, it displays as if it were part of the Hudiy menu !
I'm waiting for a solution for a more efficient integration !

Re: Generic display brightness
I'm going to do that; I have no other choice !
Anyway, I think the function should be integrated into Hudiy when using an official Raspberry Pi screen or a DDC-compatible screen.
I know the possibilities are almost endless, and this is just the beginning of the adventure for Hudiy.
I'm eagerly awaiting the next updates.
Anyway, I think the function should be integrated into Hudiy when using an official Raspberry Pi screen or a DDC-compatible screen.
I know the possibilities are almost endless, and this is just the beginning of the adventure for Hudiy.
I'm eagerly awaiting the next updates.