Brad Bishop | 45387d6 | 2016-11-10 21:58:58 -0600 | [diff] [blame] | 1 | description: > |
| 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 |
| 10 | |
| 11 | Any service implementing Sensor.Value on one or more objects must |
| 12 | implement org.freedesktop.DBus.ObjectManager on the sensors namespace root. |
| 13 | |
| 14 | All Sensor.Value properties are read-only. |
| 15 | |
| 16 | properties: |
| 17 | - name: Value |
| 18 | type: int64 |
| 19 | description: > |
| 20 | The sensor reading. |
| 21 | - name: Unit |
| 22 | type: enum[self.Unit] |
| 23 | description: > |
| 24 | The unit of the reading. |
| 25 | For objects in the temperature namespace, Unit must be "DegreesC". |
| 26 | For objects in the fan_tach namespace, Unit must be "RPMS". |
| 27 | For objects in the voltage namespace, Unit must be "Volts". |
| 28 | For objects in the altitude namespace, Unit must be "Meters". |
| 29 | - name: Scale |
| 30 | type: int64 |
| 31 | description: > |
| 32 | The reading scaling factor N, where the actual reading is Value * 10^N. |
| 33 | |
| 34 | enumerations: |
| 35 | - name: Unit |
| 36 | description: > |
| 37 | A sensor reading unit. |
| 38 | values: |
| 39 | - name: DegreesC |
| 40 | description: > |
| 41 | Temperature as degrees Celsius. |
| 42 | - name: RPMS |
| 43 | description: > |
| 44 | Frequency of rotation as revolutions per minute. |
| 45 | - name: Volts |
| 46 | description: > |
| 47 | Electomotive force as volts. |
| 48 | - name: Meters |
| 49 | description: > |
| 50 | Length as meters. |
| 51 | |
| 52 | |
| 53 | # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |