Page 71 of 184

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

Posted: Tuesday 25 April 2017 8:49
by EdwinK
Try this:
Screen Shot 2017-04-25 at 08.48.15.png
Screen Shot 2017-04-25 at 08.48.15.png (54.27 KiB) Viewed 2112 times
You need to take a look at the 'User variables' tab and note the idx of the MoonPicture row.

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

Posted: Tuesday 25 April 2017 8:53
by poudenes
Will the news feed also get refreshed by "var _DOMOTICZ_REFRESH = 5;" or does it refresh when you refresh the browser?
I'm using a tablet agains the wall, always plugged in with adapter so screen always on. I don't want refresh it manual.

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

Posted: Tuesday 25 April 2017 9:24
by EdwinK
robgeerts wrote:Giving back some time to my clients so I'm not answering every hour but I read all your posts and will update again tomorrow or wednesday. Although, good to see that most of your questions are answered by others and users come up with great ideas!
What... No more hourly updates on Git? How am I supposed to go through the day now ;)

Have fun at work

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

Posted: Tuesday 25 April 2017 10:14
by robgeerts
madrian wrote:@Rob,

Dashboard.jpg

1, Can you please change title order for percentage and fertility (General-Custom Sensor) type device (red arrow, blue arrow)?

Percentage:

Code: Select all

{
         "BatteryLevel" : 93,
         "CustomImage" : 0,
         "Data" : "54.00%",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 2,
         "HardwareName" : "Dummy",
         "HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
         "HardwareTypeVal" : 15,
         "HaveTimeout" : true,
         "Image" : "Computer",
         "LastUpdate" : "2017-04-23 12:10:09",
         "Name" : "MiFlora1_moisture",
         "SubType" : "Percentage",
         "Type" : "General",
         "TypeImg" : "hardware",
         "Unit" : 1,
         "Used" : 1,
         "idx" : "41"
      },
Fertility:

Code: Select all

 {
         "Data" : "788 Fertility",
         "HardwareName" : "Dummy",
         "HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
         "HardwareTypeVal" : 15,
         "Image" : "Custom",
         "LastUpdate" : "2017-04-23 12:10:09",
         "Name" : "MiFlora1_fertility",
         "SensorType" : 1,
         "SensorUnit" : "Fertility",
         "ShowNotifications" : true,
         "SubType" : "Custom Sensor",
         "Type" : "General",
         "TypeImg" : "Custom",
         "Unit" : 1,
         "Used" : 1,
         "idx" : "42"
      },
2, add missing FA icon for fertility type sensor. We should use this one.
Fixed in latest version!


SuperMouse wrote:Hello all.

Just saying this Dashticz v2.0 is really really greet to play with an looks very nice.
Mayby it is an idea to create a new post and 'show off' you Dashticz?

My question: is it also possible to alter the 'data' value or to clear it totally?

Now I am using green for home and red for away:

See custom css:

.fa.fa-female.on {color: green}
.fa.fa-female.off {color: red}

I think this would look nicer.
In latest version, you can use (with switches):

Code: Select all

blocks[95] = {}
blocks[95]['hide_data'] = true

SuperMouse wrote: Show your Dashticz v2.0 and how-to's!
https://www.domoticz.com/forum/viewtopi ... =8&t=17242
Cool :)


rbisschops wrote: Another one I checked is the latest blinds version. There is still a part cut off from the 'clickable' part of the + image. I think this is causing it:
blinds.jpg
Please check latest version!


SwordFish wrote:Is it possible to change the color of the graph line?
Added to my todolist to make this configurable by users..


Ierlandfan wrote:I was thinking about a code for showing the traffic layer on top of Google Maps
TapNL wrote:.
It's probably as simple as this
Added in latest version!

In config.js, add 3 variables:

Code: Select all

var _APIKEY_MAPS			= 'AP_KEY';
var _MAPS_LATITUDE			= 51.4275387;
var _MAPS_LONGITUDE		= 5.4561574;
And add the key 'trafficmap' like:

Code: Select all

var columns = {}
columns[1] = {}
columns[1]['blocks'] = ['trafficmap'];

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

Posted: Tuesday 25 April 2017 12:54
by DvD
Just did a git pull and that resulted in a almost empty dashboard without any domoticz buttons nor second screen
Only weather blocks are displayed !!

UPDATE : Working again: didnt had the var _SCREENSLIDER_EFFECT in my config.js and had multiple screens

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

Posted: Tuesday 25 April 2017 13:05
by robgeerts
Thanks, didn't add a default value.
Fixed in latest version!

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

Posted: Tuesday 25 April 2017 13:15
by Ierlandfan
Rob, would it be more convenient to remove your api key? Or is it OK to use it?

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

Posted: Tuesday 25 April 2017 13:30
by EdwinK
AAaaarrggghhh.. I know... backup backup backup.. But just this time I forgot to backup creative.css...

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

Posted: Tuesday 25 April 2017 13:31
by pkrabben
for some reason my Graph and traffic map are not working

Image

Code: Select all

var _APIKEY_MAPS         	= 'AIzaSyCRgdUxmbzhMPyWAudqbQoaI1HmHZMWP7E';
var _MAPS_LATITUDE         	= 52.353472;
var _MAPS_LONGITUDE      	= 5.181684;

Code: Select all

columns[4] = {}
columns[4]['blocks'] = ['blocktitle_5','trafficmap','traffic','news']
columns[4]['width'] = 5; 
Before the update of yesterday my graph was working
Does any body have any clue or suggestion

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

Posted: Tuesday 25 April 2017 13:54
by EdwinK
Don't post your API-key. It's personal

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

Posted: Tuesday 25 April 2017 14:12
by EdwinK
Nevermind. Problem was because of a stupid typo...

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

Posted: Tuesday 25 April 2017 14:15
by SwordFish
I just updated and my graphic is working, but the trafficmap isn't.
I check on google traffic with my api and lat and lon and there it is working?

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

Posted: Tuesday 25 April 2017 15:15
by robgeerts
Removed my apikey ;)
Did you guys get any error in console??

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

Posted: Tuesday 25 April 2017 15:22
by robgeerts
pkrabben wrote:for some reason my Graph and traffic map are not working

Image

Code: Select all

var _APIKEY_MAPS         	= 'AIzaSyCRgdUxmbzhMPyWAudqbQoaI1HmHZMWP7E';
var _MAPS_LATITUDE         	= 52.353472;
var _MAPS_LONGITUDE      	= 5.181684;

Code: Select all

columns[4] = {}
columns[4]['blocks'] = ['blocktitle_5','trafficmap','traffic','news']
columns[4]['width'] = 5; 
Before the update of yesterday my graph was working
Does any body have any clue or suggestion
What if you clear your browser cache?

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

Posted: Tuesday 25 April 2017 15:32
by htilburgs
poudenes wrote:Will the news feed also get refreshed by "var _DOMOTICZ_REFRESH = 5;" or does it refresh when you refresh the browser?
I'm using a tablet agains the wall, always plugged in with adapter so screen always on. I don't want refresh it manual.
As far as I know and can test, the var _DOMOTICZ_REFRESH is used to refresh the Domoticz information. The news feed will act on var _SCROLL_NEWS_AFTER = 7000; //milliseconds, so 7000 is 7 seconds.

Please test and make sure, before mounting on the wall....;)

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

Posted: Tuesday 25 April 2017 15:54
by pkrabben
robgeerts wrote:
pkrabben wrote:for some reason my Graph and traffic map are not working

Image

Code: Select all

var _APIKEY_MAPS         	= 'AIzaSyCRgdUxmbzhMPyWAudqbQoaI1HmHZMWP7E';
var _MAPS_LATITUDE         	= 52.353472;
var _MAPS_LONGITUDE      	= 5.181684;

Code: Select all

columns[4] = {}
columns[4]['blocks'] = ['blocktitle_5','trafficmap','traffic','news']
columns[4]['width'] = 5; 
Before the update of yesterday my graph was working
Does any body have any clue or suggestion
What if you clear your browser cache?
Same issue tried it also on a new device without any history opening this dashboard

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

Posted: Tuesday 25 April 2017 16:20
by Maartenkr
EdKo66 wrote:Try this:

Screen Shot 2017-04-25 at 08.48.15.png

You need to take a look at the 'User variables' tab and note the idx of the MoonPicture row.


Thank you that was the problem

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

Posted: Tuesday 25 April 2017 16:53
by SwordFish
Can i change the text size of the nest setpoint and the space between the temp and text?

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

Posted: Tuesday 25 April 2017 17:04
by sonar
It would be nice if the start zoom level for the trafficmap would also be a variable.

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

Posted: Tuesday 25 April 2017 17:10
by Ierlandfan
Yeay, but for now you can set it yourself in main.js
Somewhere along line 290 you find this piece of code:

Code: Select all

}
function initMap() {
        var map = new google.maps.Map(document.getElementById('trafficmap'), {
          zoom: 10, 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<