Skip to content

Commit

Permalink
0.183.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogerheijde committed Feb 27, 2024
1 parent 578101b commit ee71e2a
Show file tree
Hide file tree
Showing 76 changed files with 3,261 additions and 1,386 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog Hiber API

### 0.183 (2024-02-27)

##### ValueService

- Added a number of Flow units and a Speed unit, with conversion
- Fixed a bug in the conversion from bbl/d to m^3/h
- Improved documentation for units
- Fixed a bug where precision could be lost when units were converted
- This was mostly unnoticable with the rounding in the UI, but still a bug
- This bug could be seen when using unit conversion in alarms

##### UserService

- Added `child_organizations` to `ListUsersRequest` to list users from child organizations.
- Added `organization` to `User` to support this feature.

### 0.181 (2024-02-13)

##### Value
Expand Down
8 changes: 7 additions & 1 deletion base.proto
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ enum UnitOfMeasurement {
SPEED_KNOTS = 19;
SPEED_METERS_PER_SECOND = 20;
SPEED_MILES_PER_HOUR = 22;
SPEED_FEET_PER_SECOND = 47;

TEMPERATURE_KELVIN = 5;
TEMPERATURE_DEGREES_CELSIUS = 6;
Expand All @@ -697,8 +698,13 @@ enum UnitOfMeasurement {
MASS_KILOGRAMS = 37;
MASS_POUNDS = 38;

FLOW_CUBIC_METERS_PER_HOUR = 39;
FLOW_BARRELS_PER_DAY = 46;
FLOW_CUBIC_METER_PER_HOUR = 39;
FLOW_CUBIC_METER_PER_SECOND = 49;
FLOW_LITER_PER_HOUR = 51;
FLOW_LITER_PER_SECOND = 52;
FLOW_CUBIC_FEET_PER_HOUR = 48;
FLOW_CUBIC_FEET_PER_SECOND = 50;

REVOLUTIONS_PER_MINUTE = 44;

Expand Down
8 changes: 7 additions & 1 deletion docs/enum-json/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
,"SPEED_KNOTS": ""
,"SPEED_METERS_PER_SECOND": ""
,"SPEED_MILES_PER_HOUR": ""
,"SPEED_FEET_PER_SECOND": ""
,"TEMPERATURE_KELVIN": ""
,"TEMPERATURE_DEGREES_CELSIUS": ""
,"TEMPERATURE_DEGREES_FAHRENHEIT": ""
Expand All @@ -98,8 +99,13 @@
,"VOLUME_CUBIC_FOOT": ""
,"MASS_KILOGRAMS": ""
,"MASS_POUNDS": ""
,"FLOW_CUBIC_METERS_PER_HOUR": ""
,"FLOW_BARRELS_PER_DAY": ""
,"FLOW_CUBIC_METER_PER_HOUR": ""
,"FLOW_CUBIC_METER_PER_SECOND": ""
,"FLOW_LITER_PER_HOUR": ""
,"FLOW_LITER_PER_SECOND": ""
,"FLOW_CUBIC_FEET_PER_HOUR": ""
,"FLOW_CUBIC_FEET_PER_SECOND": ""
,"REVOLUTIONS_PER_MINUTE": ""
,"ITEMS_PER_24_HOURS": ""
}
Expand Down
118 changes: 62 additions & 56 deletions docs/enum-json/value.json
Original file line number Diff line number Diff line change
@@ -1,73 +1,78 @@
[{
"name": "BatteryLevelUnit",
"description": "other units will be added here later, like voltage",
"description": "Convenience type for battery level. Other units may be added here later, like voltage.",
"values": {
"PERCENT": "Battery level as a percentage (technically not a unit)."
}
},{
"name": "DistanceUnit",
"description": "",
"description": "Unit of distance",
"values": {
"METER": ""
,"MILLIMETER": ""
,"CENTIMETER": ""
,"KILOMETER": ""
,"YARD": ""
,"MILE": ""
,"FOOT": ""
,"INCH": ""
,"NAUTICAL_MILE": "This is a special case unit and may not be auto-converted to your UnitPreference."
"METER": "m"
,"MILLIMETER": "mm"
,"CENTIMETER": "cm"
,"KILOMETER": "km"
,"YARD": "yd"
,"MILE": "mi"
,"FOOT": "'"
,"INCH": ""
,"NAUTICAL_MILE": "NM. This is a special case unit and may not be auto-converted to your UnitPreference."
}
},{
"name": "DurationUnit",
"description": "",
"description": "Unit of duration.",
"values": {
"MILLISECONDS": ""
,"SECONDS": ""
,"MINUTES": ""
,"HOURS": ""
,"DAYS": ""
,"WEEKS": ""
"MILLISECONDS": "ms"
,"SECONDS": "s"
,"MINUTES": "min"
,"HOURS": "h"
,"DAYS": "d"
,"WEEKS": "w"
}
},{
"name": "FlowUnit",
"description": "",
"description": "Unit of volume per time.",
"values": {
"CUBIC_METER_PER_HOUR": ""
,"BARRELS_PER_DAY": ""
"CUBIC_METER_PER_HOUR": "m³/h"
,"BARRELS_PER_DAY": "bbl/d"
,"CUBIC_METER_PER_SECOND": "m³/s"
,"CUBIC_FEET_PER_HOUR": "ft³/h"
,"CUBIC_FEET_PER_SECOND": "ft³/s"
,"LITER_PER_HOUR": "l/h"
,"LITER_PER_SECOND": "l/s"
}
},{
"name": "FuelEfficiencyUnit",
"description": "",
"description": "Unit of fuel efficiency",
"values": {
"LITER_PER_100_KILOMETER": ""
,"KILOMETER_PER_LITER": ""
,"KILOMETER_PER_GALLON": ""
,"KILOMETER_PER_IMPERIAL_GALLON": ""
,"MILE_PER_GALLON": ""
,"MILE_PER_IMPERIAL_GALLON": ""
,"MILE_PER_LITER": ""
"LITER_PER_100_KILOMETER": "l/100km"
,"KILOMETER_PER_LITER": "km/l"
,"KILOMETER_PER_GALLON": "km/gal (US)"
,"KILOMETER_PER_IMPERIAL_GALLON": "km/gal (imp)"
,"MILES_PER_GALLON": "mpg (US)"
,"MILES_PER_IMPERIAL_GALLON": "mpg (imp)"
,"MILES_PER_LITER": "mpl"
}
},{
"name": "MassUnit",
"description": "",
"description": "Unit of mass.",
"values": {
"KILOGRAMS": ""
,"POUNDS": ""
"KILOGRAMS": "kg"
,"POUNDS": "lb"
}
},{
"name": "PercentageUnit",
"description": "",
"description": "Convenience type for percentage. Technically not a unit, but for consistency, we've added it here.",
"values": {
"PERCENT": "Technically not a unit, but for consistency, we've added it here."
"PERCENT": "%"
}
},{
"name": "PressureUnit",
"description": "",
"description": "Unit of pressure.",
"values": {
"BAR": ""
,"PSI": ""
,"K_PA": ""
"BAR": "bar"
,"PSI": "psi"
,"K_PA": "kPa"
}
},{
"name": "RateUnit",
Expand All @@ -79,24 +84,25 @@
"name": "RotationSpeedUnit",
"description": "",
"values": {
"REVOLUTIONS_PER_MINUTE": ""
"REVOLUTIONS_PER_MINUTE": "rpm"
}
},{
"name": "SpeedUnit",
"description": "",
"description": "Unit of speed.",
"values": {
"KILOMETERS_PER_HOUR": ""
,"KNOTS": "This is a special case unit and may not be auto-converted to your UnitPreference."
,"METERS_PER_SECOND": ""
,"MILES_PER_HOUR": ""
"KILOMETERS_PER_HOUR": "km/h"
,"KNOTS": "kn. This is a special case unit and may not be auto-converted to your UnitPreference."
,"METERS_PER_SECOND": "m/s"
,"MILES_PER_HOUR": "mph"
,"FEET_PER_SECOND": "ft/s"
}
},{
"name": "TemperatureUnit",
"description": "",
"description": "Unit of temperature.",
"values": {
"KELVIN": ""
,"DEGREES_CELSIUS": ""
,"DEGREES_FAHRENHEIT": ""
"KELVIN": "K"
,"DEGREES_CELSIUS": "°C"
,"DEGREES_FAHRENHEIT": "°F"
}
},{
"name": "Type",
Expand All @@ -120,19 +126,19 @@
}
},{
"name": "VoltageUnit",
"description": "",
"description": "Unit of voltage.",
"values": {
"MILLIVOLT": ""
"MILLIVOLT": "mV"
}
},{
"name": "VolumeUnit",
"description": "",
"description": "Unit of volume.",
"values": {
"LITER": ""
,"GALLON_US": ""
,"GALLON_IMPERIAL": ""
,"CUBIC_METER": ""
,"CUBIC_FEET": ""
"LITER": "l"
,"GALLON_US": "gal (US)"
,"GALLON_IMPERIAL": "gal (imp)"
,"CUBIC_METER": ""
,"CUBIC_FEET": "ft³"
}
},{
"name": "Type",
Expand Down
42 changes: 39 additions & 3 deletions docs/html/assignment.html
Original file line number Diff line number Diff line change
Expand Up @@ -4731,6 +4731,12 @@ <h3 id="hiber.UnitOfMeasurement">UnitOfMeasurement</h3>
<td><p></p></td>
</tr>

<tr>
<td>SPEED_FEET_PER_SECOND</td>
<td>47</td>
<td><p></p></td>
</tr>

<tr>
<td>TEMPERATURE_KELVIN</td>
<td>5</td>
Expand Down Expand Up @@ -4798,14 +4804,44 @@ <h3 id="hiber.UnitOfMeasurement">UnitOfMeasurement</h3>
</tr>

<tr>
<td>FLOW_CUBIC_METERS_PER_HOUR</td>
<td>FLOW_BARRELS_PER_DAY</td>
<td>46</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_CUBIC_METER_PER_HOUR</td>
<td>39</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_BARRELS_PER_DAY</td>
<td>46</td>
<td>FLOW_CUBIC_METER_PER_SECOND</td>
<td>49</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_LITER_PER_HOUR</td>
<td>51</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_LITER_PER_SECOND</td>
<td>52</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_CUBIC_FEET_PER_HOUR</td>
<td>48</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_CUBIC_FEET_PER_SECOND</td>
<td>50</td>
<td><p></p></td>
</tr>

Expand Down
42 changes: 39 additions & 3 deletions docs/html/certificate.html
Original file line number Diff line number Diff line change
Expand Up @@ -3021,6 +3021,12 @@ <h3 id="hiber.UnitOfMeasurement">UnitOfMeasurement</h3>
<td><p></p></td>
</tr>

<tr>
<td>SPEED_FEET_PER_SECOND</td>
<td>47</td>
<td><p></p></td>
</tr>

<tr>
<td>TEMPERATURE_KELVIN</td>
<td>5</td>
Expand Down Expand Up @@ -3088,14 +3094,44 @@ <h3 id="hiber.UnitOfMeasurement">UnitOfMeasurement</h3>
</tr>

<tr>
<td>FLOW_CUBIC_METERS_PER_HOUR</td>
<td>FLOW_BARRELS_PER_DAY</td>
<td>46</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_CUBIC_METER_PER_HOUR</td>
<td>39</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_BARRELS_PER_DAY</td>
<td>46</td>
<td>FLOW_CUBIC_METER_PER_SECOND</td>
<td>49</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_LITER_PER_HOUR</td>
<td>51</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_LITER_PER_SECOND</td>
<td>52</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_CUBIC_FEET_PER_HOUR</td>
<td>48</td>
<td><p></p></td>
</tr>

<tr>
<td>FLOW_CUBIC_FEET_PER_SECOND</td>
<td>50</td>
<td><p></p></td>
</tr>

Expand Down
Loading

0 comments on commit ee71e2a

Please sign in to comment.