Dashticz Graphs - Features, Fixes & Updates

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Lokonli »

I guess you have to set in CONFIG.js:

Code: Select all

config['use_favorites'] = 0;
Chris12
Posts: 238
Joined: Tuesday 18 August 2020 8:41
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: NL
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Chris12 »

@lokonli, in my config file it's allready:

Code: Select all

config['use_favorites'] = 0;
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Lokonli »

Can you send your full CONFIG.js? (you can do that by PM)
Chris12
Posts: 238
Joined: Tuesday 18 August 2020 8:41
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: NL
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Chris12 »

Lokonli wrote: Tuesday 19 January 2021 11:27 Can you send your full CONFIG.js? (you can do that by PM)
OK I just sent a PM.
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Chris12
Posts: 238
Joined: Tuesday 18 August 2020 8:41
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: NL
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Chris12 »

Chris12 wrote: Tuesday 19 January 2021 7:58 @Lokonli,

I'm building a new page with an overview in my dashticz which shows information collected from Pi-hole.
The Pi-hole python plugin is installed sucessfully, and the devices are created in Domoticz and showing data.

For some devices I created dials in dashticz, these are all OK but 2 of them are a little slow in responding/showing the values after a refresh.
I also created some graphs showing the combined values of some of the dials, but there's seem to be a problem with 2 of those graphs as a message appears "device xxx does not exist" instead of the graph. And these devices are the same as the ones with slow response after a page refresh.

The separate dials of the slow responding devices are shown OK, and also the data is shown OK.
below a screenshot and the configuration and json output of the two failing devices.
Spoiler: show
Image
I checked the json output of both, seems to be OK:
Spoiler: show

Code: Select all

{
	"ActTime" : 1611038633,
	"AstrTwilightEnd" : "19:06",
	"AstrTwilightStart" : "06:37",
	"CivTwilightEnd" : "17:43",
	"CivTwilightStart" : "07:59",
	"DayLength" : "08:28",
	"NautTwilightEnd" : "18:25",
	"NautTwilightStart" : "07:17",
	"ServerTime" : "2021-01-19 07:43:53",
	"SunAtSouth" : "12:51",
	"Sunrise" : "08:37",
	"Sunset" : "17:05",
	"app_version" : "2020.2 (build 12731)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"CustomImage" : 101,
			[b]"Data" : "2349 ",[/b]
			"Description" : "",
			"Favorite" : 0,
			"HardwareDisabled" : false,
			"HardwareID" : 29,
			"HardwareName" : "Pi-Hole",
			"HardwareType" : "Pi-hole summary",
			"HardwareTypeVal" : 94,
			"HaveTimeout" : false,
			"ID" : "001D0005",
			"Image" : "xfr_pihole",
			"LastUpdate" : "2021-01-19 07:43:15",
			"Name" : "Pi-Hole - Unique domains",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"SensorType" : 1,
			"SensorUnit" : "",
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			[b]"SubType" : "Custom Sensor",[/b]
			"Timers" : "false",
			"Type" : "General",
			"TypeImg" : "xfr_pihole",
			"Unit" : 5,
			"Used" : 0,
			"XOffset" : "0",
			"YOffset" : "0",
			[b]"idx" : "993"[/b]
		}
	],
	"status" : "OK",
	"title" : "Devices"
}
Spoiler: show

Code: Select all

{
	"ActTime" : 1611038682,
	"AstrTwilightEnd" : "19:06",
	"AstrTwilightStart" : "06:37",
	"CivTwilightEnd" : "17:43",
	"CivTwilightStart" : "07:59",
	"DayLength" : "08:28",
	"NautTwilightEnd" : "18:25",
	"NautTwilightStart" : "07:17",
	"ServerTime" : "2021-01-19 07:44:42",
	"SunAtSouth" : "12:51",
	"Sunrise" : "08:37",
	"Sunset" : "17:05",
	"app_version" : "2020.2 (build 12731)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"CustomImage" : 101,
			[b]"Data" : "6106 ",[/b]
			"Description" : "",
			"Favorite" : 0,
			"HardwareDisabled" : false,
			"HardwareID" : 29,
			"HardwareName" : "Pi-Hole",
			"HardwareType" : "Pi-hole summary",
			"HardwareTypeVal" : 94,
			"HaveTimeout" : false,
			"ID" : "001D0007",
			"Image" : "xfr_pihole",
			"LastUpdate" : "2021-01-19 07:44:15",
			"Name" : "Pi-Hole - Queries cached",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"SensorType" : 1,
			"SensorUnit" : "",
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			[b]"SubType" : "Custom Sensor",[/b]
			"Timers" : "false",
			"Type" : "General",
			"TypeImg" : "xfr_pihole",
			"Unit" : 7,
			"Used" : 0,
			"XOffset" : "0",
			"YOffset" : "0",
			[b]"idx" : "995"[/b]
		}
	],
	"status" : "OK",
	"title" : "Devices"
}

In my config file I configured the graphs and dials for these devices like:
Spoiler: show

Code: Select all

blocks['pi-hole-un-domains'] = {
	title: 'Unique Domains',
	type: 'dial',
	idx: 993,
	width: 4,
	graph: true,
    popup: 'PiHole-graph-dns'
}

blocks['PiHole-graph-dns'] = {
	debugButton: false,
    title: 'Pi-Hole DNS-Blocking Overview',
    devices: [988,989,993],
    height: '300px',
	width: 12,
	graph: 'line',
	lineFill: false,
	drawOrderDay: ['v_988', 'v_989', 'v_993'],
    drawOrderMonth: ['v_988', 'v_989', 'v_993'],
	drawOrderYear: ['v_988', 'v_989', 'v_993'],
    custom : {
        "24 uur": {
            range: 'day',
            filter: 'today',
            data: {
                'Blocked Domains': 'd.v_988',
				'DNS Queries': 'd.v_989',
				'Unique Domains': 'd.v_993',
                }
        },
        "Week": {
            range: 'month',
            filter: '7 days',
            data: {
                'Blocked Domains': 'd.v_988',
				'DNS Queries': 'd.v_989',
				'Unique Domains': 'd.v_993',
                }
        },
        "Maand": {
            range: 'month',
            filter: 'month',
            groupBy: 'week',
            data: {
                'Blocked Domains': 'd.v_988',
				'DNS Queries': 'd.v_989',
				'Unique Domains': 'd.v_993',
                }
        },
        "Jaar": {
            range: 'year',
            filter: 'year',
            groupBy: 'month',
			buttonIcon: 'fas fa-calendar',
            data: {
                'Blocked Domains': 'd.v_988',
				'DNS Queries': 'd.v_989',
				'Unique Domains': 'd.v_993',
                }
        },
    },
	aggregate: 'avg',
    datasetColors: ['Gold', 'Red', 'Blue'],
	zoom:'x',
	legend: true,
	legend: {
        'v_988'      : 'Blocked Domains',
        'v_989'      : 'DNS Queries',
        'v_993'      : 'Unique Domains',
	}
}
Spoiler: show

Code: Select all

blocks['pi-hole-cached-queries'] = {
	title: 'Cached Queries',
	type: 'dial',
	idx: 995,
	width: 4,
	graph: true,
    popup: 'PiHole-graph-clients'
}

blocks['PiHole-graph-clients'] = {
	debugButton: false,
    title: 'Pi-Hole Clients Overview',
    devices: [994,995,997],
    height: '300px',
	width: 12,
	graph: 'line',
	lineFill: false,
	drawOrderDay: ['v_994', 'v_995', 'v_997'],
    drawOrderMonth: ['v_994', 'v_995', 'v_997'],
	drawOrderYear: ['v_994', 'v_995', 'v_997'],
    custom : {
        "24 uur": {
            range: 'day',
            filter: 'today',
            data: {
                'FWD Queries': 'd.v_994',
				'Cached Queries': 'd.v_995',
				'No. Clients': 'd.v_997',
                }
        },
        "Week": {
            range: 'month',
            filter: '7 days',
            data: {
                'FWD Queries': 'd.v_994',
				'Cached Queries': 'd.v_995',
				'No. Clients': 'd.v_997',
                }
        },
        "Maand": {
            range: 'month',
            filter: 'month',
            groupBy: 'week',
            data: {
                'FWD Queries': 'd.v_994',
				'Cached Queries': 'd.v_995',
				'No. Clients': 'd.v_997',
                }
        },
        "Jaar": {
            range: 'year',
            filter: 'year',
            groupBy: 'month',
			buttonIcon: 'fas fa-calendar',
            data: {
                'FWD Queries': 'd.v_994',
				'Cached Queries': 'd.v_995',
				'No. Clients': 'd.v_997',
                }
        },
    },
	aggregate: 'avg',
    datasetColors: ['Gold', 'Red', 'Blue'],
	zoom:'x',
	legend: true,
	legend: {
        'v_994'      : 'FWD Queries',
        'v_995'      : 'Cached Queries',
        'v_997'      : 'No. Clients',
	}
}


I checked my config over and over but could not see any issues, maybe you have a sollution?
Or maybe I need a different parameter for the 2 devices?
This one is solved with the help of lokonli.
The devices which were slow/not seen in the graph were not added as devices in domoticz (green arrow instead of blue arrow)
Shown in the json output as ' 'Used' = 0
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
dorjey
Posts: 10
Joined: Wednesday 21 September 2016 11:42
Target OS: OS X
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by dorjey »

Hello, I'm facing an issue trying to configure my Dashticz Graph, as "beginAtZero:" seems not to work
Spoiler: show
blocks['Tomate1'] = {
title: 'Tomates',
type: 'graph',
devices: [13,16],
spanGaps: true,
datasetColors: ['#002B5C','#6F420D'],
legend: false,
height: '200px',
beginAtZero: true,
custom : {
"15j": {range: 'month', filter: '15 days' , data: {eau: 'd.v_avg_13', engrais: 'd.v_avg_16'},},
"année": {range: 'year', groupBy: 'week' , data: {eau: 'd.v_avg_13', engrais: 'd.v_avg_16'},},
}
}
Image

Any clue? thank you
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Lokonli »

dorjey wrote: Saturday 21 August 2021 7:39 Hello, I'm facing an issue trying to configure my Dashticz Graph, as "beginAtZero:" seems not to work
Spoiler: show
blocks['Tomate1'] = {
title: 'Tomates',
type: 'graph',
devices: [13,16],
spanGaps: true,
datasetColors: ['#002B5C','#6F420D'],
legend: false,
height: '200px',
beginAtZero: true,
custom : {
"15j": {range: 'month', filter: '15 days' , data: {eau: 'd.v_avg_13', engrais: 'd.v_avg_16'},},
"année": {range: 'year', groupBy: 'week' , data: {eau: 'd.v_avg_13', engrais: 'd.v_avg_16'},},
}
}
Image

Any clue? thank you
What is your Dashticz version?
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by Lokonli »

dorjey wrote: Saturday 21 August 2021 7:39 Hello, I'm facing an issue trying to configure my Dashticz Graph, as "beginAtZero:" seems not to work
Spoiler: show
blocks['Tomate1'] = {
title: 'Tomates',
type: 'graph',
devices: [13,16],
spanGaps: true,
datasetColors: ['#002B5C','#6F420D'],
legend: false,
height: '200px',
beginAtZero: true,
custom : {
"15j": {range: 'month', filter: '15 days' , data: {eau: 'd.v_avg_13', engrais: 'd.v_avg_16'},},
"année": {range: 'year', groupBy: 'week' , data: {eau: 'd.v_avg_13', engrais: 'd.v_avg_16'},},
}
}
Image

Any clue? thank you
I did some tests. Indeed the beginAtZero parameter doesn't work as documented when there are multiple y-axes. I'll try to fix that.

As workaround, define beginAtZero as follows (for 2 y-axes):

Code: Select all

beginAtZero: [true, true],
dorjey
Posts: 10
Joined: Wednesday 21 September 2016 11:42
Target OS: OS X
Domoticz version:
Contact:

Re: Dashticz Graphs - Features, Fixes & Updates

Post by dorjey »

Lokonli wrote: Saturday 21 August 2021 11:00
dorjey wrote: Saturday 21 August 2021 7:39 Hello, I'm facing an issue trying to configure my Dashticz Graph, as "beginAtZero:" seems not to work
Spoiler: show
blocks['Tomate1'] = {
title: 'Tomates',
type: 'graph',
devices: [13,16],
spanGaps: true,
datasetColors: ['#002B5C','#6F420D'],
legend: false,
height: '200px',
beginAtZero: true,
custom : {
"15j": {range: 'month', filter: '15 days' , data: {eau: 'd.v_avg_13', engrais: 'd.v_avg_16'},},
"année": {range: 'year', groupBy: 'week' , data: {eau: 'd.v_avg_13', engrais: 'd.v_avg_16'},},
}
}
Image

Any clue? thank you
What is your Dashticz version?
I have dc826d9..d35b955 beta -> origin/beta
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest