Skip to content

[Bug] Brightness level not reported correctly in the API #341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
ambarusa opened this issue May 18, 2025 · 1 comment
Open
1 task done

[Bug] Brightness level not reported correctly in the API #341

ambarusa opened this issue May 18, 2025 · 1 comment
Assignees

Comments

@ambarusa
Copy link

OS

Debian 12

NodeJS Version

22.15.0

MagicMirror² Version

2.31.0

Remote Control Version

3.11.1

Did you try using just Remote Control alone with MM?

  • I have and the error still happening

Description

When I poll the brightness level with /api/brightness I constantly see 100%.

Expected behavior

Brightness level in /api/brightness should follow the value from <div id="remote-control-overlay-temp" style="background-color: rgba(0, 150, 255, 0); filter: **brightness(60%)**;"></div>

Current behavior

When I poll the brightness level with /api/brightness I constantly see 100%.

Possible solution

No response

Steps to reproduce

  1. Update MMM-Remote-Control to 3.11.1
  2. Start changing brightness and query it with the API

Log

No reliable logs

config.js

{
                        module: 'MMM-Remote-Control',
                        // uncomment the following line to show the URL of the remote control on the mirror
                        // position: 'bottom_left',
                        // you can hide this module afterwards from the remote control itself
                        config: {
                                customCommand: {
                                        monitorOnCommand: 'xrandr -d :0 --output HDMI-1 --auto --rotate right',
                                        monitorOffCommand: 'xrandr -d :0 --output HDMI-1 --off',
                                        monitorStatusCommand: 'xrandr --query | awk \'/Screen/ {print ($8 > 320) ? "true" : "false"}\''
                                },
                                showModuleApiMenu: true, // Optional, Enable the Module Controls menu
                                secureEndpoints: true, // Optional, See API/README.md
                                // uncomment any of the lines below if you're gonna use it
                                // customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
                                // apiKey: "MagicMirrorAPIKey", // Optional, See API/README.md for details
                                // classes: {} // Optional, See "Custom Classes" below
                        }
                },

Additional info

Image
Image

@KristjanESPERANTO KristjanESPERANTO changed the title Brightness level not reported correctly in the API [Bug] Brightness level not reported correctly in the API May 19, 2025
@KristjanESPERANTO KristjanESPERANTO self-assigned this May 19, 2025
@KristjanESPERANTO
Copy link
Collaborator

Thanks again for the good bug report, that is really helpful 👍

The problem should be solved with today's release 3.1.12. Please test it on your system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants