Allow local autoconf testing
hallard opened this issue · 5 comments
Hi Stephane,
Is there a way to local test autoconf file? I mean when I have no autoconf anymore (by clicked remove autoconf) then I want to try a autoconf file it only presents files available from here (meaning I needy to PR and you to merge).
I can generate autoconf on my fork with gen.py
without any issue then upload the file to filesystem but I have no way to say "use the autoconf file present on filesystem"
Did I miss something?
Yes it's easy. Just copy your autoconf in the file system (only 1 must be present), and remove the hidden file .autoconf
in the file system.
File .autoconf
is an indicator that the autoconf was already applied
That's what I've done, not sure what's happening but command in init.bat are not executed, may be zip format is wrong, I generated them on macos with gen.py
, we'll see after merge #56
To create autoconf just use zip -j -0 <file>.autoconf <your_files>
@s-hadinger I think l have an issue, used latest Tasmota teleinfo C6, tasmota works fine, then done a factory reset, configured back WiFi with AP and then once on the network, just applied Winky AutoConf following
Br load("Winky.autoconf#cp2fs.be")
Template {"NAME":"Winky","GPIO":[1,4704,1376,4705,5632,4706,640,608,1,32,1,0,0,0,0,0,0,0,1,1,1,1,1,4096,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
; All these parameters are saved onto flash device
; so once configured, you can change them afterward
; in the file autoexec.be copied onto the filesystem
; =====================================================
; Disable Boot Loop Detection
SetOption65 1
; Enable Wifi Scan (avoid wifi lost if router change channel)
SetOption56 1
; Set Telemetry to 290s (300 special reserved by tasmota)
TelePeriod 290
; Set Sleeping time
DeepSleepTime 290
; define OTA Url
OtaUrl https://github.com/NicolasBernaerts/tasmota/raw/master/teleinfo/binary/tasmota32c6-teleinfo-winky.bin
; Set auto timezone
Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120
; Set Teleinfo in legacy (historique) mode at 1200 baud.
; EnergyConfig Historique
; Set Teleinfo in standard mode at 9600 baud.
; EnergyConfig Standard
; Set LED brightness to 75%, in sleep mode it will be bright/2
Energyconfig bright=75
; 0 for Green LED and 1 for Period Indicator (blue, white or red)
Energyconfig period=1
; Set Teleinfo to autodetect mode (standard or historique)
Energyconfig automode
; use template and reboot
Module 0
As you can see according logs below, everything is fine, copy the 2 files from Winky. autoconf
autoexec.be
and teleinfo.be
to file system. Then apply Template
command and then says init.bat is finished and restart without applying other commands
0:00:00.200 CMD: Using USB CDC
00:00:00.200 HDW: ESP32-C6FH4 v0.1
00:00:00.214 UFS: FlashFS mounted with 1312 kB free
00:00:00.224 CFG: Loaded from File, Count 8
00:00:00.226 SER: Set to 8N1 115200 bit/s
00:00:00.226 SER: HWCDC supports 115200 bit/s only
00:00:00.231 QPC: Count 1
00:00:00.253 BRY: Berry initialized, RAM used 3910 bytes
00:00:00.268 Project tasmota - Tasmota Version 14.2.0.4(7b8308c-teleinfo)-3_0_4(2024-09-12T10:36:07)
00:00:00.369 OTA: copying /Winky.autoconf#autoexec.be
00:00:00.447 OTA: copying /Winky.autoconf#teleinfo.be
00:00:00.570 RSL: RESULT = {"Br":"true"}
00:00:00.580 RSL: RESULT = {"NAME":"Winky","GPIO":[1,4704,1376,4705,5632,4706,640,608,1,32,1,0,0,0,0,0,0,0,1,1,1,1,1,4096,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
00:00:00.582 CFG: 'init.bat' done, restarting
00:00:00.632 BRY: Successfully loaded 'autoexec.be'
00:00:02.000 WIF: Connecting to AP1 CH2I-HOTSPOT Channel 1 BSSId 94:83:C4:34:F0:E0 in mode HT20 as tasmota-097FC4-7689...
00:00:04.007 WIF: Connected
00:00:04.261 HTP: Web server active on tasmota-097FC4-7689 with IP address 192.168.1.155
16:54:05.266 RSL: INFO1 = {"Info1":{"Module":"ESP32C6","Version":"14.2.0.4(7b8308c-teleinfo)","FallbackTopic":"cmnd/DVES_097FC4_fb/","GroupTopic":"cmnd/tasmotas/"}}
16:54:05.267 RSL: INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"tasmota-097FC4-7689","IPAddress":"192.168.1.155","IP6Global":"","IP6Local":"fe80::f2f5:bdff:fe09:7fc4%st1"}}
16:54:05.268 RSL: INFO3 = {"Info3":{"RestartReason":"Software reset CPU","BootCount":5}}
16:54:07.777 QPC: Reset
16:54:09.781 RSL: STATE = {"Time":"2024-09-12T16:54:09","Uptime":"0T00:00:09","UptimeSec":9,"Heap":310,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"Berry":{"HeapUsed":5,"Objects":55},"Wifi":{"AP":1,"SSId":"CH2I-HOTSPOT","BSSId":"94:83:C4:34:F0:E0","Channel":1,"Mode":"HT20","RSSI":100,"Signal":-19,"LinkCount":1,"Downtime":"0T00:00:04"}}
Self Answer
- Local test of autoconf now works
- my
autoconf
works
issue is empty lines in init.bat
(I'm pretty sure this was working before) init.bat
stop execution on first empty line found.