Closed msillano closed 6 years ago
Hi Marco, thanks I am fine and happy to read that you keep on using my firmware.
First problem is a bug that should be fixed with the latest version.
Second problem is easy: just write
system "set ntp_timezone" | $tz
or similar. With "system" you can dynamically construct any CLI command you like within a script and execute it.
Hi, how are you? After some time dedicated to HW, back to using your wonderful esp_mqtt.
Doing a watering timer, I have some problems with flash variables: when I write a value shorter than the stored one, i get the 2 values mixed, like an overvrite. Workaround: i add a space to numeric value fragment (inside an 'on topic'): setvar $tmp = (json_parse("value",$this_data) * 60000) // value = 1... 180. min: @2 60000... 10800000 ms for timer. setvar @2 = $tmp // this not works setvar @2 = $tmp | " " // this works for me (?) println "Set howlong " | $tmp | " (" | @2 | ")" // only for test
Second problem: The NTP client implementation do not uses Daylight saving time. So to get the rigth time, I change the TZ. But this can be done only with a 'config', so not at run time inside an 'on topic' So it is necessary the use of telnet to port 7777 to change TZ for DST.