Skip to content

A simple rust program to control redshift automatically.

License

Notifications You must be signed in to change notification settings

jeremymreed/redshiftctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redshift Controller

Contributor Covenant

Table of Contents

  1. Purpose
  2. Motivation
  3. Install
  4. Issues
  5. License

Purpose:

This is a small Rust program to control redshift automatically. It sets color temperature based on the time of the day. Currently this program is hardcoded to swich to daytime color temperature at 6:00, and nighttime color temperature at 18:00.

This program is meant to be run by a systemd service. Look at redshift-scripts.

Motivation:

I want to automatically set the color temperature via redshift. I'd like a different color temperature for daytime and nighttime.

Install:

You need to have Rust installed. You will need cargo to build this software.

Clone this repository.

Modify files as needed. Take a look at main.rs. To change the times for morning/night, update lines 16 and 17. These lines create the DateTime variables that the logic uses to determine if is day or night.

To build:

cargo build --release

To run locally:

cargo run

To install (this builds the software in release mode):

./install.sh

Issues:

Issues on github

License:

This program is licensed under the MIT License.

About

A simple rust program to control redshift automatically.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors