dimgrav / Recla

Easy on the eyes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recla

Easy on the eyes!

2019 © Dimitris Gravanis

What is Recla?

Recla is a small Python application, that adjusts your screen color temperature at sunrise and sunset, to reduce the strain caused by blue light in dark ambience.

Currently, Recla requires your location coordinates in order to perform a GET request to the Sunrise-Sunset.org public API and receive the sunrise/sunset values per day.

In the future, scheduled times may be used instead.

Recla is intended to run as a daemon/service, so its current state requires a lot of optimization.

A GUI will also be added for configuration, so expect major functionality updates soon!

Recla uses sct, created by Ted Unangst.

Install dependencies

Python

Using Python 3:

pip install -r requirements.txt

System

If you want to compile sct yourself, for Ubuntu-based distributions you will need:

sudo apt install libx11-dev libxrandr-dev

Run

You can currently run Recla manually.

Short/long options list:

option short long
latitude -z --lat=
longitude -y --lon=
day temperature -d --day_temp=
night temperature -n --night_temp=

Example usage:

python3 recla.py -z <latitude> -y <longitude> -d <day temperature> -n <night temperature>

python3 recla.py --lat=<latitude> --lon=<longitude> --day_temp=<day temperature> --night_temp=<night temperature>

About

Easy on the eyes

License:MIT License


Languages

Language:Python 77.1%Language:C 22.9%