aboutsummaryrefslogtreecommitdiffstats
path: root/blue.1
blob: daf062d220a84197673c4917ac1b832f7cceaf7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
.TH BLUE 1 BLUE
.SH NAME
blue - Creates table of when the blue hour etc. occurs
.SH SYNPOSIS
.B blue
.RB [ -d \ \fIdelev\fP]\ ...
.RB [ -D \ \fIdelev\fP]\ ...
.RB [ -e \ \fIelev\fP]\ ...
.RB [ -m \ \fIelev\fP]\ ...
.RB [ -hL
|
.BR -u ]
\e
.br
\ \ \ \ 
.RB [ -l
.IB lat : lon \fR
|
.B -I
.IR loc ]
.RB -s
.IB year - month - day
|
.B -s
.BR - ]
.RB [ -r
.RB \fInum\fP[ h | m | s ]]
.RB [ -bBgGnN ]
.SH "DESCRIPTION"
.B blue
prints a list of time point when the select event occurs.
.SH "OPTIONS"
.TP
.B -b
List the time when the blue hour begins. (default)
.TP
.B -B
List the time when the blue hour ends.
.TP
.BI -d\  delev
List the time when the first derivative of the Sun's elevation is
.I delev
and the Sun's elevation is non-negative (daytime).
.TP
.BI -D\  delev
List the time when the first derivative of the Sun's elevation is
.I delev
and the Sun's elevation is non-positive (nighttime).
.TP
.BI -e\  elev
List the time when the Sun's elevation is
.I elev
and the first derivative of the Sun's elevation is
non-positive (evening).
.TP
.B -g
List the time when the golden hour begins.
.TP
.B -G
List the time when the golden hour ends.
.TP
.B -h
Print times in human readable format.
.TP
.RI \fB-l\fP\  latitude : longitude
Tell blue where you are. The values are measured in degrees
and in the GPS (you probably do not have too care about that,
the differences between the systems should not be significant
another), and must be in decimal.

Reminder for Americans (particularly US Americans), you are
an the western hemisphere, not the eastern, thus your longtiude
is negative. If you experience weird time listings, 100 % of
the times it is because you forgot the minus sign. But no need
to feel stupid, it is a really common mistake.

No complicated stuff please, only latitudes within ±90° and
longitudes within ±180°. No unit thought.
.TP
.BI -l\  location
Use a named location. In particular, the one stored in the
file
.RI ~/.config/geolocation.d/ location ,
or the file
.IR location ,
if it begins with either ./ (dot slash), ../ (dot dot slash),
or / (slash). By default ~/.config/geolocation, or /etc/geolocation
as a fallback, is used.
.TP
.B -L
Print times in local time.
.TP
.BI -e\  elev
List the time when the Sun's elevation is
.I elev
and the firs derivative of the Sun's elevation is
non-negative (morning).
.TP
.B -n
List the time of solar noon.
.TP
.B -N
List the time of solar midnight.
.TP
.BI -r\  res
Print the in
.I res
resultion.
.I res
must be an integer followed by on the the suffixes:

.nf
h  hours
m  minutes (min is not a valid suffix)
s  seconds
.fi

For example:
.B \-r 15m
prints the nearest quarters of the times.
.TP
.BI -s\  date
The last date (local time) to include in the last.
.I date
must be in
.B %Y-%m-%d
(year dash month dash day) format.
A dash (-) for an infinite list. Default limit is one month.
.TP
.B \-u
Print times in UNIX-time format.
.SH "FILES"
.TP
.B ~/.config/geolocation
Used to get your location if
.B -l
is not used. This file contains
your geographical location using the Global Positioning System
in decimal format. This will never change. Other programs are
encouraged to use this file too.

If the file contains more than one line, only the first line,
even if it is empty, is used.
.TP
.B /etc/geolocation
Fallback file use if ~/.config/geolocation is missing. Other
programs are encouraged to use this file too.
.TP
.B ~/.config/geolocation.d/
Directory used for named locations. The files are formatted
in the same way as ~/.config/geolocation. Other programs are
encouraged to use this directory too.
.TP
.B /etc/geolocation.d/
Directory used for named locations, used when the named
location is not listed in ~/.config/geolocation.d/. The files
are formatted in the same way as ~/.config/geolocation. Other
programs are encouraged to use this directory too.
.SH "RATIONALE"
This is useful if you plan to take nice photographies, for example
during the blue hours, or the golden hour. But mostly, I just made
this because I could.
.SH "NOTES"
US Americans, remember, you are on the Western Hemisphere.
Therefore, you should specify a negative longitude.
.SH "SEE ALSO"
.BR locateme (1)