This repository has been archived by the owner on May 7, 2020. It is now read-only.
/
channels.xml
455 lines (408 loc) · 14 KB
/
channels.xml
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="astro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0"
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd">
<!-- position -->
<channel-group-type id="position">
<label>Position</label>
<description>The position of the planet</description>
<channels>
<channel id="azimuth" typeId="azimuth" />
<channel id="elevation" typeId="elevation" />
</channels>
</channel-group-type>
<channel-group-type id="radiation">
<label>Radiation</label>
<description>The radiation level of the sun</description>
<channels>
<channel id="direct" typeId="directRadiation" />
<channel id="diffuse" typeId="diffuseRadiation" />
<channel id="total" typeId="totalRadiation" />
</channels>
</channel-group-type>
<channel-type id="azimuth">
<item-type>Number</item-type>
<label>Azimuth</label>
<description>The azimuth of the planet</description>
<state readOnly="true" pattern="%.2f °" />
</channel-type>
<channel-type id="elevation">
<item-type>Number</item-type>
<label>Elevation</label>
<description>The elevation of the planet</description>
<state readOnly="true" pattern="%.2f °" />
</channel-type>
<channel-type id="directRadiation">
<item-type>Number</item-type>
<label>Direct Radiation</label>
<description>Level of radiation after penetration of the atmospheric layer</description>
<state readOnly="true" pattern="%.2f W/m²" />
</channel-type>
<channel-type id="diffuseRadiation">
<item-type>Number</item-type>
<label>Diffuse Radiation</label>
<description>Level of radiation diffracted by clouds and atmosphere</description>
<state readOnly="true" pattern="%.2f W/m²" />
</channel-type>
<channel-type id="totalRadiation">
<item-type>Number</item-type>
<label>Total Radiation</label>
<description>Total quantity of radiation on the ground</description>
<state readOnly="true" pattern="%.2f W/m²" />
</channel-type>
<!-- sun range -->
<channel-group-type id="sunRange">
<label>Range</label>
<description>Range for a sun event</description>
<channels>
<channel id="start" typeId="start" />
<channel id="end" typeId="end" />
<channel id="duration" typeId="duration" />
<channel id="event" typeId="rangeEvent" />
</channels>
</channel-group-type>
<channel-group-type id="moonRange">
<label>Range</label>
<description>Range for a moon event</description>
<channels>
<channel id="start" typeId="start" />
<channel id="end" typeId="end" />
<channel id="event" typeId="rangeEvent" />
</channels>
</channel-group-type>
<channel-type id="start">
<item-type>DateTime</item-type>
<label>Start time</label>
<description>The start time of the event</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
<config-description-ref uri="channel-type:astro:config" />
</channel-type>
<channel-type id="end">
<item-type>DateTime</item-type>
<label>End time</label>
<description>The end time of the event</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
<config-description-ref uri="channel-type:astro:config" />
</channel-type>
<channel-type id="duration">
<item-type>Number</item-type>
<label>Duration</label>
<description>The duration time in minutes of the event</description>
<state readOnly="true" pattern="%d min"/>
</channel-type>
<channel-type id="rangeEvent">
<kind>trigger</kind>
<label>Range event</label>
<description>Range event</description>
<event>
<options>
<option value="START">start</option>
<option value="END">end</option>
</options>
</event>
<config-description-ref uri="channel-type:astro:config" />
</channel-type>
<!-- sunZodiac -->
<channel-group-type id="sunZodiac">
<label>Zodiac</label>
<description>The Zodiac of the sun</description>
<channels>
<channel id="start" typeId="start" />
<channel id="end" typeId="end" />
<channel id="sign" typeId="sign" />
</channels>
</channel-group-type>
<channel-type id="sign">
<item-type>String</item-type>
<label>Sign</label>
<description>The sign of the zodiac</description>
<state readOnly="true">
<options>
<option value="ARIES">Aries</option>
<option value="TAURUS">Taurus</option>
<option value="GEMINI">Gemini</option>
<option value="CANCER">Cancer</option>
<option value="LEO">Leo</option>
<option value="VIRGO">Virgo</option>
<option value="LIBRA">Libra</option>
<option value="SCORPIO">Scorpio</option>
<option value="SAGITTARIUS">Sagittarius</option>
<option value="CAPRICORN">Capricorn</option>
<option value="AQUARIUS">Aquarius</option>
<option value="PISCES">Pisces</option>
</options>
</state>
</channel-type>
<!-- season -->
<channel-group-type id="season">
<label>Season</label>
<description>The seasons this year</description>
<channels>
<channel id="name" typeId="seasonName" />
<channel id="spring" typeId="spring" />
<channel id="summer" typeId="summer" />
<channel id="autumn" typeId="autumn" />
<channel id="winter" typeId="winter" />
</channels>
</channel-group-type>
<channel-type id="seasonName">
<item-type>String</item-type>
<label>Season name</label>
<description>The name of the current season</description>
<state readOnly="true">
<options>
<option value="SPRING">Spring</option>
<option value="SUMMER">Summer</option>
<option value="AUTUMN">Autumn</option>
<option value="WINTER">Winter</option>
</options>
</state>
</channel-type>
<channel-type id="spring">
<item-type>DateTime</item-type>
<label>Spring</label>
<description>The beginning of spring</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<channel-type id="summer">
<item-type>DateTime</item-type>
<label>Summer</label>
<description>The beginning of summer</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<channel-type id="autumn">
<item-type>DateTime</item-type>
<label>Autumn</label>
<description>The beginning of autumn</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<channel-type id="winter">
<item-type>DateTime</item-type>
<label>Winter</label>
<description>The beginning of winter</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<!-- sun eclipse -->
<channel-group-type id="sunEclipse">
<label>Eclipses</label>
<description>The DateTime of the next sun eclipses</description>
<channels>
<channel id="total" typeId="total" />
<channel id="partial" typeId="partial" />
<channel id="ring" typeId="ring" />
<channel id="event" typeId="sunEclipseEvent" />
</channels>
</channel-group-type>
<channel-type id="total">
<item-type>DateTime</item-type>
<label>Total eclipse</label>
<description>The DateTime of the next total eclipse</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<channel-type id="partial">
<item-type>DateTime</item-type>
<label>Partial eclipse</label>
<description>The DateTime of the next partial eclipse</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<channel-type id="ring">
<item-type>DateTime</item-type>
<label>Ring eclipse</label>
<description>The DateTime of the next ring eclipse</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<channel-type id="sunEclipseEvent">
<kind>trigger</kind>
<label>Sun eclipse event</label>
<description>Sun eclipse event</description>
<event>
<options>
<option value="TOTAL">total</option>
<option value="PARTIAL">partial</option>
<option value="RING">ring</option>
</options>
</event>
<config-description-ref uri="channel-type:astro:config" />
</channel-type>
<!-- sunphase -->
<channel-group-type id="sunPhase">
<label>Sunphases</label>
<description>Sunphases</description>
<channels>
<channel id="name" typeId="sunPhaseName" />
</channels>
</channel-group-type>
<channel-type id="sunPhaseName">
<item-type>String</item-type>
<label>The current sun phase</label>
<description>The name of the current sun phase</description>
<state readOnly="true">
<options>
<option value="SUN_RISE">Sunrise</option>
<option value="ASTRO_DAWN">Astro dawn</option>
<option value="NAUTIC_DAWN">Nautic dawn</option>
<option value="CIVIL_DAWN">Civil dawn</option>
<option value="CIVIL_DUSK">Civil dusk</option>
<option value="NAUTIC_DUSK">Nautic dusk</option>
<option value="ASTRO_DUSK">Astro dusk</option>
<option value="SUN_SET">Sunset</option>
<option value="DAYLIGHT">Daylight</option>
<option value="NOON">Noon</option>
<option value="NIGHT">Night</option>
</options>
</state>
</channel-type>
<!-- moonphase -->
<channel-group-type id="moonPhase">
<label>Moonphases</label>
<description>Moonphases</description>
<channels>
<channel id="firstQuarter" typeId="firstQuarter" />
<channel id="thirdQuarter" typeId="thirdQuarter" />
<channel id="full" typeId="fullMoon" />
<channel id="new" typeId="newMoon" />
<channel id="age" typeId="age" />
<channel id="illumination" typeId="illumination" />
<channel id="name" typeId="phaseName" />
<channel id="event" typeId="phaseEvent" />
</channels>
</channel-group-type>
<channel-type id="firstQuarter">
<item-type>DateTime</item-type>
<label>First quarter</label>
<description>The DateTime the moon is in the first quarter</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<channel-type id="thirdQuarter">
<item-type>DateTime</item-type>
<label>Third quarter</label>
<description>The DateTime the moon is in the third quarter</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<channel-type id="fullMoon">
<item-type>DateTime</item-type>
<label>Full moon</label>
<description>The DateTime for full moon</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<channel-type id="newMoon">
<item-type>DateTime</item-type>
<label>New moon</label>
<description>The DateTime for new moon</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<channel-type id="age">
<item-type>Number</item-type>
<label>Moon age</label>
<description>The age of the moon in days</description>
<state readOnly="true" pattern="%d d" />
</channel-type>
<channel-type id="illumination">
<item-type>Number</item-type>
<label>Moon illumination</label>
<description>The illumination of the moon in %</description>
<state readOnly="true" pattern="%.0f %%" />
</channel-type>
<channel-type id="phaseName">
<item-type>String</item-type>
<label>Moonphase name</label>
<description>The name of the current moon phase</description>
<state readOnly="true">
<options>
<option value="NEW">New moon</option>
<option value="WAXING_CRESCENT">Waxing crescent</option>
<option value="FIRST_QUARTER">First quarter</option>
<option value="WAXING_GIBBOUS">Waxing gibbous</option>
<option value="FULL">Full moon</option>
<option value="WANING_GIBBOUS">Waning gibbous</option>
<option value="THIRD_QUARTER">Third quarter</option>
<option value="WANING_CRESCENT">Waning crescent</option>
</options>
</state>
</channel-type>
<channel-type id="phaseEvent">
<kind>trigger</kind>
<label>Moon phase event</label>
<description>Moon phase event</description>
<event>
<options>
<option value="FIRST_QUARTER">first quarter</option>
<option value="THIRD_QUARTER">third quarter</option>
<option value="FULL">full</option>
<option value="NEW">new</option>
</options>
</event>
<config-description-ref uri="channel-type:astro:config" />
</channel-type>
<!-- moon eclipse -->
<channel-group-type id="moonEclipse">
<label>Eclipses</label>
<description>The DateTime of the next moon eclipses</description>
<channels>
<channel id="total" typeId="total" />
<channel id="partial" typeId="partial" />
<channel id="event" typeId="moonEclipseEvent" />
</channels>
</channel-group-type>
<channel-type id="moonEclipseEvent">
<kind>trigger</kind>
<label>Moon eclipse event</label>
<description>Moon eclipse event</description>
<event>
<options>
<option value="TOTAL">total</option>
<option value="PARTIAL">partial</option>
</options>
</event>
<config-description-ref uri="channel-type:astro:config" />
</channel-type>
<!-- distance -->
<channel-group-type id="distance">
<label>Distance</label>
<description>Distance data</description>
<channels>
<channel id="date" typeId="distanceDate" />
<channel id="miles" typeId="miles" />
<channel id="kilometer" typeId="kilometer" />
<channel id="event" typeId="distanceEvent" />
</channels>
</channel-group-type>
<channel-type id="distanceDate">
<item-type>DateTime</item-type>
<label>Date</label>
<description>The DateTime when the distance is reached</description>
<state readOnly="true" pattern="%1$tF %1$tR" />
</channel-type>
<channel-type id="miles">
<item-type>Number</item-type>
<label>Miles</label>
<description>The distance in miles</description>
<state readOnly="true" pattern="%.1f miles" />
</channel-type>
<channel-type id="kilometer">
<item-type>Number</item-type>
<label>Kilometer</label>
<description>The distance in kilometers</description>
<state readOnly="true" pattern="%.1f km" />
</channel-type>
<channel-type id="distanceEvent">
<kind>trigger</kind>
<label>Moon distance event</label>
<description>Moon distance event</description>
<event>
<options>
<option value="PERIGEE">perigee</option>
<option value="APOGEE">apogee</option>
</options>
</event>
<config-description-ref uri="channel-type:astro:config" />
</channel-type>
<!-- moonZodiac -->
<channel-group-type id="moonZodiac">
<label>Zodiac</label>
<description>The Zodiac of the moon</description>
<channels>
<channel id="sign" typeId="sign" />
</channels>
</channel-group-type>
</thing:thing-descriptions>