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

@ -267,7 +267,7 @@ The following are common printer attributes:
from the sensor.
- `printer["lm75 <sensor_name>"].temperature`: The last read
temperature from the sensor.
- `printer["rpi_temperature <sensor_name>"].temperature`: The last read
- `printer["temperature_host <sensor_name>"].temperature`: The last read
temperature from the sensor.
- `printer["temperature_sensor <config_name>"].temperature`: The last read
temperature from the sensor.

View file

@ -6,6 +6,12 @@ All dates in this document are approximate.
# Changes
20210219: The `rpi_temperature` module has been renamed to
`temperature_host`. Replace any occurrences of `sensor_type:
rpi_temperature` with `sensor_type: temperature_host`. The
`rpi_temperature` name is deprecated and will be removed in the near
future.
20210201: The `TEST_RESONANCES` command will now disable input shaping
if it was previously enabled (and re-enable it after the test). In order
to override this behavior and keep the input shaping enabled, one can

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