piccap icon indicating copy to clipboard operation
piccap copied to clipboard

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

Open erolatex opened this issue 1 year ago • 3 comments

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
}

erolatex avatar Mar 29 '23 11:03 erolatex

god bless you and your suggestion

rasstroen avatar Mar 29 '23 11:03 rasstroen

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

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

and no further updates.

asturel avatar Mar 29 '23 11:03 asturel

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.

erolatex avatar Mar 29 '23 11:03 erolatex