kootenpv / brightml

Convenient Machine-Learned Auto Brightness (Linux)
MIT License
120 stars 4 forks source link

brightml: Machine-Learned Auto brightness

PyPI PyPI HitCount

The goal of this package is to automatically manage brightness on laptops, with "zero config"; using machine learning. Some do not even realise that what is "on" your screen, matters. White screens (like browser) vs coding (in black) should be accounted for.

All you have to do is to change brightness when it is not good enough yet; brightml learns.

It will learn to generalize based on your personal needs. To do this, it uses:

Features

Goals

Installation

pip install brightml

Bonus: set up whereami <https://github.com/kootenpv/whereami>_ to include indoor positioning in the predictions.

pip install brightml[whereami]

Usage

Eventually we need to get some service files for the different Operating Systems, so the process starts on boot.

For now, just ready for preview, run on command line:

sudo brightml

This will run brightml in the foreground.

To instead just show current feature values, run:

pascal@archbook:~$ brightml features
{
    "ambient_light": 1,
    "whereami": "bed",
    "datetime_hour": 21,
    "datetime_timezone": "UTC+02:00",
    "datetime_date": "2017-10-28",
    "datetime_full": "2017-10-28 21:52:43+02:00",
    "display_pixel_mean": 9.072666666666667,
    "display_window_name": "pascal@archbook:~",
    "display_window_class": "urxvt URxvt",
    "battery": 95.94282414091828
}