Hi, i am trying to activate the temperatur mod, according to the platform_override.ini:
; Options
; -------
; USERMOD_DALLASTEMPERATURE - define this to have this user mod included wled00\usermods_list.cpp
; USERMOD_DALLASTEMPERATURE_CELSIUS - define this to report temperatures in degrees celsius, otherwise fahrenheit will be reported
; USERMOD_DALLASTEMPERATURE_MEASUREMENT_INTERVAL - the number of milliseconds between measurements, defaults to 60 seconds
; USERMOD_DALLASTEMPERATURE_FIRST_MEASUREMENT_AT - the number of milliseconds after boot to take first measurement, defaults to 20 seconds
;
[env:d1_mini_usermod_dallas_temperature_C]
extends = env:d1_mini
build_flags = ${common.build_flags_esp8266} -D USERMOD_DALLASTEMPERATURE -D USERMOD_DALLASTEMPERATURE_CELSIUS
lib_deps = ${env.lib_deps}
milesburton/DallasTemperature@^3.9.0
OneWire@~2.3.5
what do i need to do ? I am new to platformIO and even to C - how do i "define this to have this user mod included " ? If i comment it out, it just yields to error messages that the header is missing
The problem is you post first that you using d1 mini board which is ESP8266 and now you mentioning that you want to use ESP32 ethernet board. Can you describe what is your goal?
No, i didn’t post that - i only showed the platform_override.ini as i downloaded it from git. I do not know what i need to change after i put it in the platformio root.
I have a eth01 board so i used “default_envs = esp32_eth” in platformio.ini
I have no idea what i need to do with the override file. Probably:
; Options
; -------
; USERMOD_DALLASTEMPERATURE - define this to have this user mod included wled00\usermods_list.cpp
; USERMOD_DALLASTEMPERATURE_CELSIUS - define this to report temperatures in degrees celsius, otherwise fahrenheit will be reported
; USERMOD_DALLASTEMPERATURE_MEASUREMENT_INTERVAL - the number of milliseconds between measurements, defaults to 60 seconds
; USERMOD_DALLASTEMPERATURE_FIRST_MEASUREMENT_AT - the number of milliseconds after boot to take first measurement, defaults to 20 seconds
;
[env:esp32_eth_usermod_dallas_temperature_C]
extends = env:esp32_eth
build_flags = ${common.build_flags_esp32} -D USERMOD_DALLASTEMPERATURE -D USERMOD_DALLASTEMPERATURE_CELSIUS
lib_deps = ${env.lib_deps}
milesburton/DallasTemperature@^3.9.0
OneWire@~2.3.5
If you not change any code and just add that env to your PlatformIO override file everything should work fine. I have compiled thousands time and everything is working fine.