mirror of
https://github.com/wled/WLED.git
synced 2025-07-18 16:26:32 +00:00
usermod/Temperature: Update doc
This commit is contained in:
parent
580c2d8213
commit
20563e6306
@ -11,11 +11,19 @@ Maintained by @blazoncek
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Copy the example `platformio_override.ini` to the root directory. This file should be placed in the same directory as `platformio.ini`.
|
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
|
||||||
|
```
|
||||||
|
|
||||||
### Define Your Options
|
### Define Your Options
|
||||||
|
|
||||||
* `USERMOD_DALLASTEMPERATURE` - enables this user mod wled00/usermods_list.cpp
|
|
||||||
* `USERMOD_DALLASTEMPERATURE_MEASUREMENT_INTERVAL` - number of milliseconds between measurements, defaults to 60000 ms (60s)
|
* `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.
|
All parameters can be configured at runtime via the Usermods settings page, including pin, temperature in degrees Celsius or Fahrenheit and measurement interval.
|
||||||
@ -25,28 +33,6 @@ All parameters can be configured at runtime via the Usermods settings page, incl
|
|||||||
* [QuinLED-Dig-Uno](https://quinled.info/2018/09/15/quinled-dig-uno/) - Project link
|
* [QuinLED-Dig-Uno](https://quinled.info/2018/09/15/quinled-dig-uno/) - Project link
|
||||||
* [Srg74-WLED-Wemos-shield](https://github.com/srg74/WLED-wemos-shield) - another great DIY WLED board
|
* [Srg74-WLED-Wemos-shield](https://github.com/srg74/WLED-wemos-shield) - another great DIY WLED board
|
||||||
|
|
||||||
### PlatformIO requirements
|
|
||||||
|
|
||||||
If you are using `platformio_override.ini`, you should be able to refresh the task list and see your custom task, for example `env:d1_mini_usermod_dallas_temperature_C`.
|
|
||||||
|
|
||||||
If you are not using `platformio_override.ini`, you might have to uncomment `OneWire@~2.3.5 under` `[common]` section in `platformio.ini`:
|
|
||||||
|
|
||||||
```ini
|
|
||||||
# platformio.ini
|
|
||||||
...
|
|
||||||
[platformio]
|
|
||||||
...
|
|
||||||
; default_envs = esp07
|
|
||||||
default_envs = d1_mini
|
|
||||||
...
|
|
||||||
[common]
|
|
||||||
...
|
|
||||||
lib_deps =
|
|
||||||
...
|
|
||||||
#For Dallas sensor uncomment following
|
|
||||||
paulstoffregen/OneWire @ ~2.3.8
|
|
||||||
```
|
|
||||||
|
|
||||||
## Change Log
|
## Change Log
|
||||||
|
|
||||||
2020-09-12
|
2020-09-12
|
||||||
|
Loading…
x
Reference in New Issue
Block a user