armageddon421 / electrodacus-esp32

20 stars 6 forks source link

Uncaught ReferenceError in legacy page #38

Open helgef opened 1 year ago

helgef commented 1 year ago

Just flashed the latest release (fixing the stale invalid varables).

Seems like the fix also introduced some regressions. sbms.html now throws:

sbms.html:353 Uncaught ReferenceError: Ld is not defined at sbms.html:357:23

Varable definition for Ld is indeed missing in /rawData

I added var Ld="#"; to the output from jsvarstore dump as a workaround and it now threw:

sbms.html:353 Uncaught ReferenceError: PV1 is not defined at sbms.html:353:23

After adding again var PV1="#"; the legacy page works again.

As you probably can tell I am not using a PV input shunt so I guess thats why those varables are empty.

YipNZ commented 1 year ago

Hi,

I'm seeing similar things after updating my sbms0 today:

Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data all http://192.168.92.250/sbms.html:122

http://192.168.92.250/sbms.html:107 [sbms.html:122:16](http://192.168.92.250/sbms.html) all http://192.168.92.250/sbms.html:122 http://192.168.92.250/sbms.html:107 Uncaught ReferenceError: Ld is not defined http://192.168.92.250/sbms.html:355 [sbms.html:355:1](http://192.168.92.250/sbms.html) http://192.168.92.250/sbms.html:355 rawData output: var Btn="##############################################################################################################<'########H###?}###################################################'#&2011.+)(%###############$##&##'&%(##########################"; var Btp="###########################################################################################################f}b##A[G:>79.#179##3331000/111:=?>;>5./3776-*,,+.222,&&)..-,*++*1323)$#%##########%')*+++.-(,($(&#$########}|z{|yyzwyyxzyxzzx{zxxrux?"; var ELd="##############################################################################################################[C####$##*G###Ag#################################$$##############&%&#&0/00-*('%###############$##&##&&$'##########################"; var PV1="###########################################################################################################e}qgcZa``]_`cliktvqnkida___`bcdhmggkjhhffgfeeghebbccdfhfeeeeeffghhiiiik}wiijkkmnprtvxyz||}|{zyxvutsrrqqqqqpponnmmlllkklllllmmmlmmmmll"; var PV2="################################################################################################################################################################################################################################################"; var dmppt="############################################################"; var eA="####Ip###%WN###############%WN###$'r####Il"; var eW="####,z####_J################_J####;b####,y"; var gsbms="%]0%E\\%c7%^H(gQ%?R%f1*n9%T_#########"; var s1=['Ah','A','SBMS0 ']; var s2=[0,0,0,1,0,0,0,0,3,4,1,1]; var sbms="#$$$7I#VKLKUKzJ_##KRKSKP)h##+%#T%6{##################$DZ%N("; var xsbms="#6JQ1Br%#(d";