Skip to content

Commit

Permalink
[openweathermap] Semantics added to channel types
Browse files Browse the repository at this point in the history
Also fix few categories to use only official categories

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
  • Loading branch information
lolodomo committed Feb 8, 2022
1 parent 4e6bc09 commit e1af272
Showing 1 changed file with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,10 @@
<label>Apparent Temperature</label>
<description>Current apparent temperature.</description>
<category>Temperature</category>
<tags>
<tag>Measurement</tag>
<tag>Temperature</tag>
</tags>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>

Expand Down Expand Up @@ -502,7 +506,11 @@
<item-type>Number:Length</item-type>
<label>Precipitation</label>
<description>Precipitation volume of the related timespan.</description>
<category>Precipitation</category>
<category>Rain</category>
<tags>
<tag>Measurement</tag>
<tag>Rain</tag>
</tags>
<state readOnly="true" pattern="%.2f %unit%"/>
</channel-type>

Expand Down Expand Up @@ -551,6 +559,10 @@
<label>Gust Speed</label>
<description>Current gust speed.</description>
<category>Wind</category>
<tags>
<tag>Measurement</tag>
<tag>Wind</tag>
</tags>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>

Expand All @@ -566,15 +578,15 @@
<item-type>Number:Dimensionless</item-type>
<label>Cloudiness</label>
<description>Current cloudiness.</description>
<category>Clouds</category>
<category>Sun_Clouds</category>
<state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
</channel-type>

<channel-type id="forecasted-cloudiness">
<item-type>Number:Dimensionless</item-type>
<label>Forecasted Cloudiness</label>
<description>Forecasted cloudiness.</description>
<category>Clouds</category>
<category>Sun_Clouds</category>
<state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
</channel-type>

Expand All @@ -583,6 +595,10 @@
<label>Rain</label>
<description>Rain volume of the last hour.</description>
<category>Rain</category>
<tags>
<tag>Measurement</tag>
<tag>Rain</tag>
</tags>
<state readOnly="true" pattern="%.2f %unit%"/>
</channel-type>

Expand Down Expand Up @@ -614,6 +630,10 @@
<item-type>Number</item-type>
<label>UV Index</label>
<description>Current UV Index.</description>
<tags>
<tag>Measurement</tag>
<tag>Ultraviolet</tag>
</tags>
<state readOnly="true" pattern="%.1f"/>
</channel-type>

Expand Down Expand Up @@ -686,6 +706,10 @@
<item-type>Number:Density</item-type>
<label>Carbon Monoxide</label>
<description>Current concentration of carbon monoxide.</description>
<tags>
<tag>Measurement</tag>
<tag>CO</tag>
</tags>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>

Expand Down

0 comments on commit e1af272

Please sign in to comment.