forked from jensmoes/wmr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wmr.dtd
36 lines (26 loc) · 1.17 KB
/
wmr.dtd
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
<!ELEMENT station (system,clock?,battery,sensor*)>
<!ATTLIST station name CDATA #IMPLIED>
<!ELEMENT system (datetime)>
<!ELEMENT datetime (#PCDATA)>
<!ELEMENT clock (datetime)>
<!ELEMENT battery (#PCDATA)>
<!ELEMENT sensor (version?,system,datetime?,battery,winddirection?,windvelocity*,rain*,temperature*,humidity?,pressure*,forecast?)>
<!ATTLIST sensor name (wind|rain|barothermohygro|thermohygro|thermo) #REQUIRED>
<!ATTLIST sensor type (indoor|outdoor|aux1|aux2|aux3) #REQUIRED>
<!ELEMENT version (#PCDATA)>
<!ELEMENT winddirection (#PCDATA)>
<!ATTLIST winddirection unit (degrees) #IMPLIED>
<!ELEMENT windvelocity (#PCDATA)>
<!ATTLIST windvelocity name (gust|average) #REQUIRED>
<!ATTLIST windvelocity unit CDATA #IMPLIED>
<!ELEMENT rain (#PCDATA|datetime)*>
<!ATTLIST rain name (current|total|yesterday) #REQUIRED>
<!ATTLIST rain unit CDATA #IMPLIED>
<!ELEMENT temperature (#PCDATA)>
<!ATTLIST temperature name (temperature|dewpoint|windchill) "temperature">
<!ATTLIST temperature unit CDATA "℃">
<!ELEMENT humidity (#PCDATA)>
<!ELEMENT pressure (#PCDATA)>
<!ATTLIST pressure name (station|sealevel) #REQUIRED>
<!ATTLIST pressure unit CDATA "hPa">
<!ELEMENT forecast (#PCDATA)>