major rework

using influxdb structure independed of nicos cache
This commit is contained in:
2025-02-25 14:29:25 +01:00
parent 7aef895462
commit 2c59e37074
12 changed files with 381 additions and 272 deletions

View File

@@ -91,6 +91,17 @@ new Settings()
.treat("hideRightPart", "hr", to_bool, false) //used to completely disable the right part
.treat("wideGraphs", "wg", to_bool, false) //used to toggle the size of the graphs part
.treat("showAsync", "sa", to_bool, false)
.treat("device", "dev", 0, "*")
.treat("server", "srv", 0, "*")
.treat("instrument", "ins", 0, "")
if (window['instrument']) {
window['clientTags'] = "&instrument=" + window["instrument"];
} else {
window['clientTags'] = "&stream=" + window["server"] + "&device=" + window["device"];
}
console.log('TAGS', window['clientTags']);
function loadFirstBlocks() {
if (debug_main_daniel) {
@@ -196,9 +207,9 @@ window.onload = function() {
// var homeButton = document.getElementById("home-icon");
// TODO : uncomment this code with the right URL to navigate to when the way to select the instrument will be decided.
// homeButton.onclick = function () {
// window.location = "http://" + location.hostname + ":8800/";
// };
homeButton.onclick = function () {
window.location = "/select";
};
buildUpdateConnection();
// if (location.hash) {
// console.log("hash in url", location.hash);