Bare minimum config file I have right now:
Code: Select all
var config = {};
config["domoticz_ip"] = "[xxxxxx]";
blocks["costs"] = {
title: "costs",
devices: [97, 101],
graph: ["line", "bar", "bar", "bar"],
stacked: true,
tooltiptotal: false,
custom: {
"last week": {
range: "month",
filter: "1 weeks",
data: {
total:
"(d\.v_101*3\.33211)+(d\.v2_97*0\.75636)-(d\.r2_97*0\.109)+(d\.v_97*0\.82933)-(d\.r1_97*0\.109)",
electricity_night: "(d\.v_97*0\.82933)-(d\.r1_97*0\.109)",
electricity_day: "(d\.v2_97*0\.75636)-(d\.r2_97*0\.109)",
gas: "d\.v_101*3\.33211",
},
},
},
};
columns[2] = {};
columns[2]["blocks"] = ["costs"];
var screens = {};
screens[1] = {};
screens[1]["background"] = "xxx";
screens[1]["columns"] = [2];
Given the above configuration, I assumed that I can add getStatus_costs to my custom\.js and it should be called. So my file looks like this:
Code: Select all
function getStatus_costs(block) {
console\.log("GET_STATUS_COSTS");
}
If I add afterGetDevices(), getExtendedBlockTypes() or deviceHook() to the same file, they get called, but I think they are not useful to what I want to achieve.
I'm currently running Domoticz Version 2022\.2 and Dashticz Version: 3\.10\.01.
What else could I do to debug this issue? Or is there any other way to achieve my required outcome? Any help is appreciated!
Please ignore the escaped dots, how on earth can I get around the external URL detection?
