[astro] Add semantic tags (#18540)

* Add semantic tags

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
pull/18690/head
Andrew Fiddian-Green 2025-05-16 12:43:05 +01:00 committed by GitHub
parent 9c60da59ab
commit c6c63bd609
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 113 additions and 0 deletions

View File

@ -29,6 +29,9 @@
<item-type>Number:Angle</item-type> <item-type>Number:Angle</item-type>
<label>Azimuth</label> <label>Azimuth</label>
<description>The azimuth of the planet</description> <description>The azimuth of the planet</description>
<tags>
<tag>Calculation</tag>
</tags>
<state readOnly="true" pattern="%.2f %unit%"/> <state readOnly="true" pattern="%.2f %unit%"/>
</channel-type> </channel-type>
@ -36,6 +39,9 @@
<item-type>Number:Angle</item-type> <item-type>Number:Angle</item-type>
<label>Elevation</label> <label>Elevation</label>
<description>The elevation of the planet</description> <description>The elevation of the planet</description>
<tags>
<tag>Calculation</tag>
</tags>
<state readOnly="true" pattern="%.2f %unit%"/> <state readOnly="true" pattern="%.2f %unit%"/>
</channel-type> </channel-type>
@ -43,6 +49,9 @@
<item-type>Number</item-type> <item-type>Number</item-type>
<label>Shade Length Ratio</label> <label>Shade Length Ratio</label>
<description>Projected shade length ratio (derived from Elevation)</description> <description>Projected shade length ratio (derived from Elevation)</description>
<tags>
<tag>Calculation</tag>
</tags>
<state readOnly="true" pattern="%.2f"/> <state readOnly="true" pattern="%.2f"/>
</channel-type> </channel-type>
@ -50,6 +59,10 @@
<item-type>Number:Intensity</item-type> <item-type>Number:Intensity</item-type>
<label>Direct Radiation</label> <label>Direct Radiation</label>
<description>Level of radiation after penetration of the atmospheric layer</description> <description>Level of radiation after penetration of the atmospheric layer</description>
<tags>
<tag>Calculation</tag>
<tag>Level</tag>
</tags>
<state readOnly="true" pattern="%.2f %unit%"/> <state readOnly="true" pattern="%.2f %unit%"/>
</channel-type> </channel-type>
@ -57,6 +70,10 @@
<item-type>Number:Intensity</item-type> <item-type>Number:Intensity</item-type>
<label>Diffuse Radiation</label> <label>Diffuse Radiation</label>
<description>Level of radiation diffracted by clouds and atmosphere</description> <description>Level of radiation diffracted by clouds and atmosphere</description>
<tags>
<tag>Calculation</tag>
<tag>Level</tag>
</tags>
<state readOnly="true" pattern="%.2f %unit%"/> <state readOnly="true" pattern="%.2f %unit%"/>
</channel-type> </channel-type>
@ -64,6 +81,9 @@
<item-type>Number:Intensity</item-type> <item-type>Number:Intensity</item-type>
<label>Total Radiation</label> <label>Total Radiation</label>
<description>Total quantity of radiation on the ground</description> <description>Total quantity of radiation on the ground</description>
<tags>
<tag>Calculation</tag>
</tags>
<state readOnly="true" pattern="%.2f %unit%"/> <state readOnly="true" pattern="%.2f %unit%"/>
</channel-type> </channel-type>
@ -93,6 +113,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Start Time</label> <label>Start Time</label>
<description>The start time of the event</description> <description>The start time of the event</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
<config-description-ref uri="channel-type:astro:config"/> <config-description-ref uri="channel-type:astro:config"/>
</channel-type> </channel-type>
@ -101,6 +125,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>End Time</label> <label>End Time</label>
<description>The end time of the event</description> <description>The end time of the event</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
<config-description-ref uri="channel-type:astro:config"/> <config-description-ref uri="channel-type:astro:config"/>
</channel-type> </channel-type>
@ -109,6 +137,10 @@
<item-type>Number:Time</item-type> <item-type>Number:Time</item-type>
<label>Duration</label> <label>Duration</label>
<description>The duration of the event</description> <description>The duration of the event</description>
<tags>
<tag>Calculation</tag>
<tag>Duration</tag>
</tags>
<state readOnly="true" pattern="%d %unit%"/> <state readOnly="true" pattern="%d %unit%"/>
</channel-type> </channel-type>
@ -140,6 +172,10 @@
<item-type>String</item-type> <item-type>String</item-type>
<label>Sign</label> <label>Sign</label>
<description>The sign of the zodiac</description> <description>The sign of the zodiac</description>
<tags>
<tag>Status</tag>
<tag>Info</tag>
</tags>
<state readOnly="true"> <state readOnly="true">
<options> <options>
<option value="ARIES">Aries</option> <option value="ARIES">Aries</option>
@ -183,6 +219,10 @@
<item-type>String</item-type> <item-type>String</item-type>
<label>Season Name</label> <label>Season Name</label>
<description>The name of the current season</description> <description>The name of the current season</description>
<tags>
<tag>Status</tag>
<tag>Info</tag>
</tags>
<state readOnly="true"> <state readOnly="true">
<options> <options>
<option value="SPRING">Spring</option> <option value="SPRING">Spring</option>
@ -197,6 +237,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Spring</label> <label>Spring</label>
<description>The beginning of spring</description> <description>The beginning of spring</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -204,6 +248,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Summer</label> <label>Summer</label>
<description>The beginning of summer</description> <description>The beginning of summer</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -211,6 +259,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Autumn</label> <label>Autumn</label>
<description>The beginning of autumn</description> <description>The beginning of autumn</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -218,6 +270,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Winter</label> <label>Winter</label>
<description>The beginning of winter</description> <description>The beginning of winter</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -240,6 +296,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Total Eclipse</label> <label>Total Eclipse</label>
<description>The DateTime of the next total eclipse</description> <description>The DateTime of the next total eclipse</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -247,6 +307,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Partial Eclipse</label> <label>Partial Eclipse</label>
<description>The DateTime of the next partial eclipse</description> <description>The DateTime of the next partial eclipse</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -254,6 +318,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Ring Eclipse</label> <label>Ring Eclipse</label>
<description>The DateTime of the next ring eclipse</description> <description>The DateTime of the next ring eclipse</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -284,6 +352,10 @@
<item-type>String</item-type> <item-type>String</item-type>
<label>Sun Phase Name</label> <label>Sun Phase Name</label>
<description>The name of the current sun phase</description> <description>The name of the current sun phase</description>
<tags>
<tag>Status</tag>
<tag>Info</tag>
</tags>
<state readOnly="true"> <state readOnly="true">
<options> <options>
<option value="SUN_RISE">Sunrise</option> <option value="SUN_RISE">Sunrise</option>
@ -323,6 +395,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>First Quarter</label> <label>First Quarter</label>
<description>The DateTime the moon is in the first quarter</description> <description>The DateTime the moon is in the first quarter</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -330,6 +406,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Third Quarter</label> <label>Third Quarter</label>
<description>The DateTime the moon is in the third quarter</description> <description>The DateTime the moon is in the third quarter</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -337,6 +417,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Full Moon</label> <label>Full Moon</label>
<description>The DateTime for full moon</description> <description>The DateTime for full moon</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -344,6 +428,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>New Moon</label> <label>New Moon</label>
<description>The DateTime for new moon</description> <description>The DateTime for new moon</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -351,6 +439,10 @@
<item-type>Number:Time</item-type> <item-type>Number:Time</item-type>
<label>Moon Age</label> <label>Moon Age</label>
<description>The age of the moon in days</description> <description>The age of the moon in days</description>
<tags>
<tag>Calculation</tag>
<tag>Duration</tag>
</tags>
<state readOnly="true" pattern="%d %unit%"/> <state readOnly="true" pattern="%d %unit%"/>
</channel-type> </channel-type>
@ -358,6 +450,9 @@
<item-type>Number:Angle</item-type> <item-type>Number:Angle</item-type>
<label>Moon Age</label> <label>Moon Age</label>
<description>The age of the moon</description> <description>The age of the moon</description>
<tags>
<tag>Calculation</tag>
</tags>
<state readOnly="true" pattern="%.2f %unit%"/> <state readOnly="true" pattern="%.2f %unit%"/>
</channel-type> </channel-type>
@ -365,6 +460,9 @@
<item-type>Number:Dimensionless</item-type> <item-type>Number:Dimensionless</item-type>
<label>Moon Age</label> <label>Moon Age</label>
<description>The age of the moon</description> <description>The age of the moon</description>
<tags>
<tag>Calculation</tag>
</tags>
<state readOnly="true" pattern="%.2f %unit%"/> <state readOnly="true" pattern="%.2f %unit%"/>
</channel-type> </channel-type>
@ -372,6 +470,9 @@
<item-type>Number:Dimensionless</item-type> <item-type>Number:Dimensionless</item-type>
<label>Moon Illumination</label> <label>Moon Illumination</label>
<description>The illumination of the moon</description> <description>The illumination of the moon</description>
<tags>
<tag>Calculation</tag>
</tags>
<state readOnly="true" pattern="%.0f %unit%"/> <state readOnly="true" pattern="%.0f %unit%"/>
</channel-type> </channel-type>
@ -379,6 +480,9 @@
<item-type>String</item-type> <item-type>String</item-type>
<label>Moon Phase Name</label> <label>Moon Phase Name</label>
<description>The name of the current moon phase</description> <description>The name of the current moon phase</description>
<tags>
<tag>Status</tag>
</tags>
<state readOnly="true"> <state readOnly="true">
<options> <options>
<option value="NEW">New moon</option> <option value="NEW">New moon</option>
@ -450,6 +554,10 @@
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Date</label> <label>Date</label>
<description>The DateTime when the distance is reached</description> <description>The DateTime when the distance is reached</description>
<tags>
<tag>Calculation</tag>
<tag>Timestamp</tag>
</tags>
<state readOnly="true" pattern="%1$tF %1$tR"/> <state readOnly="true" pattern="%1$tF %1$tR"/>
</channel-type> </channel-type>
@ -457,6 +565,9 @@
<item-type>Number:Length</item-type> <item-type>Number:Length</item-type>
<label>Distance</label> <label>Distance</label>
<description>The distance of the object</description> <description>The distance of the object</description>
<tags>
<tag>Calculation</tag>
</tags>
<state readOnly="true" pattern="%.1f %unit%"/> <state readOnly="true" pattern="%.1f %unit%"/>
</channel-type> </channel-type>

View File

@ -7,6 +7,7 @@
<thing-type id="moon"> <thing-type id="moon">
<label>Astro Moon Data</label> <label>Astro Moon Data</label>
<description>Provides astronomical data from the moon</description> <description>Provides astronomical data from the moon</description>
<semantic-equipment-tag>Application</semantic-equipment-tag>
<channel-groups> <channel-groups>
<channel-group id="rise" typeId="moonRange"> <channel-group id="rise" typeId="moonRange">

View File

@ -7,6 +7,7 @@
<thing-type id="sun"> <thing-type id="sun">
<label>Astro Sun Data</label> <label>Astro Sun Data</label>
<description>Provides astronomical data from the sun</description> <description>Provides astronomical data from the sun</description>
<semantic-equipment-tag>Application</semantic-equipment-tag>
<channel-groups> <channel-groups>
<channel-group id="rise" typeId="sunRange"> <channel-group id="rise" typeId="sunRange">