Dashticz v3.7.4 beta

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz v3.7.4 beta

Post by HansieNL »

@pvlink This is my electricity graph for dal- and normaalverbruik. Maybe you can use it with your own electricity block. Change 274 to your own IDX and add popup: 'graph_stroom_verbruik' to your electricity block.

Code: Select all

blocks['graph_stroom_verbruik'] = {
    title: 'Stroom',
    devices: [274],
    graphTypes: ['v','v2'],
    stacked: true,
    tooltiptotal: true,
    graph: ['bar','bar'],
    datasetColors: ['#0A4033','#7EC389'],
    // beginAtZero: true,
    range:'per maand',
    custom : {
		"per dag": {
            range: 'month',
            groupBy: 'day',
            aggregate: 'sum',
            data: {
                Dalverbruik: 'd.v_274',
                Normaalverbruik: 'd.v2_274',
            }
        },
        "per maand": {
            range: 'year',
            groupBy: 'month',
            aggregate: 'sum',
            data: {
                Dalverbruik: 'd.v_274',
                Normaalverbruik: 'd.v2_274',
            }
        }
    },
    legend: true,
    buttonsSize: 12,
    width: 12,
    // debugButton: true
}
Blah blah blah
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Dashticz v3.7.4 beta

Post by pvklink »

thanks hansie, i used your config for hour, day and month graphs!

but to show only a part off the data for example the total of my low tarif usages (9868535) (it's in result[0].data[1])
as part of the dial did not work

Would be great if you could add dzvents kind of comand like result[0].data[1]

json file

Code: Select all

{
	"ActTime" : 1614517127,
	"AstrTwilightEnd" : "20:13",
	"AstrTwilightStart" : "05:38",
	"CivTwilightEnd" : "18:54",
	"CivTwilightStart" : "06:56",
	"DayLength" : "10:51",
	"NautTwilightEnd" : "19:33",
	"NautTwilightStart" : "06:17",
	"ServerTime" : "2021-02-28 13:58:47",
	"SunAtSouth" : "12:55",
	"Sunrise" : "07:30",
	"Sunset" : "18:21",
	"app_version" : "2020.2 (build 12934)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Counter" : "19665.966",
			"CounterDeliv" : "0.000",
			"CounterDelivToday" : "0.000 kWh",
			"CounterToday" : "7.293 kWh",
			"CustomImage" : 0,
			"Data" : "9868535;9797431;0;0;312;0",
			"Description" : "",
			"Favorite" : 0,
			"HardwareDisabled" : false,
			"HardwareID" : 12,
			"HardwareName" : "Smart meter",
			"HardwareType" : "P1 Smart Meter USB",
			"HardwareTypeVal" : 4,
			"HaveTimeout" : false,
			"ID" : "0001",
			"LastUpdate" : "2021-02-28 13:57:35",
			"Name" : "Electrameter",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"SubType" : "Energy",
			"SwitchTypeVal" : 0,
			"Timers" : "false",
			"Type" : "P1 Smart Meter",
			"TypeImg" : "counter",
			"Unit" : 1,
			"Usage" : "312 Watt",
			"UsageDeliv" : "0 Watt",
			"Used" : 1,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "239"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}

Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz v3.7.4 beta

Post by HansieNL »

@pvklink If I use IDX_6 for a block I get the 2 first values of the data in a block. But I can't get it working with a dial.
EDIT: If I use IDX_7 I get only the 1st value.
EDIT2: I got a dial with the 1st value. Maybe you can try:

Code: Select all

blocks['test'] = {
        type: 'dial',
        values : [
                {
                        idx: '274'
                }
        ]
}
Blah blah blah
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Dashticz v3.7.4 beta

Post by pvklink »

thanks, gonna try it
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz v3.7.4 beta

Post by Lokonli »

pvklink wrote: Sunday 28 February 2021 14:04 thanks hansie, i used your config for hour, day and month graphs!

but to show only a part off the data for example the total of my low tarif usages (9868535) (it's in result[0].data[1])
as part of the dial did not work

Would be great if you could add dzvents kind of comand like result[0].data[1]

json file

Code: Select all

{
	"ActTime" : 1614517127,
	"AstrTwilightEnd" : "20:13",
	"AstrTwilightStart" : "05:38",
	"CivTwilightEnd" : "18:54",
	"CivTwilightStart" : "06:56",
	"DayLength" : "10:51",
	"NautTwilightEnd" : "19:33",
	"NautTwilightStart" : "06:17",
	"ServerTime" : "2021-02-28 13:58:47",
	"SunAtSouth" : "12:55",
	"Sunrise" : "07:30",
	"Sunset" : "18:21",
	"app_version" : "2020.2 (build 12934)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Counter" : "19665.966",
			"CounterDeliv" : "0.000",
			"CounterDelivToday" : "0.000 kWh",
			"CounterToday" : "7.293 kWh",
			"CustomImage" : 0,
			"Data" : "9868535;9797431;0;0;312;0",
			"Description" : "",
			"Favorite" : 0,
			"HardwareDisabled" : false,
			"HardwareID" : 12,
			"HardwareName" : "Smart meter",
			"HardwareType" : "P1 Smart Meter USB",
			"HardwareTypeVal" : 4,
			"HaveTimeout" : false,
			"ID" : "0001",
			"LastUpdate" : "2021-02-28 13:57:35",
			"Name" : "Electrameter",
			"Notifications" : "false",
			"PlanID" : "0",
			"PlanIDs" : 
			[
				0
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"SubType" : "Energy",
			"SwitchTypeVal" : 0,
			"Timers" : "false",
			"Type" : "P1 Smart Meter",
			"TypeImg" : "counter",
			"Unit" : 1,
			"Usage" : "312 Watt",
			"UsageDeliv" : "0 Watt",
			"Used" : 1,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "239"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}

I can split the Data field into the individual items, but probably the layout of the dial then needs to change as well. Now you would get the following:
p1data.jpg
p1data.jpg (11.45 KiB) Viewed 279 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest