electrodacus-esp32 icon indicating copy to clipboard operation
electrodacus-esp32 copied to clipboard

Uncaught ReferenceError in legacy page

Open helgef opened this issue 2 years ago • 1 comments

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.

helgef avatar Oct 05 '22 21:10 helgef

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 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: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";

YipNZ avatar Nov 19 '22 22:11 YipNZ