Page 181 of 184
Re: Dashticz - General Discussions
Posted: Thursday 11 April 2019 19:22
by Minglarn
Hi!
Still developing my Dashpanel ..
Question:
Is it possible to change the url in a button when pressed?
Let's say that I have:
Code: Select all
buttons.station_iss = {width:6, refresh:600000, isimage:true,image: 'https://spacetrack.eu/iss/globe.php'}]
But when I press a dummy button I want to change the button.station.iss to:
Code: Select all
buttons.station_iss = {width:6, refresh:600000, isimage:true,image: 'http://192.168.1.59:8080/camsnapshot.jpg?idx=3'}
Could this be possible to make in custom.js file?
Re: Dashticz - General Discussions
Posted: Friday 12 April 2019 21:13
by Lokonli
Minglarn wrote: ↑Thursday 11 April 2019 19:22
Hi!
Still developing my Dashpanel ..
Question:
Is it possible to change the url in a button when pressed?
Let's say that I have:
Code: Select all
buttons.station_iss = {width:6, refresh:600000, isimage:true,image: 'https://spacetrack.eu/iss/globe.php'}]
But when I press a dummy button I want to change the button.station.iss to:
Code: Select all
buttons.station_iss = {width:6, refresh:600000, isimage:true,image: 'http://192.168.1.59:8080/camsnapshot.jpg?idx=3'}
Could this be possible to make in custom.js file?
Have a look at:
https://dashticz-v2.readthedocs.io/en/l ... f-a-device
Re: Dashticz - General Discussions
Posted: Friday 12 April 2019 23:49
by Minglarn
Looks great!
But if I want to have a selector switch... And depending on that switch I want to show CAM 1, CAM 2 etc...
How to accomplish that?
Never mind... Found it...
Code: Select all
function getChange_2624(idx,value,device){
if(device['Level']=='10') buttons.sun_moon.image = 'http://cam1'; reloadImage(52, buttons.sun_moon);
if(device['Level']=='20') buttons.sun_moon.image = 'http://cam2'; reloadImage(52, buttons.sun_moon);
if(device['Level']=='30') buttons.sun_moon.image = http://cam3'; reloadImage(52, buttons.sun_moon);
}
Works

Re: Dashticz - General Discussions
Posted: Monday 13 May 2019 14:03
by gielie
I see some dashboards with a bar graph, can someone explain to me how to do this?
Re: Dashticz - General Discussions
Posted: Saturday 18 May 2019 9:48
by HenriM
Search for file 'js/graphs.js' in your installation of Dashticz. Now search in this file for the function 'makeMorrisGraph'. Change the 2d line from 'Morris.Line' into 'Morris.Bar'.
Re: Dashticz - General Discussions
Posted: Monday 20 May 2019 10:40
by gielie
HenriM wrote: ↑Saturday 18 May 2019 9:48
Search for file 'js/graphs.js' in your installation of Dashticz. Now search in this file for the function 'makeMorrisGraph'. Change the 2d line from 'Morris.Line' into 'Morris.Bar'.
You're my hero, is this something that should be in the Wiki? Who does the updates of wiki anyway?
Re: Dashticz - General Discussions
Posted: Monday 20 May 2019 11:13
by pvm
gielie wrote: ↑Monday 20 May 2019 10:40
You're my hero, is this something that should be in the Wiki? Who does the updates of wiki anyway?
Everybody can do updates to the wiki (feel free:) to add this), do keep in mind (/mention) this change will be lost on upgrading dashticz.
Re: Dashticz - General Discussions
Posted: Monday 20 May 2019 11:28
by gielie
pvm wrote: ↑Monday 20 May 2019 11:13
gielie wrote: ↑Monday 20 May 2019 10:40
You're my hero, is this something that should be in the Wiki? Who does the updates of wiki anyway?
Everybody can do updates to the wiki (feel free:) to add this), do keep in mind (/mention) this change will be lost on upgrading dashticz.
I understand this will be lost during an update, is it an idea to put this in the setting? I dunno if that is easy to do.
Im now looking a way to show my electricity use and collection, now its combined in P1 and I want to show the use and delivery in 2 separate graphs. I found the wiki about the different graph types but I can't figure out how to separate these. Like (graph_5_1) like I can do with a temp/hum sensor, any ideas?
Re: Dashticz - General Discussions
Posted: Tuesday 21 May 2019 8:09
by Lokonli
pvm wrote: ↑Monday 20 May 2019 11:13
gielie wrote: ↑Monday 20 May 2019 10:40
You're my hero, is this something that should be in the Wiki? Who does the updates of wiki anyway?
Everybody can do updates to the wiki (feel free:) to add this), do keep in mind (/mention) this change will be lost on upgrading dashticz.
The possibility to choose between bar and line graph will be in the next Dashticz beta.
Re: Dashticz - General Discussions
Posted: Friday 24 May 2019 8:30
by stlaha2007
gielie wrote: ↑Monday 20 May 2019 10:40
Im now looking a way to show my electricity use and collection, now its combined in P1 and I want to show the use and delivery in 2 separate graphs. I found the wiki about the different graph types but I can't figure out how to separate these. Like (graph_5_1) like I can do with a temp/hum sensor, any ideas?
As of 2 releases back from Domoticz P1 meter has to extra device as in P1 Usage and P1 Delivery.
Saves you (and me recently) to split the combined graphs.
Goodluck adding them.
Stephan
Re: Dashticz - General Discussions
Posted: Friday 24 May 2019 9:54
by gielie
stlaha2007 wrote: ↑Friday 24 May 2019 8:30
gielie wrote: ↑Monday 20 May 2019 10:40
Im now looking a way to show my electricity use and collection, now its combined in P1 and I want to show the use and delivery in 2 separate graphs. I found the wiki about the different graph types but I can't figure out how to separate these. Like (graph_5_1) like I can do with a temp/hum sensor, any ideas?
As of 2 releases back from Domoticz P1 meter has to extra device as in P1 Usage and P1 Delivery.
Saves you (and me recently) to split the combined graphs.
Goodluck adding them.
Stephan
This is great but i cant find this option. Can you point me to some documentation?
Re: Dashticz - General Discussions
Posted: Saturday 25 May 2019 11:41
by stlaha2007
Not sure which wiki you need to check. Updates Domoticz bèta 2 month ago. And the P1-meter had magically 2 extra device (device-tab) within Domoticz.
Activate/Enable these first in Domoticz. Record the idx-numbers And adjust your CONFIG.js for Dashticz to include those, instead of the combine P1-smartmeter.
This way they act as a regular device like temp or barometer device in Dashticz.
Re: Dashticz - General Discussions
Posted: Monday 27 May 2019 9:22
by gielie
stlaha2007 wrote: ↑Saturday 25 May 2019 11:41
Not sure which wiki you need to check. Updates Domoticz bèta 2 month ago. And the P1-meter had magically 2 extra device (device-tab) within Domoticz.
Activate/Enable these first in Domoticz. Record the idx-numbers And adjust your CONFIG.js for Dashticz to include those, instead of the combine P1-smartmeter.
This way they act as a regular device like temp or barometer device in Dashticz.
I dont have this in my Domoitcz (also latest beta) nor can i find any documentation on this. Anyone else who can point me to the right direction?
Re: Dashticz - General Discussions
Posted: Monday 27 May 2019 10:27
by jake
Check your list of devices. They will be there, you only need to add them. Currently they will be logging already, so in the devices tab you can already see some results. Search for p1 and you will find some devices with a green arrow.
Re: Dashticz - General Discussions
Posted: Tuesday 04 June 2019 9:14
by gielie
jake wrote: ↑Monday 27 May 2019 10:27
Check your list of devices. They will be there, you only need to add them. Currently they will be logging already, so in the devices tab you can already see some results. Search for p1 and you will find some devices with a green arrow.
Nope i dont have it, cant find it, don't know what to do.
I only have my original 2 P1 sensors, the gas and the electricity but no split up in used/received
I cant find the release notes of the latest betas where it is explained.
Re: Dashticz - General Discussions
Posted: Tuesday 04 June 2019 15:11
by EdwinK
Strange. I've got 4 P1 devices right from the moment I added the hardware. Maybe let it discover again. Disable the hardware, let . domotic search for new hardware, then enable the P1 hardware. That is what I did.
Re: Dashticz - General Discussions
Posted: Tuesday 04 June 2019 15:53
by gielie
EdwinK wrote: ↑Tuesday 04 June 2019 15:11
Strange. I've got 4 P1 devices right from the moment I added the hardware. Maybe let it discover again. Disable the hardware, let . domotic search for new hardware, then enable the P1 hardware. That is what I did.
Tnks edwin for the reply, i think the problem is that it is not a hardware device but a dummy device who uses the data from my Toon. Mayby i have to rethink my Toon script. Which Toon script are you using at the moment?
Re: Dashticz - General Discussions
Posted: Tuesday 04 June 2019 18:28
by EdwinK
gielie wrote: ↑Tuesday 04 June 2019 15:53
EdwinK wrote: ↑Tuesday 04 June 2019 15:11
Strange. I've got 4 P1 devices right from the moment I added the hardware. Maybe let it discover again. Disable the hardware, let . domotic search for new hardware, then enable the P1 hardware. That is what I did.
Tnks edwin for the reply, i think the problem is that it is not a hardware device but a dummy device who uses the data from my Toon. Mayby i have to rethink my Toon script. Which Toon script are you using at the moment?
None, for what ever reason none of the scripts are working. I even had it that when I was creating the UserVariables for one of them, my domoticz hanged and became unstable.
Re: Dashticz - General Discussions
Posted: Tuesday 04 June 2019 18:56
by jake
I see that the hardware is Toon. I have a direct connection with the output of the smart meter itself. Might that be s difference?
Re: Dashticz - General Discussions
Posted: Sunday 21 July 2019 12:02
by PixelMagic
New to Dashticz, looks very nice !
I have one issue at the moment, my P1 data from Domoticz returns tha value with
Watt added and I would like to only have
W.
Have tryed several thing but cannou get it to work.
This is the json data from Domoticz:
- Spoiler: show
- {
"ActTime" : 1563703092,
"AstrTwilightEnd" : "00:00",
"AstrTwilightStart" : "00:00",
"CivTwilightEnd" : "22:31",
"CivTwilightStart" : "05:05",
"DayLength" : "15:58",
"NautTwilightEnd" : "23:32",
"NautTwilightStart" : "04:04",
"ServerTime" : "2019-07-21 11:58:12",
"SunAtSouth" : "13:05",
"Sunrise" : "05:49",
"Sunset" : "21:47",
"app_version" : "4.10547",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "15326.200",
"CounterDeliv" : "13264.334",
"CounterDelivToday" : "1.398 kWh",
"CounterToday" : "2.674 kWh",
"CustomImage" : 0,
"Data" : "8047438;7278762;4033263;9231071;0;1280",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 12,
"HardwareName" : "P1 Meter USB ",
"HardwareType" : "P1 Smart Meter USB",
"HardwareTypeVal" : 4,
"HaveTimeout" : false,
"ID" : "0001",
"LastUpdate" : "2019-07-21 11:58:09",
"Name" : "Smart Meter Electric",
"Notifications" : "false",
"PlanID" : "5",
"PlanIDs" : [ 5 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Energy",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "P1 Smart Meter",
"TypeImg" : "counter",
"Unit" : 1,
"Usage" : "0 Watt",
"UsageDeliv" : "1280 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "98"
}
],
"status" : "OK",
"title" : "Devices"
}
The fields
"Usage" : "0 Watt" and
"UsageDeliv" : "1280 Watt" are the ones
Anyone got a hint ?