Page 103 of 184

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 1:49
by HansieNL
Hello Rob,
Is it possible to change the icon/image for the trash block. I've made a kliko image and wanna use that one if possible...
kliko.jpg
kliko.jpg (13.63 KiB) Viewed 2056 times

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 2:16
by maninblack30
Hello everyone!
I'm new to Domoticz etc, but I am loving it! I have a bunch of sonoff's running Espeasy, and some Xiaomi sensors, and a Broadlink RM2, everything is working really well, but now I want to do a touchscreen on the wall in my living area and use Dashticz.
I have followed the wiki and have it working except all I'm getting are my favorite switches, no clock, no weather, nothing else appears to work.
I have tried other peoples config.js and all I get is a blank screen!
Are there any dependencies etc that I need to install?
I'm running beta 3.7412 on Ubuntu 16.04 LTS as a VM under Hyper-v.
Any help would be appreciated.

Ta,

Fraser

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 2:34
by HansieNL
maninblack30 wrote:Hello everyone!
I'm new to Domoticz etc, but I am loving it! I have a bunch of sonoff's running Espeasy, and some Xiaomi sensors, and a Broadlink RM2, everything is working really well, but now I want to do a touchscreen on the wall in my living area and use Dashticz.
I have followed the wiki and have it working except all I'm getting are my favorite switches, no clock, no weather, nothing else appears to work.
I have tried other peoples config.js and all I get is a blank screen!
Are there any dependencies etc that I need to install?
I'm running beta 3.7412 on Ubuntu 16.04 LTS as a VM under Hyper-v.
Any help would be appreciated.

Ta,

Fraser
Hello Fraser,
Can you tell us what version (master/beta) you are using and post your config.js If you post your config.js as code we can check your code.

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 4:01
by maninblack30
I think Master, i just did a git clone https://github.com/robgeerts/dashticz_v2

This one is one I copied and just changed my server details, it reults in a just my favorite switches, nothing else:
(Please keep in mind I know nothing about code!)

Code: Select all

var _LANGUAGE 				= 'en_US'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ		  	= 'http://192.168.1.4:80';
var _DOMOTICZ_REFRESH		= 5; //in seconds
var _DASHTICZ_REFRESH		= 30; //in minutes

/*
IF YOU HAVE A MEDIABOX FROM ZIGGO (HORIZON), COPY SWITCH_HORIZON.PHP ON A WEBSERVER INSIDE YOUR NETWORK AND CHANGE THE IP.
ENTER THE PATH TO THIS FILE BELOW.
*/
var _HOST_ZIGGO_HORIZON	  	= ''; //e.g. http://192.168.1.3/domoticz/switch_horizon.php';
var _APIKEY_WUNDERGROUND  	= '';
var _WEATHER_CITY 			= 'Eindhoven';
var _WEATHER_CITYNAME 		= ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY 		= 'NL';
var _USE_AUTO_POSITIONING 	= true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES			= true; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK  = false; //do not show the seconds in the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF = false; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED			= 'http://www.nu.nl/rss/algemeen';
var _USE_FAHRENHEIT			= false;
var _USE_BEAUFORT 			= true; //Bft instead of m/s
var _TRANSLATE_SPEED 		= false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES  = false; //enter amount of minutes like: 5 (5 minutes)
var _SCROLL_NEWS_AFTER 		= 7000; //milliseconds, so 7000 is 7 seconds
var _SHOW_LASTUPDATE 		= true;
var _LASTUPDATE_FORMAT 		= 'DD-MM-YY HH:mm';
var _SCREENSLIDER_EFFECT 	= 'slide'; //'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'

var _APIKEY_MAPS			= '';
var _MAPS_LATITUDE			= '';
var _MAPS_LONGITUDE			= '';

var _AUTO_SWIPEBACK_TO		= 1; //when no activity, swipe back to main screen after x seconds
var _AUTO_SWIPEBACK_TIME	= 10; //seconds

// Online Radio Stream Plugin, Note: you must enable  plugin in column section 'streamplayer', see columns[3]['blocks'] example below.
var _STREAMPLAYER_TRACKS  	= [
								{"track":1,"name":"Music FM","file":"http://stream.musicfm.hu:8000/musicfm.mp3"},
								{"track":2,"name":"Radio 1","file":"http://213.181.210.106:8000/high.mp3"},
								{"track":3,"name":"Test FM","file":"http://213.181.210.106:8000/high.mp3"},
							  ]; 

// iCalendar Plugin, supports all .ics calendar types like Google Calendar, Apple Calendar
var _ICALENDAR_URL			= 'https://testurl.com/ical.ics'; //supports .ics type calendars (Google Calendar, Apple Calendar etc.)
var _ICALENDAR_DATEFORMAT	= 'friendly'; //'friendly', 'MM.DD.YYYY HH:mm', 'DD.MM.YYYY HH:mm', 'YYYY.MM.DD HH:mm'
var _ICALENDAR_LOCALE		= 'en'; //en,hu, etc. 

//Buttons or images to open webpages in an iframe, like a news website or weather forecast
var buttons = {}
buttons.buienradar = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weeronline.nl/Europa/Nederland/Son/4058667'}
buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}


//CUSTOM POSITIONING:
//defining wich blocks to show, de numbers represents the IDX of the device in Domoticz
//only define if you want to use a custom width instead of the default

//var blocks = {}

//blocks[1] = {}
//blocks[1]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
//blocks[1]['title'] = 'Living room' //if you want change the name of switch different then domoticz
//blocks[1]['icon'] = 'fa-eye'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
//blocks[1]['image'] = 'bulb_off.png'; //if you want to show an image instead if icon, place image in img/ folder

//blocks[204] = {} //dimmer
//blocks[204]['width'] = 12;
//blocks[204]['title'] = 'Living room' //if you want change the name of switch different then domoticz

//blocks['blocktitle_1'] = {}
//blocks['blocktitle_1']['type'] = 'blocktitle';
//blocks['blocktitle_1']['title'] = 'Schakelaars';

//var columns = {}

//columns[1] = {}
//columns[1]['blocks'] = ['blocktitle_1',1,2,62,'144_2',204,248,295] //remark: idx 144 produces 2 blocks, so you can use: '144_1' and '144_2' (or of course, just 144 if you want one)
//columns[1]['width'] = 5;

//columns[2] = {}
//columns[2]['blocks'] = ['currentweather_big','weather',5,'144_1']
//columns[2]['width'] = 5; 

//columns[3] = {}
//columns[3]['blocks'] = ['clock','sunrise','horizon','streamplayer',buttons.buienradar,buttons.radio,buttons.calendar,buttons.nunl,buttons.nzbget]
//columns[3]['width'] = 2;

//var columns_standby = {}
//columns_standby[1] = {}
//columns_standby[1]['blocks'] = ['clock','currentweather_big','weather']
//columns_standby[1]['width'] = 12;

//if you want to use multiple screens, use the code below:
//var screens = {}
//screens[1] = {}
//screens[1]['background'] = 'bg1.jpg';
//screens[1]['background_morning'] = 'bg_morning.jpg';
//screens[1]['background_noon'] = 'bg_noon.jpg';
//screens[1]['background_afternoon'] = 'bg_afternoon.jpg';
//screens[1]['background_night'] = 'bg_night.jpg';
//screens[1]['columns'] = [1,2,3]

//screens[2] = {}
//screens[2]['background'] = 'bg3.jpg';
//screens[2]['background_morning'] = 'bg_morning.jpg';
//screens[2]['background_noon'] = 'bg_noon.jpg';
//screens[2]['background_afternoon'] = 'bg_afternoon.jpg';
//screens[2]['background_night'] = 'bg_night.jpg';
//screens[2]['columns'] = [4,5,6]

Thanks!

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 4:29
by HansieNL
maninblack30 wrote:This one is one I copied and just changed my server details, it reults in a just my favorite switches, nothing else:
(Please keep in mind I know nothing about code!)
Spoiler: show

Code: Select all

var _LANGUAGE 				= 'en_US'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ		  	= 'http://192.168.1.4:80';
var _DOMOTICZ_REFRESH		= 5; //in seconds
var _DASHTICZ_REFRESH		= 30; //in minutes

/*
IF YOU HAVE A MEDIABOX FROM ZIGGO (HORIZON), COPY SWITCH_HORIZON.PHP ON A WEBSERVER INSIDE YOUR NETWORK AND CHANGE THE IP.
ENTER THE PATH TO THIS FILE BELOW.
*/
var _HOST_ZIGGO_HORIZON	  	= ''; //e.g. http://192.168.1.3/domoticz/switch_horizon.php';
var _APIKEY_WUNDERGROUND  	= '';
var _WEATHER_CITY 			= 'Eindhoven';
var _WEATHER_CITYNAME 		= ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY 		= 'NL';
var _USE_AUTO_POSITIONING 	= true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES			= true; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK  = false; //do not show the seconds in the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF = false; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED			= 'http://www.nu.nl/rss/algemeen';
var _USE_FAHRENHEIT			= false;
var _USE_BEAUFORT 			= true; //Bft instead of m/s
var _TRANSLATE_SPEED 		= false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES  = false; //enter amount of minutes like: 5 (5 minutes)
var _SCROLL_NEWS_AFTER 		= 7000; //milliseconds, so 7000 is 7 seconds
var _SHOW_LASTUPDATE 		= true;
var _LASTUPDATE_FORMAT 		= 'DD-MM-YY HH:mm';
var _SCREENSLIDER_EFFECT 	= 'slide'; //'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'

var _APIKEY_MAPS			= '';
var _MAPS_LATITUDE			= '';
var _MAPS_LONGITUDE			= '';

var _AUTO_SWIPEBACK_TO		= 1; //when no activity, swipe back to main screen after x seconds
var _AUTO_SWIPEBACK_TIME	= 10; //seconds

// Online Radio Stream Plugin, Note: you must enable  plugin in column section 'streamplayer', see columns[3]['blocks'] example below.
var _STREAMPLAYER_TRACKS  	= [
								{"track":1,"name":"Music FM","file":"http://stream.musicfm.hu:8000/musicfm.mp3"},
								{"track":2,"name":"Radio 1","file":"http://213.181.210.106:8000/high.mp3"},
								{"track":3,"name":"Test FM","file":"http://213.181.210.106:8000/high.mp3"},
							  ]; 

// iCalendar Plugin, supports all .ics calendar types like Google Calendar, Apple Calendar
var _ICALENDAR_URL			= 'https://testurl.com/ical.ics'; //supports .ics type calendars (Google Calendar, Apple Calendar etc.)
var _ICALENDAR_DATEFORMAT	= 'friendly'; //'friendly', 'MM.DD.YYYY HH:mm', 'DD.MM.YYYY HH:mm', 'YYYY.MM.DD HH:mm'
var _ICALENDAR_LOCALE		= 'en'; //en,hu, etc. 

//Buttons or images to open webpages in an iframe, like a news website or weather forecast
var buttons = {}
buttons.buienradar = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weeronline.nl/Europa/Nederland/Son/4058667'}
buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}


//CUSTOM POSITIONING:
//defining wich blocks to show, de numbers represents the IDX of the device in Domoticz
//only define if you want to use a custom width instead of the default

//var blocks = {}

//blocks[1] = {}
//blocks[1]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
//blocks[1]['title'] = 'Living room' //if you want change the name of switch different then domoticz
//blocks[1]['icon'] = 'fa-eye'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
//blocks[1]['image'] = 'bulb_off.png'; //if you want to show an image instead if icon, place image in img/ folder

//blocks[204] = {} //dimmer
//blocks[204]['width'] = 12;
//blocks[204]['title'] = 'Living room' //if you want change the name of switch different then domoticz

//blocks['blocktitle_1'] = {}
//blocks['blocktitle_1']['type'] = 'blocktitle';
//blocks['blocktitle_1']['title'] = 'Schakelaars';

//var columns = {}

//columns[1] = {}
//columns[1]['blocks'] = ['blocktitle_1',1,2,62,'144_2',204,248,295] //remark: idx 144 produces 2 blocks, so you can use: '144_1' and '144_2' (or of course, just 144 if you want one)
//columns[1]['width'] = 5;

//columns[2] = {}
//columns[2]['blocks'] = ['currentweather_big','weather',5,'144_1']
//columns[2]['width'] = 5; 

//columns[3] = {}
//columns[3]['blocks'] = ['clock','sunrise','horizon','streamplayer',buttons.buienradar,buttons.radio,buttons.calendar,buttons.nunl,buttons.nzbget]
//columns[3]['width'] = 2;

//var columns_standby = {}
//columns_standby[1] = {}
//columns_standby[1]['blocks'] = ['clock','currentweather_big','weather']
//columns_standby[1]['width'] = 12;

//if you want to use multiple screens, use the code below:
//var screens = {}
//screens[1] = {}
//screens[1]['background'] = 'bg1.jpg';
//screens[1]['background_morning'] = 'bg_morning.jpg';
//screens[1]['background_noon'] = 'bg_noon.jpg';
//screens[1]['background_afternoon'] = 'bg_afternoon.jpg';
//screens[1]['background_night'] = 'bg_night.jpg';
//screens[1]['columns'] = [1,2,3]

//screens[2] = {}
//screens[2]['background'] = 'bg3.jpg';
//screens[2]['background_morning'] = 'bg_morning.jpg';
//screens[2]['background_noon'] = 'bg_noon.jpg';
//screens[2]['background_afternoon'] = 'bg_afternoon.jpg';
//screens[2]['background_night'] = 'bg_night.jpg';
//screens[2]['columns'] = [4,5,6]

Thanks!
You have two setting to set to false if you want to create your own setup, but than you have to define all your blocks.
var _USE_AUTO_POSITIONING = true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES = true; //only used when using auto positioning
I would advise you to start reading the Wiki https://www.domoticz.com/wiki/Dashticz-v2 first to understand what's what in config.js.

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 6:13
by htilburgs
blacksn0w wrote:
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.
I've tried this, but I only was able to do this for the master, not for the beta. Do I need a parameter to get the beta?

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

Posted: Friday 05 May 2017 6:45
by tontze
robgeerts wrote:
HansieNL wrote:
tontze wrote:I just did git pull, and all my buttons disappeared, they still exist in config.js ?
I had the same, add the following to config.js...
var _THEME = 'default'
Fixed in latest beta!



?
I added manually, did git pull just now. Still missing those buttons :( Git pull said up to date btw.

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

Posted: Friday 05 May 2017 6:47
by tontze
koowee wrote:
tontze wrote:
HansieNL wrote: I had the same, add the following to config.js...
var _THEME = 'default'
Hm, that didnt help for me ..
Did you add ; after that? If not, try if that help

Code: Select all

var _THEME = 'default';
Yes, didnt help :/

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

Posted: Friday 05 May 2017 6:55
by clubeddie
robgeerts wrote: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 :)
Maybe a topic with nice addons like trash, moon, traffic, etc.... or are they all coming in the wiki?

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 7:33
by koowee
htilburgs wrote:
blacksn0w wrote:
htilburgs wrote:
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.
I've tried this, but I only was able to do this for the master, not for the beta. Do I need a parameter to get the beta?
Try this one

Code: Select all

git clone --branch beta https://github.com/robgeerts/dashticz_v2.git dashticz_v2_beta
This should clone beta branch to dashticz_v2_beta directory. After that you can check that it is right branch using command

Code: Select all

git branch

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

Posted: Friday 05 May 2017 8:22
by woody4165
robgeerts wrote:.
Hi @robgeerts

I have translated the language file for italian.
If you agree, I can share it here and you could include it in Dashticz.

Thanks for your work

Re: RE: Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 8:40
by robgeerts
HansieNL wrote:Hello Rob,
Is it possible to change the icon/image for the trash block. I've made a kliko image and wanna use that one if possible...
kliko.jpg
Could you send me that image?

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

Posted: Friday 05 May 2017 8:40
by robgeerts
woody4165 wrote:
robgeerts wrote:.
Hi @robgeerts

I have translated the language file for italian.
If you agree, I can share it here and you could include it in Dashticz.

Thanks for your work
Yes, please share :) Thanks!

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

Posted: Friday 05 May 2017 8:47
by woody4165
robgeerts wrote: Yes, please share :) Thanks!
It's the js file in the "lang" folder.
If you think there are other files that need to be translated, let me know.

here is the file

https://app.box.com/s/ri8hfypzv4o2w2e7xwkc6uwz4pg6jvhu

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

Posted: Friday 05 May 2017 8:48
by DewGew
tontze wrote:
koowee wrote:
tontze wrote:
Hm, that didnt help for me ..
Did you add ; after that? If not, try if that help

Code: Select all

var _THEME = 'default';
Yes, didnt help :/
Config.js file is moved to custom folder.

// DewGew

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

Posted: Friday 05 May 2017 9:05
by rbo0567
robgeerts wrote:
sonar wrote:
qwerk wrote:has anybody contacted mijnafvalwijzer ?

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]
Yesss! Mijnafvalwijzer is working great.

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

Posted: Friday 05 May 2017 9:15
by qwerk
rbo0567 wrote:
robgeerts wrote:
sonar wrote:
Yesss! Mijnafvalwijzer is working great.


yep, another happy user over here.
mijnafvalwijzer. great

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 9:35
by SwordFish
So I went away for one day and a trash plug-in is born new topics are made. You have to stay on it 24/7 :shock:
Nice work with the trash plug-in Rob 8-)
I'll think that I going to use my old script because I like the heads up a day before the pick-up day :D

Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 9:39
by robgeerts
I just added support for some more trash calendars in BETA... please add questions or bugs regarding the trash module in this topic: http://www.domoticz.com/forum/viewtopic ... 67&t=17432

Re: RE: Re: Dashticz - General Discussions

Posted: Friday 05 May 2017 9:45
by HansieNL
robgeerts wrote:
HansieNL wrote:Hello Rob,
Is it possible to change the icon/image for the trash block. I've made a kliko image and wanna use that one if possible...
kliko.jpg
Could you send me that image?
Goodmorning,
You did accept my pull request already? If so, you should have it in the img folder as kliko.png.