Skip to content
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

Use built-in ambient light sensor to enable/disable Piccap #70

Open
erolatex opened this issue Mar 29, 2023 · 3 comments
Open

Use built-in ambient light sensor to enable/disable Piccap #70

erolatex opened this issue Mar 29, 2023 · 3 comments

Comments

@erolatex
Copy link

erolatex commented Mar 29, 2023

I'd like to suggest a new feature for Piccap, where the app would use the device's built-in ambient light sensor to enable or disable Piccap automatically. This would allow the app to adapt to the user's environment and improve the user experience.

  • Automatically enable Piccap when ambient light is below a certain threshold.
  • Automatically disable Piccap when ambient light is above a certain threshold.
  • Allow users to customize the light sensitivity threshold in the settings.
  • Include an option to enable or disable this feature in the app settings.

By having this feature, the user would not have to manually enable or disable Piccap, as it would automatically adapt to the environment.

Looking forward to seeing this implemented in the app. Thank you!

Sensor data:

root@LGwebOSTV:~# luna-send -i -f 'luna://com.webos.service.pqcontroller/getEyeqSensorData' '{"subscribe" : true}'

{
    "backlightValue": 100,
    "Eyeqsensorcheck": true,
    "returnValue": true
}
{
    "sensorDataCount": 2,
    "backlightValue": 49,
    "sensorData": {
        "luminance": 27,
        "visibleLuminance": 25
    },
    "returnValue": true,
    "Eyeqsensorcheck": true
}

@rasstroen
Copy link

god bless you and your suggestion

@asturel
Copy link

asturel commented Mar 29, 2023

getEyeqSensorData requires "AI brightness" enabled, otherwise you get only

{
    "backlightValue": 100,
    "Eyeqsensorcheck": true,
    "returnValue": true
}

and no further updates.

@erolatex
Copy link
Author

getEyeqSensorData requires "AI brightness" enabled, otherwise you get only

{
    "backlightValue": 100,
    "Eyeqsensorcheck": true,
    "returnValue": true
}

and no further updates.

Perhaps there is another way to obtain data from the sensor, for example somewhere in /sys/bus, I just provided an example that I know.

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

No branches or pull requests

3 participants