temperature_host: Rename rpi_temperature and add support for custom paths

Signed-off-by: Evgenii Shavrin <shavrin0591@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Evgenii 2021-02-17 22:59:57 +03:00 committed by Kevin O'Connor
parent 267a2f3a38
commit 3d35c003db
5 changed files with 30 additions and 17 deletions

View file

@ -2145,12 +2145,16 @@ sensor_type: temperature_mcu
# micro-controller specification.
```
## RPi temperature sensor
## Host temperature sensor
CPU temperature from the Raspberry Pi running the host software.
Temperature from the machine (eg Raspberry Pi) running the host software.
```
sensor_type: rpi_temperature
sensor_type: temperature_host
#path:
# The path to temperature system file. The default is
# "/sys/class/thermal/thermal_zone0/temp" which is the temperature
# system file on a Raspberry Pi computer.
```
## DS18B20 temperature sensor