2020-05-28 00:20:02 +00:00
# Temperature usermod
2022-12-10 15:12:55 +00:00
Based on the excellent `QuinLED_Dig_Uno_Temp_MQTT` usermod by srg74 and 400killer!
Reads an attached DS18B20 temperature sensor (as available on the QuinLED Dig-Uno)
Temperature is displayed in both the Info section of the web UI as well as published to the `/temperature` MQTT topic, if enabled.
May be expanded with support for different sensor types in the future.
2020-05-28 00:20:02 +00:00
2020-09-13 17:26:27 +00:00
If temperature sensor is not detected during boot, this usermod will be disabled.
2023-05-11 15:33:09 +00:00
Maintained by @blazoncek
2020-05-28 00:20:02 +00:00
## Installation
2025-03-01 20:29:59 +00:00
Add `Temperature` to `custom_usermods` in your platformio_override.ini.
Example **platformio_override.ini** :
```ini
[env:usermod_temperature_esp32dev]
extends = env:esp32dev
custom_usermods = ${env:esp32dev.custom_usermods}
Temperature
```
2020-09-13 17:26:27 +00:00
### Define Your Options
2023-05-11 15:33:09 +00:00
* `USERMOD_DALLASTEMPERATURE_MEASUREMENT_INTERVAL` - number of milliseconds between measurements, defaults to 60000 ms (60s)
2020-05-28 00:20:02 +00:00
2024-02-06 13:47:20 +00:00
All parameters can be configured at runtime via the Usermods settings page, including pin, temperature in degrees Celsius or Fahrenheit and measurement interval.
2021-05-07 10:41:39 +00:00
2020-05-28 00:20:02 +00:00
## Project link
* [QuinLED-Dig-Uno ](https://quinled.info/2018/09/15/quinled-dig-uno/ ) - Project link
2021-05-17 10:52:27 +00:00
* [Srg74-WLED-Wemos-shield ](https://github.com/srg74/WLED-wemos-shield ) - another great DIY WLED board
2020-05-28 00:20:02 +00:00
2020-09-13 17:26:27 +00:00
## Change Log
2025-05-11 16:19:03 +00:00
2020-09-12
2022-12-10 15:12:55 +00:00
* Changed to use async non-blocking implementation
* Do not report erroneous low temperatures to MQTT
2020-09-13 17:26:27 +00:00
* Disable plugin if temperature sensor not detected
2021-03-30 09:45:48 +00:00
* Report the number of seconds until the first read in the info screen instead of sensor error
2024-09-07 05:13:59 +00:00
2021-05-07 10:41:39 +00:00
2021-04
2025-05-11 16:19:03 +00:00
2022-12-10 15:12:55 +00:00
* Adaptation for runtime configuration.
2024-09-07 05:13:59 +00:00
2023-05-11 15:33:09 +00:00
2023-05
2025-05-11 16:19:03 +00:00
2023-05-11 15:33:09 +00:00
* Rewrite to conform to newer recommendations.
2024-09-07 06:27:54 +00:00
* Recommended @blazoncek fork of OneWire for ESP32 to avoid Sensor error
2024-09
2025-05-11 16:19:03 +00:00
2024-09-07 06:27:54 +00:00
* Update OneWire to version 2.3.8, which includes stickbreaker's and garyd9's ESP32 fixes:
2025-05-11 16:19:03 +00:00
blazoncek's fork is no longer needed