BrightLess is a screen brightness management tool that automatically adjusts your screen's brightness based on time of day, location, and sunrise/sunset cycles.
-
🌞 Automatic Brightness Adjustment
- Dynamically changes screen brightness based on time of day
- Uses sinusoidal curve for smooth brightness transitions
- Configurable brightness range and base levels
-
🌅 Location-Based Sunrise/Sunset Tracking
- Automatically detects sunrise and sunset times for your location
- Adjusts brightness according to natural light conditions
- Configurable via zipcode
-
🖥️ System Tray Control
- Toggle between automatic and manual brightness modes
- Quick access to brightness settings via system tray icon
- 💡 Yoctolight V5 Ambient Light Sensor Integration
- Optional dynamic backlight adjustment based on room's ambient light
- Uses Yoctopuce Yocto-Light V5 sensor
- Automatically adjust screen brightness to match surrounding light conditions
- Provide configurable sensitivity and response curve
- Python 3.8+
- Windows Operating System
-
Clone the repository:
git clone https://github.com/yourusername/BrightLess.git cd BrightLess -
Install required dependencies:
pip install -r requirements.txt
Edit brightness_config.json to customize your brightness settings:
{
"brightness_function": {
"type": "sinusoidal",
"parameters": {
"brightness_range_amplitude": 45,
"base_brightness_level": 50,
"daily_cycle_hours": 24,
"day_night_curve_offset": -6
}
},
"zipcode_config": {
"zipcode": 12345,
"use_sunrise_sunset": true,
"sunrise_brightness": 40,
"sunset_brightness": 1,
"min_brightness_modifier": 1,
"max_brightness_modifier": 100
}
}Run the brightness scheduler:
python brightness_scheduler.pyThe application will start and create a system tray icon. You can:
- Toggle between automatic and manual modes
- Exit the application from the tray menu
screen-brightness-control: Screen brightness manipulationrequests: API calls for geolocationastral: Sun position and sunrise/sunset calculationspystray: System tray icon managementpillow: Image processing for tray icon