* fix crash if `getLossRate` was read from inverter #1288 #1290
* reduce reload time for opendtufusion ethernet variant to 5 seconds
* added basic grid parser
This commit is contained in:
lumapu 2023-12-28 02:21:37 +01:00
parent 8b379f768e
commit 4f75ce7dd1
11 changed files with 876 additions and 46 deletions

View file

@ -175,6 +175,14 @@ function getAjax(url, ptr, method="GET", json=null) {
}
}
const getJSON = async url => {
const re = await fetch(url);
if(!re.ok)
throw new Error(re.statusText);
const data = re.json();
return data;
}
/**
* CREATE DOM FUNCTIONS
*/