Files
Damian Schneider 6b70c6ae91 Remove FRAMETIME return value from all FX (#5314)
* remove "return FRAMETIME" from all FX, fix timing for some FX

- all FX now render every frame, no more "speed up" during transitions

* fix missing return by adding FS_FALLBACK_STATIC macro

* add FX_FALLBACK_STATIC also to user_fx

* remove obsolete seg.next_time
2026-02-09 07:57:49 +01:00
..
2025-01-31 23:59:37 +00:00
2025-05-11 12:19:03 -04:00

Temperature usermod

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.

If temperature sensor is not detected during boot, this usermod will be disabled.

Maintained by @blazoncek

Installation

Add Temperature to custom_usermods in your platformio_override.ini.

Example platformio_override.ini:

[env:usermod_temperature_esp32dev]
extends = env:esp32dev
custom_usermods = ${env:esp32dev.custom_usermods} 
  Temperature

Define Your Options

  • USERMOD_DALLASTEMPERATURE_MEASUREMENT_INTERVAL - number of milliseconds between measurements, defaults to 60000 ms (60s)

All parameters can be configured at runtime via the Usermods settings page, including pin, temperature in degrees Celsius or Fahrenheit and measurement interval.

Change Log

2020-09-12

  • Changed to use async non-blocking implementation
  • Do not report erroneous low temperatures to MQTT
  • Disable plugin if temperature sensor not detected
  • Report the number of seconds until the first read in the info screen instead of sensor error

2021-04

  • Adaptation for runtime configuration.

2023-05

  • Rewrite to conform to newer recommendations.
  • Recommended @blazoncek fork of OneWire for ESP32 to avoid Sensor error

2024-09

  • Update OneWire to version 2.3.8, which includes stickbreaker's and garyd9's ESP32 fixes: blazoncek's fork is no longer needed