blob: 2a060e84ae023eac2bec51c68736250ed977010b [file] [log] [blame]
Brad Bishop45387d62016-11-10 21:58:58 -06001description: >
2 Implement to provide sensor readings. Objects implementing
3 Sensor.Value must be instantiated in the correct
4 hierarchy within the sensors namespace. The following sensor
5 hierarchies are recognized:
6 temperature
7 fan_tach
8 voltage
9 altitude
Brad Bishop6c4e2e92016-12-28 13:38:31 -050010 current
11 power
12 energy
Brad Bishop45387d62016-11-10 21:58:58 -060013
14 Any service implementing Sensor.Value on one or more objects must
15 implement org.freedesktop.DBus.ObjectManager on the sensors namespace root.
16
17 All Sensor.Value properties are read-only.
18
19properties:
20 - name: Value
21 type: int64
22 description: >
23 The sensor reading.
24 - name: Unit
25 type: enum[self.Unit]
26 description: >
27 The unit of the reading.
28 For objects in the temperature namespace, Unit must be "DegreesC".
29 For objects in the fan_tach namespace, Unit must be "RPMS".
30 For objects in the voltage namespace, Unit must be "Volts".
31 For objects in the altitude namespace, Unit must be "Meters".
Brad Bishop6c4e2e92016-12-28 13:38:31 -050032 For objects in the current namespace, Unit must be "Amperes".
33 For objects in the power namespace, Unit must be "Watts".
34 For objects in the energy namespace, Unit must be "Joules".
Brad Bishop45387d62016-11-10 21:58:58 -060035 - name: Scale
36 type: int64
37 description: >
38 The reading scaling factor N, where the actual reading is Value * 10^N.
39
40enumerations:
41 - name: Unit
42 description: >
43 A sensor reading unit.
44 values:
45 - name: DegreesC
46 description: >
47 Temperature as degrees Celsius.
48 - name: RPMS
49 description: >
50 Frequency of rotation as revolutions per minute.
51 - name: Volts
52 description: >
53 Electomotive force as volts.
54 - name: Meters
55 description: >
56 Length as meters.
Brad Bishop6c4e2e92016-12-28 13:38:31 -050057 - name: Amperes
58 description: >
59 Electrical charge flow rate as Amperes.
60 - name: Watts
61 description: >
62 Rate of energy transfer as Watts.
63 - name: Joules
64 description: >
65 Energy transfer as Joules.
Brad Bishop45387d62016-11-10 21:58:58 -060066
67
68# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4