-
Notifications
You must be signed in to change notification settings - Fork 4
/
units.go
91 lines (89 loc) · 2.36 KB
/
units.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package senml
// Unit is the unit for a measurement value.
type Unit string
const (
Meter Unit = "m"
Kilogram Unit = "kg"
Second Unit = "s"
Ampere Unit = "A"
Kelvin Unit = "K"
Candela Unit = "cd"
Mole Unit = "mol"
Hertz Unit = "Hz"
Radian Unit = "rad"
Steradian Unit = "sr"
Newton Unit = "N"
Pascal Unit = "Pa"
Joule Unit = "J"
Watt Unit = "W"
Coulomb Unit = "C"
Volt Unit = "V"
Farad Unit = "F"
Ohm Unit = "Ohm"
Siemens Unit = "S"
Weber Unit = "Wb"
Tesla Unit = "T"
Henry Unit = "H"
// degrees Celsius
Celsius Unit = "Cel"
Lumen Unit = "lm"
Lux Unit = "lux"
Becquerel Unit = "Bq"
Gray Unit = "Gy"
Sievert Unit = "Sv"
Katal Unit = "kat"
// square meter (area)
SquareMeter Unit = "m2"
// cubic meter (volume)
CubicMeter Unit = "m3"
// liter (volume)
Liter Unit = "l"
// meter per second (velocity)
MeterPerSecond Unit = "m/s"
// meter per square second (acceleration)
MeterPerSquareSecond Unit = "m/s2"
// cubic meter per second (flow rate)
CubicMeterPerSecond Unit = "m3/s"
// liter per second (flow rate)
LiterPerSecond Unit = "l/s"
// watt per square meter (irradiance)
WattPerSquareMeter Unit = "W/m2"
// candela per square meter (luminance)
CandelaPerSquareMeter Unit = "cd/m2"
// bit (information content)
Bit Unit = "bit"
// bit per second (data rate)
BitPerSecond Unit = "bit/s"
// degrees latitude
DegreesLatitude Unit = "lat"
// degrees longitude
DegreesLongitude Unit = "lon"
// pH value (acidity; logarithmic quantity)
PH Unit = "pH"
// decibel (logarithmic quantity)
Decibel Unit = "dB"
// decibel relative to 1 W (power level)
Decibel1W Unit = "dBW"
// bel (sound pressure level; logarithmic quantity)
Bel Unit = "Bspl"
// 1 (counter value)
Count Unit = "count"
// 1 (Ratio e.g., value of a switch)
Switch Unit = "/"
// percentage
Percentage Unit = "%"
// percentage (Relative Humidity)
RelativeHumidity Unit = "%RH"
// percentage (remaining battery energy level)
EnergyLevel Unit = "%EL"
// seconds (remaining battery energy level)
EnergyRemaining Unit = "EL"
// 1 per second (event rate)
EventRate Unit = "1/s"
// 1 per minute (Heart rate in beats per minute)
BeatsPerMinute Unit = "beat/min"
// 1 (Cumulative number of heart beats)
Beats Unit = "beats"
// siemens per meter (conductivity)
SiemensPerMeter Unit = "S/m"
)