Skip to content

App: AutoContrast

Jan Dvořák edited this page Jan 3, 2022 · 4 revisions

Description

AutoContrast is an application that adjusts the contrast (brightness) of your MoonClock after sunset so it won't disturb you at night. To detect the sunset in your country or city, enter the GPS coordinates. You can find these e.g. in Google Maps.

Set the values for 'contrast_after_sunrise' and 'contrast_after_sunset' to the desired values. You can choose from 256 values of display contrast(0-255).

Use 0 for minimal contrast and 255 for maximum contrast.

Examples

This is a minimum you must specify in your conf.py

{
    'name': 'auto_contrast',
    'latitude': '50.073611',
    'longitude': '14.435664',
    'contrast_after_sunrise': 100,  # value from 0 to 255
    'contrast_after_sunset': 0,  # value from 0 to 255
},

Required parameters

name

Identify the app by its name.

latitude

Latitude of your location

longitude

Longitude of your location

contrast_after_sunrise

Contrast value (0-255) at night.

contrast_after_sunset

Contrast value (0-255) during a day.

Clone this wiki locally