Page 102 of 184

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

Posted: Thursday 04 May 2017 22:30
by robgeerts
Blueone wrote: Dashticz needs a subforum with a tread for every functionality :D, is definitly a populair dashboard as we are already passed 100 pages with posts.
Just request:)
Lets hope..

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

Posted: Thursday 04 May 2017 22:38
by EdwinK
robgeerts wrote: Mijnafvalwijzer should work in latest beta:

Code: Select all

var trashcan = {}
trashcan.deafvalapp = { trashapp: 'deafvalapp', width:4,zipcode:'5692VG', housenumber:'33', country:'NL' }
trashcan.cure = { trashapp: 'cure', width:8, zipcode:'5654SB', housenumber:'3' }
trashcan.mijnafvalwijzer = { trashapp: 'mijnafvalwijzer', width:4, zipcode:'3582ES', housenumber:'1' }
And in de columns part of config.js:

Code: Select all

columns[2]['blocks'] = [trashcan.deafvalapp,trashcan.cure,trashcan.mijnafvalwijzer]
My Zip-code doesn't work on any of them, although mijnafvalwijzer.nl recognizes the zipcode.

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

Posted: Thursday 04 May 2017 22:39
by htilburgs
robgeerts wrote:
htilburgs wrote:No text "loadTrash" or "Trash"
Then you dont have the latest main.js ;)
I don't get it.. This is not the first time, yesterday also something went wrong with the beta update.
Probably it's my own error.... :ugeek:

But... Good news! After the new installation and placing back my custom, everything works fine!!!

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

Posted: Thursday 04 May 2017 22:39
by EdwinK
robgeerts wrote:
Blueone wrote: Dashticz needs a subforum with a tread for every functionality :D, is definitly a populair dashboard as we are already passed 100 pages with posts.
Just request:)
Lets hope..
I do agree. Will make searching for things a lot easier. There are over 2,000 posts now.

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

Posted: Thursday 04 May 2017 22:42
by htilburgs
blacksn0w wrote:How to change size of icons when using custom images?
When im using font awesome icons, the could from wiki works perfect

Code: Select all

.fa,.wi {
   font-size:24px !important;
}
But how do i enlarge my custom images?
Find the according icon name and put in custom.css like this:

Code: Select all

.fa.fa-moon-o {
	font-size: 24px !important;
}

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

Posted: Thursday 04 May 2017 22:43
by htilburgs
EdKo66 wrote:
robgeerts wrote:
Blueone wrote: Dashticz needs a subforum with a tread for every functionality :D, is definitly a populair dashboard as we are already passed 100 pages with posts.
Just request:)
Lets hope..
I do agree. Will make searching for things a lot easier. There are over 2,000 posts now.
Agree.... 2,026 posts now.... :lol:

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

Posted: Thursday 04 May 2017 22:51
by robgeerts
It's here :)
http://www.domoticz.com/forum/viewforum.php?f=67

Please do not add topics yet, I Will first create a few based on some questions :)

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

Posted: Thursday 04 May 2017 22:53
by jake
robgeerts wrote:
jake wrote:I have 2 questions regarding blocks to place:

1: In Domoticz in the Utility tab, I have a Solar panel yield device that displays:
- total kWh
- daily kWh
- current power
solar usage.JPG

When I add this as a 'block' in Dasthicz, I can't select the 'power', but it only gives the 'daily kWh'. How can I change this?
Could you send me the JSON-output of this device?
I use the PV-Output 'hardware' in Domoticz and don't see a JSON url for that. Trying to use an IDX_1 or IDX_2 for this device ends up with empty blocks.
jake wrote: 2:
With the help of the OTGW I can distinct the gas usage by 'house heating' and 'tap water heating'. I therefore have 2 virtual gas meters to display this. In Dashticz I have both given them custom titles to show in local language what the device is about. However, it still displays the standard text. Can I change this?
Gas custom title.JPG
Spoiler: show
blocks[181] = {}
blocks[181]['width'] = 4;
blocks[181] ['title'] = 'Gas Verwarming'

blocks[186] = {}
blocks[186]['width'] = 4;
blocks[186] ['title'] = 'Gas Tapwater'
Actually, it is the same issue for 'electricity' and 'solar panels', the standard defined text is displayed instead of my custom title.
You have spaces between [186] and ['title'], remove them.
Thanks for spotting those spaces, I hadn't seen that before. However, it doesn't help to remove the spaces, I also saw that (since I copy paste) that a lot of my blocks had the spaces and they show the correct custom title, it is just the energy related ones that keep their own title.

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

Posted: Thursday 04 May 2017 22:54
by EdwinK
Cool :)

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

Posted: Thursday 04 May 2017 22:54
by htilburgs
Latest version, with the Cure Trash-calendar! Thanx for this one @robgeerts!

Image

Re: Dashticz - General Discussions

Posted: Thursday 04 May 2017 23:00
by EdwinK
Nog een afvalwijzer-achtige site gevonden. Dit keer krijg ik wel data voor mijn gemeente terug, maar kan niet vinden hoe dat verwerkt wordt.



https://www.recyclemanager.nl/afvalkalender

Re: Dashticz - General Discussions

Posted: Thursday 04 May 2017 23:03
by madrian
Greetings on the new forum. :)

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

Posted: Thursday 04 May 2017 23:21
by HansieNL
htilburgs wrote:
robgeerts wrote:
htilburgs wrote:No text "loadTrash" or "Trash"
Then you dont have the latest main.js ;)
I don't get it.. This is not the first time, yesterday also something went wrong with the beta update.
Probably it's my own error.... :ugeek:

But... Good news! After the new installation and placing back my custom, everything works fine!!!
That's why it's called Beta ;) Wanna try the Alpha version? :)

Re: Dashticz - General Discussions

Posted: Thursday 04 May 2017 23:27
by robgeerts
How do you pull the latest version?? Maybe there goes something wrong?
I use TortoiseGit to pull the latest version to my Desktop, then I check everything and when done, I upload it via FTP (the complete dashticz-folder) to my webserver.

Re: Dashticz - General Discussions

Posted: Thursday 04 May 2017 23:37
by Blueone
I changed the addcontainerfunction a little bit so it showing "vandaag" and going to add the week days, probably ugly code and had to replace to date after the sort but I'm not a coder. Maybe there are better ways to do this.

Code: Select all

function addToContainer(random,returnDates){
	
	var returnDatesSimple={}
	var done = {};
	for(c in returnDates){
		for(cr in returnDates[c]){
			returnDatesSimple[cr] = returnDates[c][cr];
			done[c]=true;
		}
	}

	$('.trash'+random+' .state').html('');
	var c=1;
	Object.keys(returnDatesSimple).sort().forEach(function(key) {

		var date = moment(key).format("DD-MM-YYYY");
		var currentdate = moment(Date.now()).format("DD-MM-YYYY");
		if(date == currentdate){
		returnDatesSimple[key] = (returnDatesSimple[key]).replace(date, "Vandaag");}
			
		if(c<=3) $('.trash'+random+' .state').append(returnDatesSimple[key]);
		c++;
	});
results in:

Re: Dashticz - General Discussions

Posted: Thursday 04 May 2017 23:42
by robgeerts
Thanks, please send me when you are done with the weekdays (Especially 'Tomorrow')

Re: Dashticz - General Discussions

Posted: Thursday 04 May 2017 23:48
by htilburgs
robgeerts wrote:How do you pull the latest version?? Maybe there goes something wrong?
I use TortoiseGit to pull the latest version to my Desktop, then I check everything and when done, I upload it via FTP (the complete dashticz-folder) to my webserver.
Same way....

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 0:10
by blacksn0w
htilburgs wrote:
robgeerts wrote:How do you pull the latest version?? Maybe there goes something wrong?
I use TortoiseGit to pull the latest version to my Desktop, then I check everything and when done, I upload it via FTP (the complete dashticz-folder) to my webserver.
Same way....
You are using Dashticz on RPi right? Why are you not using git via SSH? Just clone the repo (beta branch) and then update via git pull.
All your custom files will not be touched by an update, because they are no part of the repo.

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 0:54
by sander
Hello Rob, thanks for making this nice Dash, but I have checked multiple times and followed your guidelines but the best output I get is this: Domoticz is offline.
Does it matter mine is ported through 8080 and not 8084? does it have to be put on 8084 or can I just put my Pi IP:8080?

I am not a wizz in programming, but does it matter I unzipped your files on windows and placed them with WIN SCP inside the www folder in a new folder called ui.
When I am calling up the dash I use <my domain:8080/ui> and get Domitcz is offline, or when I use <my Pi IP:8080/ui> I get 500 internal server error.

If you can point me in the right direction, it would be much appreciated.

Regards Sander

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 1:42
by HansieNL
sander wrote:Hello Rob, thanks for making this nice Dash, but I have checked multiple times and followed your guidelines but the best output I get is this: Domoticz is offline.
Does it matter mine is ported through 8080 and not 8084? does it have to be put on 8084 or can I just put my Pi IP:8080?

I am not a wizz in programming, but does it matter I unzipped your files on windows and placed them with WIN SCP inside the www folder in a new folder called ui.
When I am calling up the dash I use <my domain:8080/ui> and get Domitcz is offline, or when I use <my Pi IP:8080/ui> I get 500 internal server error.

If you can point me in the right direction, it would be much appreciated.

Regards Sander
Hello Sander,
Add a / behind your url so you get <my domain>:8080/ui/ or you can use <my domain>:8080/ui/index.html