-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
[core] Added units kvarh and kvar #695
Conversation
Also simplified gravity unit. Signed-off-by: Hilbrand Bouwkamp <[email protected]>
Out of curiosity, how will those units be used? The description on wikiperia is not really informative for people like me who are not electrical engineers :) |
Here is an explanation using the 🍺 analogy 😄 These units are used for a new smart meter thing. Where the meter gives those values. |
@wborn or @cweitkamp can one of you have a look. It is now blocking my dsmr pr and thus blocking migrating the dsmr binding to bnd. |
@@ -82,8 +84,8 @@ | |||
|
|||
// Alphabetical ordered by Unit. | |||
public static final Unit<Acceleration> METRE_PER_SQUARE_SECOND = addUnit(Units.METRE_PER_SQUARE_SECOND); | |||
public static final Unit<Acceleration> STANDARD_GRAVITY = new TransformedUnit<>("gₙ", |
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.
Don't we loose the symbol "g" when applying this.
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.
I think so. Rest looks good IMHO.
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.
The label is assigned in
Line 223 in 6900fcb
SimpleUnitFormat.getInstance().label(STANDARD_GRAVITY, "gₙ"); |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/preparation-for-2-5m2/75738/1 |
Signed-off-by: Chris Jackson <[email protected]>
Also simplified gravity unit. Signed-off-by: Hilbrand Bouwkamp <[email protected]> GitOrigin-RevId: 1d8b7be
Also simplified gravity unit.