-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oliver Schrenk
committed
Dec 2, 2023
1 parent
d5c362f
commit ae903e1
Showing
3 changed files
with
49 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# DOCS | ||
|
||
> Night Shift automatically shifts the colours of your display to the warmer end of the colour spectrum after dark. This may help you get a better night's sleep. | ||
Under "System Settings > Display > Night Shift" you find the UI controls. | ||
|
||
It supports three schedules | ||
|
||
1. Off | ||
2. Sunset to Sunrise | ||
3. Custom | ||
|
||
When "Off" (`mode: 0`), you can turn it on for a single day toggling "Turn on until "tomorrow" | ||
|
||
When "Sunset to Sunrise" (`mode: 1`), the schedule is automatic, and you can toggle it active until the next "sunrise" | ||
|
||
When "Custom" (`mode: 2`), you can set a daily schedule, and additionally toggle it active until "tomorrow" | ||
|
||
In all three modes, you can select a colour temperature, on a sliding scale between "Less Warm" and "More Warm" | ||
|
||
## Technical | ||
|
||
The status object | ||
|
||
``` | ||
var status: Status = Status() | ||
client.getBlueLightStatus(&status) | ||
``` | ||
|
||
``` | ||
// seems to control the temporary setting until tomorrow/sunrise | ||
enabled: true|false | ||
available: true|false | ||
// I guesss this has to do with location based information | ||
sunSchedulePermitted: true|false | ||
disableFlags: 0 | ||
mode: 0|1|2 | ||
schedule(fromTime(hour,minute),toTime(hour,minute)) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters