-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[astro] Add semantic tags #18540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[astro] Add semantic tags #18540
Conversation
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
|
@jimtng just pinging you on this because we may need more properties ;) |
|
TBH I am really not sure what semantic to assign to each of them, or whether we need to assign any tags here at all. So many things are swirling in mind, I apologise that I don't have a clear idea:
|
I'm not sure if |
|
This one is a bit "different" because these values are not "forecast/prediction". In a forecast, you don't know for sure that it will be so. In the case of astro, I think they will be so in the future. It's not a matter of prediction, but a calculation (not "measurement"). Although we are not "there yet" in time, but we will eventually experience it. Nothing will change between now and then, the data will remain the same. |
|
@jimtng apropos your questions: that is the reason why I chose this binding -- as a kind of sanity check for semantics overall.. |
|
Do we need all the channels to have semantic tags? I guess the question is:
|
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
|
About the latest commit - none of should be tagged as Furthermore, not all the channels will return future date. Some will return past date, depending on where you are in the cycle, so calling it forecast is wrong for this reason too. The elevation / azimuth etc are all current data, so tagging them as forecast is wrong too. |
It is a hard call. I suppose that all astro events in the past are measurements (observations), and all in the future are forecasts. A forecast is a prediction based on a calculation based on a model. The fact that our models and calculations are so good that the result is 99.999999% correct does not mean that the forecast is actually an observation. .. it is quite a moot point for Islamic scholars where e.g. the start day of Ramadan is not fixed in advance based on a calculation; but rather the Islamic world must wait until the actual lunar observation will have been done .. |
bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/channels.xml
Show resolved
Hide resolved
I think the difference is that a forecast can change because its calculation is based on non-static factors (e.g. measurement of atmospheric pressures, wind direction, etc). Whereas this binding will give you the exact same predictable result for the same lat/long and time. Hence why I don't think that this qualifies as "forecast" even though it does tell you when certain events will occur (or had occurred) in the future / past. To me they're all status because when you want to know when sunset will be, you get the data you requested right there and then. It is not a prediction, based on possibly changing conditions. Astro isn't going to suddenly return a different sunset time an hour later because "something is changing". This is unlike a forecast (e.g. weather) that may/can change.
But we are not dealing with Ramadhan (AFAIK?) in this binding so this example doesn't apply. Astro's results are fixed in advance. An example I can think of: Given an equation |
|
A quick summary of my thoughts.
|
We did :) .. But the consensus was that At the very least let us add the word |
|
@rkoshak / @jlaur / @jimtng / @lsiepel -- how shall we proceed with this? It affects all bindings that are either a) astronomical in nature, or b) that have channels which are not exactly measurements in the normal sense. The decision that we make here would be a precedent to eventually apply to all such addons. There are two specific issues to resolve..
So we have the following options:
=> So please cast your votes for 1. thru 6. above (personally I vote for 5.).. |
|
My thoughts exactly |
Maybe |
|
"Calculation" works for me. But I also think that not tagging particularly thorny Channels should be an option. "Application" is the best alternative equipment name I can think of. |
|
I just opened a PR to add those tags to Core.. |
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
|
@lsiepel / @rkoshak / @jimtng the core PR has been merged, so in principle this PR is now ready to go; however I noticed that this astro binding also got separately reviewed in #18585 and #18664 .. so I will take over any changes and comments from those PRs into this PR in order to avoid confusion and duplication. |
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/channels.xml
Show resolved
Hide resolved
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM.
@jlaur you seem to have spend much more time on this topic. I'm trying to catch up, any comments?
Not really, I'm also catching up, but at a slow pace. I don't quite understand the use-case behind the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Add semantic tags Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This PR adds semantic tags.
Signed-off-by: Andrew Fiddian-Green software@whitebear.ch