TBSniller / piccap

PicCap - Hyperion Sender App | Ambilight for LG WebOS TVs
MIT License
294 stars 28 forks source link

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

Open erolatex opened 1 year ago

erolatex commented 1 year ago

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.

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 commented 1 year ago

god bless you and your suggestion

asturel commented 1 year ago

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

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

and no further updates.

erolatex commented 1 year ago

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.