Replies: 4 comments 4 replies
-
See https://github.com/arendst/Tasmota/blob/development/platformio_tasmota_env.ini#L20-L21 |
Beta Was this translation helpful? Give feedback.
-
It won't work to set STA_PASS1 and STA_SSID1 from the command lines options as they are defined in The only supported way is to go through
Nothing prevent you to generate user_config_override.h with a script from environment variable, but you won't be able to do it from the command line unless you modify |
Beta Was this translation helpful? Give feedback.
-
Changed with merged PR #21640 |
Beta Was this translation helpful? Give feedback.
-
@plu Like this way!! [env:tasmota]
build_flags = ${env.build_flags}
-DSTA_PASS1='"${sysenv.STA_PASS1}"'
-DSTA_SSID1='"${sysenv.STA_SSID1}"' |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'd like to set
STA_SSID1
andSTA_PASS1
dynamically when building images. In the end I want to inject them either via environment variables, or by reading some file from/run/secrets/secret
. I have tried various attempts, but without success. For example by setting it viabuild_flags
inplatformio_tasmota_cenv.ini
(still using hardcoded values here for testing purposes):Then another attempt via the
PLATFORMIO_BUILD_FLAGS
environment variable, also adding parameters-D...
etc.But none of this was successful. I'd be super happy to read any ideas/pointers into the right direction. I just want to achieve setting these values without having them in any of the header files.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions