This repository has been archived by the owner on Sep 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snowrss.html
392 lines (338 loc) · 8.16 KB
/
snowrss.html
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta charset="utf-8" />
<title>SnowRSS Documentation</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
background-color: #ffffff;
color: #333366;
font-family: tahoma, verdana, sans-serif;
font-size: 9pt;
}
h2, h3, h4 {
margin: 0.5em 0 0.5em 0;
border-width: 0 0 1px 0;
border-style: solid;
border-color: #FFA500;
}
h4 {
border: 0 none;
}
img {
border: 0 none;
}
#head {
margin: 0 0 0.5em 0;
padding: 1em;
background-color: #336699;
color: #FFFFFF;
}
#head h1 {
margin: 0;
padding: 0 0 0 72px;
font-size: 56pt;
font-weight: normal;
background-image: url(art/snowrss-logo-64.png);
background-repeat: no-repeat;
background-position: left 18px;
}
#head .tagline {
font-size: 150%;
}
#main {
padding: 12px;
}
#foot {
padding: 24px;
background-color: #EEEEEE;
text-align: center;
border-color: #CCCCCC;
border-width: 1px 0 0 0;
border-style: solid;
}
table.elements {
margin: 0 0 0 2em;
border-width: 0;
}
table.elements thead th {
border-color: #666666;
border-style: solid;
border-width: 0 0 1px 0;
vertical-align: top;
text-align: left;
}
table.elements tbody th {
vertical-align: top;
text-align: left;
color: #003366;
}
table.elements th,
table.elements td {
padding: 4px;
}
.req {
display: block;
text-align: center;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="head">
<h1>SnowRSS</h1>
<div class="tagline">
An RSS Extension for Snow Conditions Reports
</div>
</div>
<div id="main">
<h2>What is SnowRSS</h2>
<p>
SnowRSS is an <a href="http://www.disobey.com/detergent/2002/extendingrss2/">extension</a> to <a href="http://cyber.law.harvard.edu/rss/rss.html#hrelementsOfLtitemgt">RSS v2</a> that defines new elements to describe snow, lift and weather conditions for ski resorts.
</p>
<p>
Publishing snow conditions in SnowRSS allows ski resorts to get their conditions data out to developers and skiers in a format that's easy to use and build on.
</p>
<h2>Sample Files</h2>
<p>
This RSS file for <a href="mtrose.rss">Mt Rose Ski Tahoe</a> uses all of the SnowRSS tags.
</p>
<h2>Channel Element Additions</h2>
<p>
SnowRSS adds several elements to the standard channel section.
</p>
<table class="elements">
<thead>
<tr>
<th>Element</th>
<th>Required</th>
<th>Description</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<th>resortName</th>
<td><span class="req">•</span></td>
<td>The name of this ski resort</td>
<td></td>
</tr>
<tr>
<th>conditionsLink</th>
<td><span class="req">•</span></td>
<td>The URL to your HTML Conditions page</td>
<td></td>
</tr>
<tr>
<th>Status</th>
<td><span class="req">•</span></td>
<td>Indicates whether the resort is open. Must be, "open" or "closed"</td>
<td></td>
</tr>
<tr>
<th>scheduledOpenDate</th>
<td></td>
<td>The date the resort is scheduled to open.</td>
<td></td>
</tr>
<tr>
<th>scheduledCloseDate</th>
<td></td>
<td>The date the resort is scheduled to close.</td>
<td></td>
</tr>
<tr>
<th>Temperature</th>
<td></td>
<td>Current temperature</td>
<td></td>
</tr>
<tr>
<th>Winds</th>
<td></td>
<td>Wind speed and direction</td>
<td></td>
</tr>
<tr>
<th>weatherConditions</th>
<td></td>
<td>Description of the current weather</td>
<td></td>
</tr>
<tr>
<th>Visibility</th>
<td></td>
<td>Visibility distance</td>
<td></td>
</tr>
<tr>
<th>Forecast</th>
<td></td>
<td>Weather forecast</td>
<td></td>
</tr>
<tr>
<th>baseDepth</th>
<td></td>
<td>Snow depth at the base</td>
<td></td>
</tr>
<tr>
<th>newSnow24</th>
<td></td>
<td>Depth of new snow fallen in the last 24 hours.</td>
<td></td>
</tr>
<tr>
<th>newSnow48</th>
<td></td>
<td>Depth of new snow fallen in the last 24 hours.</td>
<td></td>
</tr>
<tr>
<th>stormSnowTotal</th>
<td></td>
<td>Total snow fall from the most recent storm.</td>
<td></td>
</tr>
<tr>
<th>seasonSnowTotal</th>
<td></td>
<td>Total snow fall for the season</td>
<td></td>
</tr>
</tbody>
</table>
<h2>Item Element Additions</h2>
<p>
SnowRSS extends the Item tag with new several elements to describe the status of lifts and runs.
</p>
<h3>Additional Elements of Item</h3>
<h4>Lifts</h4>
<table class="elements">
<thead>
<tr>
<th>Element</th>
<th>Required</th>
<th>Description</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<th>Type</th>
<td></td>
<td>Each lift Item element must specify a Type entity of "lift" to define the entity type.</td>
<td></td>
</tr>
<tr>
<th>Status</th>
<td></td>
<td>Indicate whether the lift is open. Status must be "open" or "closed". </td>
<td></td>
</tr>
<tr>
<th>liftType</th>
<td></td>
<td>Describe the list type, tow rope, gondola, etc. </td>
<td></td>
</tr>
</tbody>
</table>
<h4>Runs</h4>
<table class="elements">
<thead>
<tr>
<th>Element</th>
<th>Required</th>
<th>Description</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<th>Type</th>
<td></td>
<td>Each run Item element must specify a Type entity "run" to define the entity type. Resort features such as terrain parks should be labeled "run" as well. </td>
<td></td>
</tr>
<tr>
<th>Status</th>
<td></td>
<td>Indicate whether the run is open. Status must be "open" or "closed". </td>
<td></td>
</tr>
<tr>
<th>Conditions</th>
<td></td>
<td>Describe the snow conditions on the run, "Powder", "Groomed Snow", "Brush and Rocks", etc. </td>
<td></td>
</tr>
<tr>
<th>Difficulty</th>
<td></td>
<td>Indicates the run's standard difficulty level, and should be one of, "Beginner", "Intermediate", "Advanced" or "Expert". </td>
<td></td>
</tr>
</tbody>
</table>
<h2>Logo</h2>
<p>
Users can add the SnowRSS logo to their web pages to indicate they publish their snow conditions enhanced with the SnowRSS namespace.
<p>
<table>
<tr>
<td>
<a href="http://snowline.orchestra.io/snowrss.html" title="Enhanced with SnowRSS"><img src="art/snowrss-logo-64.png" alt="Enhanced with SnowRSS"></a>
</td>
<td>
<a href="http://snowline.orchestra.io/snowrss.html" title="Enhanced with SnowRSS"><img src="art/snowrss-logo-32.png" alt="Enhanced with SnowRSS"></a>
</td>
<td>
<a href="http://snowline.orchestra.io/snowrss.html" title="Enhanced with SnowRSS"><img src="art/snowrss-logo-16.png" alt="Enhanced with SnowRSS"></a>
</td>
</tr>
<tr>
<td>
64px x 64px
</td>
<td>
32px x 32px
</td>
<td>
16px x 16px
</td>
</tr>
<tr>
<td>
<form>
<textarea class="code" cols="32" rows="4"><a href="http://snowline.orchestra.io/snowrss.html" title="Enhanced with SnowRSS"><img src="art/snowrss-logo-64.png" alt="Enhanced with SnowRSS"></a></textarea>
</form>
</td>
<td>
<form>
<textarea class="code" cols="32" rows="4"><a href="http://snowline.orchestra.io/snowrss.html" title="Enhanced with SnowRSS"><img src="art/snowrss-logo-32.png" alt="Enhanced with SnowRSS"></a></textarea>
</form>
</td>
</td>
<td>
<form>
<textarea class="code" cols="32" rows="4"><a href="http://snowline.orchestra.io/snowrss.html" title="Enhanced with SnowRSS"><img src="art/snowrss-logo-16.png" alt="Enhanced with SnowRSS"></a></textarea>
</form>
</td>
</td>
</tr>
</table>
<h2>License</h2>
<p>
SnowRSS published under the terms of the Attribution/Share Alike Creative Commons license. The author of this document is Harold Paulson.
</p>
</div>
<div id="foot">
<a href="http://creativecommons.org/licenses/by-sa/1.0/"><img src="art/ccLogo.gif" alt="Creative Commons License"></a>
</div>
</div>
</body>
</html>