You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 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.
4
+
5
+
Under "System Settings > Display > Night Shift" you find the UI controls.
6
+
7
+
It supports three schedules
8
+
9
+
1. Off
10
+
2. Sunset to Sunrise
11
+
3. Custom
12
+
13
+
When "Off" (`mode: 0`), you can turn it on for a single day toggling "Turn on until "tomorrow"
14
+
15
+
When "Sunset to Sunrise" (`mode: 1`), the schedule is automatic, and you can toggle it active until the next "sunrise"
16
+
17
+
When "Custom" (`mode: 2`), you can set a daily schedule, and additionally toggle it active until "tomorrow"
18
+
19
+
In all three modes, you can select a colour temperature, on a sliding scale between "Less Warm" and "More Warm"
20
+
21
+
## Technical
22
+
23
+
The status object
24
+
25
+
```
26
+
var status: Status = Status()
27
+
client.getBlueLightStatus(&status)
28
+
```
29
+
30
+
```
31
+
// seems to control the temporary setting until tomorrow/sunrise
32
+
enabled: true|false
33
+
available: true|false
34
+
35
+
// I guesss this has to do with location based information
Copy file name to clipboardExpand all lines: README.md
+8-48Lines changed: 8 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -1,45 +1,6 @@
1
1
# README
2
2
3
-
A macOS tool to read and control macos Nightshift feature.
4
-
5
-
> 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.
6
-
7
-
Under "System Settings > Display > Night Shift" you find the UI controls.
8
-
9
-
It supports three schedules
10
-
11
-
1. Off
12
-
2. Sunset to Sunrise
13
-
3. Custom
14
-
15
-
When "Off" (`mode: 0`), you can turn it on for a single day toggling "Turn on until "tomorrow"
16
-
17
-
When "Sunset to Sunrise" (`mode: 1`), the schedule is automatic, and you can toggle it active until the next "sunrise"
18
-
19
-
When "Custom" (`mode: 2`), you can set a daily schedule, and additionally toggle it active until "tomorrow"
20
-
21
-
In all three modes, you can select a colour temperature, on a sliding scale between "Less Warm" and "More Warm"
22
-
23
-
The status object
24
-
25
-
```
26
-
var status: Status = Status()
27
-
client.getBlueLightStatus(&status)
28
-
```
29
-
30
-
```
31
-
active: true|false
32
-
33
-
// seems to control the temporary setting until tomorrow/sunrise
34
-
enabled: true|false
35
-
available: true|false
36
-
37
-
// I am guesss this has to do with location based information
0 commit comments