From a3b4e400275a3d4c7ff6f325619b5c5d57dccb77 Mon Sep 17 00:00:00 2001 From: Cameron Thompson <50184035+iamromulan@users.noreply.github.com> Date: Thu, 21 Mar 2024 23:29:16 -0400 Subject: [PATCH] Sync changes with simpleadmintest --- simpleadmin/www/index.html | 44 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/simpleadmin/www/index.html b/simpleadmin/www/index.html index 1b340b9..d392ef1 100644 --- a/simpleadmin/www/index.html +++ b/simpleadmin/www/index.html @@ -256,28 +256,28 @@ }, }; } - // function getSignalData() { - // return { - // csqData: {}, - // lastUpdate: new Date().toLocaleString(), - // getcsq() { - // fetch("/cgi-bin/get_csq") - // .then((res) => res.json()) - // .then((data) => { - // this.csqData = data; - // this.lastUpdate = new Date( - // data.LASTUPDATE * 1000 - // ).toLocaleString(); - // }); - // }, - // init() { - // this.getcsq(); - // setInterval(() => { - // this.getcsq(); - // }, 30000); - // }, - // }; - // } + function getSignalData() { + return { + csqData: {}, + lastUpdate: new Date().toLocaleString(), + getcsq() { + fetch("/cgi-bin/get_csq") + .then((res) => res.json()) + .then((data) => { + this.csqData = data; + this.lastUpdate = new Date( + data.LASTUPDATE * 1000 + ).toLocaleString(); + }); + }, + init() { + this.getcsq(); + setInterval(() => { + this.getcsq(); + }, 30000); + }, + }; + }