Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Locked
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by robgeerts »

repoman wrote:
robgeerts wrote:
repoman wrote: While I'm at it. My smoke detector also says "smoke detected" while the status is normal.
Whats the output of your smoke device?

"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Normal",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 1,
"HardwareName" : "RepoRFXCom",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : false,
"HaveGroupCmd" : false,
"HaveTimeout" : false,
"ID" : "15E400",
"LastUpdate" : "2016-12-25 10:09:12",
"MaxDimLevel" : 0,
"Name" : "smoke detector",
"Notifications" : "true",
"PlanID" : "6",
"PlanIDs" : [ 6 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 7,
"Status" : "Normal",
"StrParam1" : "aHR0cDovLzE5Mi4xNjguOTAuMTAvdHJpZ2dlci5waHA/dHJpZ2dlcj1zbW9rZV9hbGFybV9vbg==",
"StrParam2" : "aHR0cDovLzE5Mi4xNjguOTAuMTAvdHJpZ2dlci5waHA/dHJpZ2dlcj1zbW9rZV9hbGFybV9vZmY=",
"SubType" : "KD101 smoke detector",
"SwitchType" : "Smoke Detector",
"SwitchTypeVal" : 5,
"Timers" : "false",
"Type" : "Security",
"TypeImg" : "smoke",
"Unit" : 0,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "18"
Please test latest version :)
Dropshot
Posts: 44
Joined: Tuesday 20 December 2016 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by Dropshot »

Just a few minor things I noticed and can possibly be updated in a future release:

1. Is it possible to remove the time and date of the traffic announcement?
Image

2. When I press on the buienradar block, I get to the weather forecast (weer.nl) of some random cities in NL (e.g. 'Son' or 'Banne Buiksloot' :?), instead of the rain forecast (buienradar.nl) of my city.

3. maybe it is more logical to link the weather forecast (weer.nl) to the weather blocks?

4. The newsfeed scrolls trough the news items (which I really like!), but for me this scroll speed is just a bit too fast, I cant read everything before it scrolls again. Maybe it can scroll a bit less often?

For me these changes have no priority whatsoever, I really love what you're doing, that's why I'm noticing all these things. ;)
User avatar
gjaa
Posts: 38
Joined: Thursday 12 February 2015 6:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by gjaa »

Wauw Rob,

This is amazing, what a lot of work in an week (I was here a week ago)
Even a wiki page
I will buy you a beer

I did a clean install via github, a lot easier then upload ;)
I can see al my favourites

Thumbs up

Gerard
repoman
Posts: 38
Joined: Saturday 15 April 2017 13:05
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by repoman »

robgeerts wrote:
repoman wrote:
robgeerts wrote:
Whats the output of your smoke device?

"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Normal",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 1,
"HardwareName" : "RepoRFXCom",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : false,
"HaveGroupCmd" : false,
"HaveTimeout" : false,
"ID" : "15E400",
"LastUpdate" : "2016-12-25 10:09:12",
"MaxDimLevel" : 0,
"Name" : "smoke detector",
"Notifications" : "true",
"PlanID" : "6",
"PlanIDs" : [ 6 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 7,
"Status" : "Normal",
"StrParam1" : "aHR0cDovLzE5Mi4xNjguOTAuMTAvdHJpZ2dlci5waHA/dHJpZ2dlcj1zbW9rZV9hbGFybV9vbg==",
"StrParam2" : "aHR0cDovLzE5Mi4xNjguOTAuMTAvdHJpZ2dlci5waHA/dHJpZ2dlcj1zbW9rZV9hbGFybV9vZmY=",
"SubType" : "KD101 smoke detector",
"SwitchType" : "Smoke Detector",
"SwitchTypeVal" : 5,
"Timers" : "false",
"Type" : "Security",
"TypeImg" : "smoke",
"Unit" : 0,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "18"
Please test latest version :)
Ok, downloaded latest, placed it in new folder dasboard4, copied my earlier posted settings.js again and now it's working... :?

The smoke detector isn't red anymore and doesn't say "rook gedetecteerd" It just says "AAN" while status is normal.
User avatar
gjaa
Posts: 38
Joined: Thursday 12 February 2015 6:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by gjaa »

I find a typo
Schermafbeelding 2017-04-15 om 16.28.10.png
Schermafbeelding 2017-04-15 om 16.28.10.png (55.67 KiB) Viewed 1703 times
"Energie vandaag" is on the place of the kWh

Gerard
Blueone
Posts: 130
Joined: Friday 29 November 2013 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by Blueone »

Blueone wrote:
robgeerts wrote:Thanks Blueone!
But, did it work for your raspberry pi??
Yes, my screen does go to a lower brightness know when it enters stand-by! and also comes up again. Btw, I also changed the stand-by time to seconds instead of minutes :).

I only notice that it hangs sometimes so probably I did something wrong in de main.js, I have to check that.

Stand-by to do:
Create a css which is only showing the time big, termperature big and the weather so I can see those things from a distance when is is in stand-by. Going on a holiday but after that I'm going to create something like this.

And I have to optimze the css further for the raspberry touchscreen.

A bit like this in stand-by and the full experience in active mode:
toonstandby.jpg

Attached a short video
https://vimeo.com/213339928
Oke I changed the stand-by part a little bit again, this seems to be better, it resets the standby timer by mouse momevent zo it doesn't try to enter the stand-by modus when it is active.

Code: Select all

//STANDBY FUNCTION
if(parseFloat(_STANDBY_AFTER_MINUTES)>0){
	setInterval(function(){
		standbyTime+=1000;
	},1000);

	setInterval(function(){
		if(standbyActive!=true){
		//	if(standbyTime>=((_STANDBY_AFTER_MINUTES*1000)*60)){
			if(standbyTime>=(_STANDBY_AFTER_MINUTES*1000)){
				$('body').addClass('standby');
				if(typeof(_STANDBY_CALL_URL)!=='undefined' && _STANDBY_CALL_URL!==''){
					$.get(_STANDBY_CALL_URL);
					standbyActive=true;
				}
			}
		}
	},5000);

	$('body').bind('mousemove', function(e){
		standbyTime=0;
		disableStandby();
	});

	$('body').bind('click', function(e){
		standbyTime=0;
		disableStandby();
	});

	function disableStandby(){
		if(standbyActive==true){
			standbyTime=0;
			$('body').removeClass('standby');
			if(typeof(_END_STANDBY_CALL_URL)!=='undefined' && _END_STANDBY_CALL_URL!==''){
					$.get(_END_STANDBY_CALL_URL);
			}
			standbyActive=false;
		}
		
	}
}
//END OF STANDBY FUNCTION
Ierlandfan
Posts: 89
Joined: Friday 09 October 2015 17:40
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by Ierlandfan »

Can I place the content of some local txtfile into a block?
bimse
Posts: 21
Joined: Sunday 05 February 2017 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: Model 3
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by bimse »

How do I integrate Security Panel, so it appears with the keyboard.
It appears only with On / Off function, but it does not work.
Translated with google
Clemen
Posts: 75
Joined: Saturday 05 December 2015 15:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Europe
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by Clemen »

bimse wrote:How do I integrate Security Panel, so it appears with the keyboard.
It appears only with On / Off function, but it does not work.

Just make a link block to sec panel

buttons.alarm = {image: 'img/radio_on.png', title: 'Alarm', url: 'http://192.168.1.4:8080/secpanel/index.html'}

And put it in a block:
columns[1]['blocks'] = [buttons.alarm]
DvD
Posts: 18
Joined: Wednesday 22 January 2014 13:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by DvD »

Really great work !!

Quick questions:

1. Is it possible to change the icon of a Scene ? Like with Blocks
2. Is it possible to leave a space between 2 switches ? example: switch1 - empty - switch 2

thnx!
bimse
Posts: 21
Joined: Sunday 05 February 2017 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: Model 3
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by bimse »

thanks for your quick response Clemen,it works.
Translated with google
repoman
Posts: 38
Joined: Saturday 15 April 2017 13:05
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by repoman »

repoman wrote:
robgeerts wrote:
repoman wrote:

"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Normal",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 1,
"HardwareName" : "RepoRFXCom",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : false,
"HaveGroupCmd" : false,
"HaveTimeout" : false,
"ID" : "15E400",
"LastUpdate" : "2016-12-25 10:09:12",
"MaxDimLevel" : 0,
"Name" : "smoke detector",
"Notifications" : "true",
"PlanID" : "6",
"PlanIDs" : [ 6 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 7,
"Status" : "Normal",
"StrParam1" : "aHR0cDovLzE5Mi4xNjguOTAuMTAvdHJpZ2dlci5waHA/dHJpZ2dlcj1zbW9rZV9hbGFybV9vbg==",
"StrParam2" : "aHR0cDovLzE5Mi4xNjguOTAuMTAvdHJpZ2dlci5waHA/dHJpZ2dlcj1zbW9rZV9hbGFybV9vZmY=",
"SubType" : "KD101 smoke detector",
"SwitchType" : "Smoke Detector",
"SwitchTypeVal" : 5,
"Timers" : "false",
"Type" : "Security",
"TypeImg" : "smoke",
"Unit" : 0,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "18"
Please test latest version :)
Ok, downloaded latest, placed it in new folder dasboard4, copied my earlier posted settings.js again and now it's working... :?

The smoke detector isn't red anymore and doesn't say "rook gedetecteerd" It just says "AAN" while status is normal.
Uhm, sorry to bother you again but I noticed something else changed in the last few days (off course a lot has changed :-)

A few days ago the MD cam1 enz switches (see earlier screenshot) had the same icon.
Now some of them are light bulbs and others are switches. They are all "SwitchType" : "On/Off"
What setting in domoticz do I have to change so those switches use the same icon?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by robgeerts »

Dropshot wrote: 1. Is it possible to remove the time and date of the traffic announcement?
Image
Fixed in latest version

Dropshot wrote: 2. When I press on the buienradar block, I get to the weather forecast (weer.nl) of some random cities in NL (e.g. 'Son' or 'Banne Buiksloot' :?), instead of the rain forecast (buienradar.nl) of my city.
You can change this link in config.js ;)

gjaa wrote: I will buy you a beer
Thanks!

repoman wrote: The smoke detector isn't red anymore and doesn't say "rook gedetecteerd" It just says "AAN" while status is normal.
Fixed in latest version!

gjaa wrote:I find a typo
Schermafbeelding 2017-04-15 om 16.28.10.png
"Energie vandaag" is on the place of the kWh
Fixed in latest version!

Blueone wrote: Oke I changed the stand-by part a little bit again, this seems to be better, it resets the standby timer by mouse momevent zo it doesn't try to enter the stand-by modus when it is active.
Added to latest version!

DvD wrote: 1. Is it possible to change the icon of a Scene ? Like with Blocks
Use:

Code: Select all

blocks['s3'] = {}
blocks['s3']['icon'] = 'fa-fire';
DvD wrote: 2. Is it possible to leave a space between 2 switches ? example: switch1 - empty - switch 2
Sorry, no
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by robgeerts »

Blueone wrote:standby
For some reason, it didn't go back to normal with me, in latest version it does.
Although, I reverted back to minutes... because the name of the variable says 'minutes'.
If you want half a minute, use 0.5 ;)
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by EdwinK »

Can you do something with this?

Image

Code: Select all

{
   "ActTime" : 1492273407,
   "ServerTime" : "2017-04-15 18:23:27",
   "Sunrise" : "06:46",
   "Sunset" : "20:38",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Off",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 20,
         "HardwareName" : "Hue Scenes",
         "HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
         "HardwareTypeVal" : 15,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "000140AB",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-04-15 09:53:48",
         "Level" : 0,
         "LevelActions" : "http%3A//192.168.0.10%3A8084/json.htm%3Ftype%3Dcommand%26param%3Dswitchlight%26idx%3D86%26switchcmd%3DOff|http%3A//192.168.0.10%3A8084/json.htm%3Ftype%3Dcommand%26param%3Dswitchlight%26idx%3D71%26switchcmd%3DOn|http%3A//192.168.0.10%3A8084/json.htm%3Ftype%3Dcommand%26param%3Dswitchlight%26idx%3D72%26switchcmd%3DOn|http%3A//192.168.0.10%3A8084/json.htm%3Ftype%3Dcommand%26param%3Dswitchlight%26idx%3D74%26switchcmd%3DOn|http%3A//192.168.0.10%3A8084/json.htm%3Ftype%3Dcommand%26param%3Dswitchlight%26idx%3D88%26switchcmd%3DOn",
         "LevelInt" : 0,
         "LevelNames" : "Off|Concentreren|Gedimd|Lezen|Film",
         "LevelOffHidden" : false,
         "MaxDimLevel" : 100,
         "Name" : "Hue Scenes",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "SelectorStyle" : 0,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Selector Switch",
         "SwitchType" : "Selector",
         "SwitchTypeVal" : 18,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "Light",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "91"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
No need to rush, enjoy your Easter-weekend.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Blueone
Posts: 130
Joined: Friday 29 November 2013 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by Blueone »

robgeerts wrote:
Blueone wrote:standby
For some reason, it didn't go back to normal with me, in latest version it does.
Although, I reverted back to minutes... because the name of the variable says 'minutes'.
If you want half a minute, use 0.5 ;)
:lol: , didn't thought about that. Maybe a small error in de code which I forget to edit in my post. Glad is has being fixed. Btw, are you also using the touchscreen?
I thought there were some other issues because my dashboard hung. But I also added 2 graphs on a second pages and those caused the dashboard to stall. I think because I have setup domoticz it updates graphs every minute instead of 5 minutes which is to much to handle for the dashboard.

I also want to create an other stand-by few with a big clock etc, I can image that this is more a personal choice so I wan't to add it in the custom css. I'm a bit of newby is css en js world. Can I do something like this in the css to overide something when the standby class is available? Can someone help me in the right directon for so I can create it? Thanks!

Code: Select all

.standby .mh {
	display: none !important;
}
User avatar
gjaa
Posts: 38
Joined: Thursday 12 February 2015 6:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by gjaa »

My doorcontact's state never change, it's always open
Schermafbeelding 2017-04-15 om 19.19.26.png
Schermafbeelding 2017-04-15 om 19.19.26.png (19.11 KiB) Viewed 1654 times
Here is the setting
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Closed",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 2,
"HardwareName" : "RFXCOM -RFXtrx433e Tranceiver",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "123E106",
"Image" : "Light",
"InternalState" : "Closed",
"IsSubDevice" : false,
"LastUpdate" : "2017-04-15 19:15:02",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 15,
"Name" : "State - Contact Achterdeur",
"Notifications" : "false",
"PlanID" : "2",
"PlanIDs" : [ 2 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 6,
"Status" : "Closed",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "Door Lock",
"SwitchTypeVal" : 11,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "door",
"Unit" : 10,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "531",
"YOffset" : "498",
"idx" : "193"
},

Thanks
Gerard
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by EdwinK »

Thanks Rob, for your quick service
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by robgeerts »

gjaa wrote:My doorcontact's state never change, it's always open
Fixed in latest version!


Blueone wrote: I also want to create an other stand-by few with a big clock etc, I can image that this is more a personal choice so I wan't to add it in the custom css. I'm a bit of newby is css en js world. Can I do something like this in the css to overide something when the standby class is available? s
What about defining different columns/blocks for standby-mode?
Something like:

Image

If people are interested in this, let me know, I will look into this!
Clemen
Posts: 75
Joined: Saturday 05 December 2015 15:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Europe
Contact:

Re: Dashticz v2.0, custom positioning and multiple screens

Post by Clemen »

robgeerts wrote:
gjaa wrote:My doorcontact's state never change, it's always open
Fixed in latest version!


Blueone wrote: I also want to create an other stand-by few with a big clock etc, I can image that this is more a personal choice so I wan't to add it in the custom css. I'm a bit of newby is css en js world. Can I do something like this in the css to overide something when the standby class is available? s
What about defining different columns/blocks for standby-mode?
Something like:

Image

If people are interested in this, let me know, I will look into this!

would be perfect!
Locked

Who is online

Users browsing this forum: Google [Bot] and 1 guest