Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

Martijnvdb
Posts: 5
Joined: Friday 26 January 2018 3:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Domotic issue

Post by Martijnvdb » Friday 26 January 2018 13:41

I just used below code, and still doesnt show anything


var config = {}
config['domoticz_ip'] = 'http://192.168.0.103:8080/';
config['app_title'] = 'Dashboard';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['auto_positioning'] = 1;
config['use_favorites'] = 1;



var buttons = {}
buttons.buienradar = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/Rada ... =285&h=256', url: 'http://www.weer.nl/verwachting/nederland/son/189656/'}

User avatar
DewGew
Posts: 254
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V4.9741
Location: Sweden
Contact:

Re: Dashticz - General Discussions

Post by DewGew » Friday 26 January 2018 13:58

Code: Select all

blocks[5]['speaksOff'] = 'Device is off';
is wrong
Must be blocks[5]['speakOff']
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface
Dashticz V2 - Homebridge

User avatar
htilburgs
Posts: 509
Joined: Tuesday 03 November 2015 12:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by htilburgs » Friday 26 January 2018 14:04

mlamie wrote:
Friday 26 January 2018 12:57
I don't get it, i updated Dashticz to the latest version today. But page remains blank if I use my own customization. Can some one help troubleshooting?

Pervious version (1yr old) still works, but a lot have been changed over time.

Code: Select all

var config = {}
config['domoticz_ip'] = 'http://192.168.1.180:8080';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['default_news_url'] = 'http://www.nu.nl/rss/algemeen';
config['news_scroll_after'] = '7';
config['standby_after'] = '5';
config['auto_swipe_back_to'] = 1;
config['auto_swipe_back_after'] = '10';
config['auto_slide_pages'] = 0;
config['slide_effect'] = 'slide';
config['standard_graph'] = 'month';
config['language'] = 'nl_NL';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['calendarurl'] = '';
config['boss_stationclock'] = 'RedBoss';
//config['gm_api'] = '';
//config['gm_zoomlevel'] = 0;
//config['gm_latitude'] = '';
//config['gm_longitude'] = '';
config['wu_api'] = '';
config['wu_city'] = 'Alphen Aan Den Rijn';
config['wu_name'] = '';
config['wu_country'] = 'NL';
//config['idx_moonpicture'] = 0;
//config['switch_horizon'] = 0;
config['host_nzbget'] = 'http://192.168.1.199:6789';
config['spot_clientid'] = '';
config['selector_instead_of_buttons'] = 0;
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['last_update'] = 1;
config['hide_topbar'] = 0;
config['hide_seconds'] = 1;
config['hide_seconds_stationclock'] = 1;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 1;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 0;
config['hide_mediaplayer'] = 1;
config['settings_icons'] = ["settings", "fullscreen"];
config['shortdate'] = 'D MMM';
config['longdate'] = 'D MMMM YYYY';
config['shorttime'] = 'HH:mm';
config['longtime'] = 'HH:mm:ss';
config['weekday'] = 'dddd';
config['no_rgb'] = 0;
//config['standby_call_url'] = '';
//config['standby_call_url_on_end'] = '';
config['garbage_company'] = 'alphenaandenrijn';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '';
config['garbage_street'] = '';
config['garbage_housenumber'] = '';
config['garbage_maxitems'] = '12';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage_use_cors_prefix'] = true;
config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
    pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
    rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
    papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
    kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
    brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
    black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
    milieu: {kliko: 'yellow', code: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
    kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},

};

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT

var publictransport = {}
publictransport.ovinfo = { show_via: false, station: 'station-alphen-a-d-rijn', provider: '9292', icon: 'train', width:5, results: 6 }

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:7, channels: [1,3,4,31,46,92], maxitems: 5 }


var _STREAMPLAYER_TRACKS  	= [
	{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3"},
	{"track":2,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
	{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
	{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
  ];

var calendars = {}
//calendars.private = { maxitems: 5, icalurl: '' }

var buttons = {}
//buttons.nos = {key: 'nos',  width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}
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 = {key: 'nunl'  width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.webcam = {width:12, isimage:true, refresh:2000, image: 'http://192.168.1.190/cgi-bin/viewer/video.jpg', url: 'http://192.168.1.190/cgi-bin/viewer/video.jpg'}

var blocks = {}
blocks[8] = {} //Thermostaat
blocks[9] = {} //Woonkamer temperatuur
blocks[15] = {} //Buiten temperatuur

blocks[11] = {} //Windmeter

blocks[17] = {} //Voordeur
blocks[18] = {} //Achterdeur
blocks[19] = {} //Keuekenraam

blocks[49] = {} //TV lampen
blocks[49]['icon'] = 'fa-lightbulb-o'
blocks[49]['hide_data'] = true
blocks[49]['speakOn'] = 'Device is on';
blocks[49]['speaksOff'] = 'Device is off';

blocks[280] = {} //Bank lamp
blocks[280]['icon'] = 'fa-lightbulb-o'
blocks[280]['hide_data'] = true
blocks[280]['speakOn'] = 'Device is on';
blocks[280]['speaksOff'] = 'Device is off';

blocks[7] = {} //Schuur licht
blocks[7]['icon'] = 'fa-lightbulb-o'
blocks[7]['hide_data'] = true
blocks[7]['speakOn'] = 'Device is on';
blocks[7]['speaksOff'] = 'Device is off';

blocks[5] = {} //Slaapkamer licht
blocks[5]['icon'] = 'fa-lightbulb-o'
blocks[5]['hide_data'] = true
blocks[5]['speakOn'] = 'Device is on';
blocks[5]['speaksOff'] = 'Device is off';

blocks[56] = {} //Domoticz Security Panel
blocks[56]['width'] = 4;
blocks[56]['title'] = 'Alarm status'
blocks[56]['image'] = 'alarm.png';
blocks[76] = {} //AlarmActive
blocks[76]['title'] = 'Alarm aan/uit'

blocks[100] = {} //CPU Usage
blocks[100]['width'] = 12;
blocks[100]['title'] = 'RPi CPU'
blocks[100]['image'] = 'raspberry_pi.png';
blocks[100]['switch'] = true;

blocks[99] = {} //Internal Temperature
blocks[99]['width'] = 12;
blocks[99]['title'] = 'RPi Temp'
blocks[99]['image'] = 'raspberry_pi.png';
blocks[99]['switch'] = true;

blocks[96] = {} //Memory Usage
blocks[96]['width'] = 12;
blocks[96]['title'] = 'RPi MEM'
blocks[96]['image'] = 'raspberry_pi.png';
blocks[96]['switch'] = true;

blocks[98] = {} //HDD
blocks[98]['width'] = 12;
blocks[98]['title'] = 'RPi HDD'
blocks[98]['image'] = 'raspberry_pi.png';
blocks[98]['switch'] = true;

blocks[124] = {} //Stroom
blocks[124]['width'] = 12;
blocks[124]['switch'] = true;

blocks[125] = {} //Gas
blocks[125]['width'] = 12;
blocks[125]['switch'] = true;

var columns = {}
columns[1] = {}
columns[1]['blocks'] = [49,7,5,17,18,19,56,76,280,'spotify']
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['currentweather_big','weather',8,9,15,'garbage',11,calendars.private,publictransport.ovinfo]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise','streamplayer',buttons.webcam,buttons.buienradar]
columns[3]['width'] = 2;

columns[4] = {}
columns[4]['blocks'] = [100,99,96,98,124,125]
columns[4]['width'] = 2;

columns[5] = {}
columns[5]['blocks'] = ['graph_124','graph_125']
columns[5]['width'] = 10;

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]
The error is in the line:

Code: Select all

buttons.nunl = {key: 'nunl'  width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
You forgot the , behind key: 'nunl' ;)
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3

User avatar
mlamie
Posts: 153
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Dashticz - General Discussions

Post by mlamie » Friday 26 January 2018 14:16

DewGew wrote:
Friday 26 January 2018 13:58

Code: Select all

blocks[5]['speaksOff'] = 'Device is off';
is wrong
Must be blocks[5]['speakOff']
Thanks, (copy paste issue) will update the wiki page as well, but it didn't do the trick :roll:

If i disable the CONFIG.js with /* and */ the default page load will work.
Raspberry Pi 3, RaZberry, RFXtrx433
Various Z-Wave devices, KlikAanKlikUit devices, ESP8266 NodeMCU, Sonoff POW and a Essent E-thermostaat
IP camera: Dahua 4MP IPC-HDBW4421R-AS, Vivotek FD8134V

User avatar
mlamie
Posts: 153
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Dashticz - General Discussions

Post by mlamie » Friday 26 January 2018 14:22

htilburgs wrote:
Friday 26 January 2018 14:04

The error is in the line:

Code: Select all

buttons.nunl = {key: 'nunl'  width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
You forgot the , behind key: 'nunl' ;)
That was the issue, my mistake. THANKS!!!
P.s. how did you manage to find it?
Raspberry Pi 3, RaZberry, RFXtrx433
Various Z-Wave devices, KlikAanKlikUit devices, ESP8266 NodeMCU, Sonoff POW and a Essent E-thermostaat
IP camera: Dahua 4MP IPC-HDBW4421R-AS, Vivotek FD8134V

User avatar
htilburgs
Posts: 509
Joined: Tuesday 03 November 2015 12:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by htilburgs » Friday 26 January 2018 14:26

I loaded your CONFIG.js and took it appart. So first the config -> working, then config with var calendars{} -> working, and so on, until you got to the part where it's not Ok anymore. Than take a look at that part and find the error. (Took me for about 5 minutes...;))
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3

Mads
Posts: 31
Joined: Thursday 18 January 2018 21:57
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Mads » Friday 26 January 2018 19:53

CaesarPL wrote:
Friday 26 January 2018 12:24
1. First thing:
Spoiler: show

Code: Select all

config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['idx_moonpicture'] = 7;
In idx_moonpicture put your IDX of user variable

2. Define buttons:
Spoiler: show

Code: Select all

var buttons = {} 
buttons.moon = {width:6, isimage:true, refreshimage:60000, image: 'moon'}
3. Put in column:
Spoiler: show

Code: Select all

columns[1] = {} 
columns[1]['blocks'] = [buttons.moon];
columns[1]['width'] = 3;
4. Put on screen:
Spoiler: show

Code: Select all

screens[1] = {}
screens[1]['columns'] = [1];
thx that worked.. funny thats isnt default when you outqoute the */

another thing. My blocks will not show up, when i connect outside my local network. Is that a known thing?

whatisk
Posts: 25
Joined: Sunday 15 October 2017 6:13
Target OS: Linux
Domoticz version: 3.9224
Location: Australia
Contact:

Default Dashboard Code

Post by whatisk » Saturday 27 January 2018 7:30

I have just started playing around with Dashticz and only now realised that initially the CONFIG.js file is entirely commented out.

Even though that was commented out, Dashticz still produced a dashboard showing the switches, etc that I have on the default Domoticz dashboard as well as weather forecast (I configured items through the settings cog at the top right). I was wondering if there is a file somewhere that this is being configured from. Ideally I would like to use it as the template and modify from there. When I did remove the comments from the CONFIG.js file the Dashticz dashboard obviously completely changed.

Thanks!

whatisk
Posts: 25
Joined: Sunday 15 October 2017 6:13
Target OS: Linux
Domoticz version: 3.9224
Location: Australia
Contact:

Re: Default Dashboard Code

Post by whatisk » Saturday 27 January 2018 9:57

Okay, I have looked at a few examples and gotten a Dashboard going using the uncommented CONFIG.JS

I also discovered that the 'use favourites' does not do what I thought. I didn't realise it would restrict what I can have on the dashboard to only what is in my favourites list.

Been a steep learning curve but I'm getting there :)

User avatar
htilburgs
Posts: 509
Joined: Tuesday 03 November 2015 12:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by htilburgs » Monday 29 January 2018 22:49

Mads wrote:
Friday 26 January 2018 19:53
CaesarPL wrote:
Friday 26 January 2018 12:24
1. First thing:
Spoiler: show

Code: Select all

config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['idx_moonpicture'] = 7;
In idx_moonpicture put your IDX of user variable

2. Define buttons:
Spoiler: show

Code: Select all

var buttons = {} 
buttons.moon = {width:6, isimage:true, refreshimage:60000, image: 'moon'}
3. Put in column:
Spoiler: show

Code: Select all

columns[1] = {} 
columns[1]['blocks'] = [buttons.moon];
columns[1]['width'] = 3;
4. Put on screen:
Spoiler: show

Code: Select all

screens[1] = {}
screens[1]['columns'] = [1];
thx that worked.. funny thats isnt default when you outqoute the */

another thing. My blocks will not show up, when i connect outside my local network. Is that a known thing?
You’re outside your network and your config.js points to you’re internal IP address. That’s why.

Use custom_2 to make an external view in combination with index2.html. Is it wise to publish to rhe outside? I don’t think so.
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3

tlkg
Posts: 5
Joined: Sunday 14 January 2018 23:17
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz - Defined Buttons for screen navigation

Post by tlkg » Tuesday 30 January 2018 1:07

I have scanned the forum for a way to create a button to navigate to different defined screens, but didn't find any solutions.

I want to create various buttons on screen 1, that when pressed would go to a specific defined screen number. These buttons would be labeled as to the content of given screen and allow the user not have to use the bottom slider to advance to each screen separately.

thanks

User avatar
DewGew
Posts: 254
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V4.9741
Location: Sweden
Contact:

Re: Dashticz - Defined Buttons for screen navigation

Post by DewGew » Tuesday 30 January 2018 9:00

tlkg wrote:
Tuesday 30 January 2018 1:07
I have scanned the forum for a way to create a button to navigate to different defined screens, but didn't find any solutions.

I want to create various buttons on screen 1, that when pressed would go to a specific defined screen number. These buttons would be labeled as to the content of given screen and allow the user not have to use the bottom slider to advance to each screen separately.

thanks
You can use:

Code: Select all

buttons.screen2 = {width:12, icon:'fa-chevron-right', title: 'Page 2', slide:2};
buttons.screen3 = {width:12, icon:'fa-chevron-right', title: 'Page 3', slide:3};
Then add:

Code: Select all

columns[3] = {};
columns[3]['blocks'] = [ buttons.screen2];
 
columns[6] = {}; 
columns[6]['blocks'] = [ buttons.screen3];
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface
Dashticz V2 - Homebridge

tlkg
Posts: 5
Joined: Sunday 14 January 2018 23:17
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by tlkg » Tuesday 30 January 2018 16:25

Wow, works perfect !! Thanks!!

marcel19
Posts: 15
Joined: Sunday 08 January 2017 10:20
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by marcel19 » Thursday 01 February 2018 8:29

Hi Everyone,

I have been busy with domoticz for some time and wanted to expand this with dashticz.
Reason: to place a tablet on the wall for extra functions.

Now I have installed dashticz following the wiki page: https://www.domoticz.com/wiki/Dashticz_ ... stallation
I used the following command to install it:
git clone https://github.com/robgeerts/dashticz_v2 dashticz

Then everything followed neatly as on the wiki page are also neatly removed the / * at the beginning and * / at the end + ipaddress of my domoticz inserted. Only I do not get a connection with domoticz, if I want to adjust on the page of dashricz and I choose to save, nothing is stored.
Hopefully someone can help me in the right direction.

Below the complete file: CONFIG.js
Spoiler: show
var config = {}
config['language'] = 'nl_NL';
config['domoticz_ip'] = 'http://USERNAME:PASSWORD@192.168.1.5:8080';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT

var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'son-en-breugel/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', width:5, results: 6 }

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:7, channels: [1,3,4,31,46,92], maxitems: 5 }

var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/ ... ive_96.mp3"},
{"track":2,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];


var buttons = {}
buttons.nunl = {key: 'nunl', width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.nos = {key: 'nos', width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}


var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['key'] = 'blocktitle_1';
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Example';


var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

columns[1] = {}
columns[1]['blocks'] = ['currentweather_big','weather','garbage']
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1',tvguide.dutch,publictransport.ovinfobus]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['sunrise','streamplayer',buttons.nunl,buttons.nos]
columns[3]['width'] = 2;

var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','weather']
columns_standby[1]['width'] = 12;
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg2.jpg';
screens[1]['columns'] = [1,2,3]

User avatar
DewGew
Posts: 254
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V4.9741
Location: Sweden
Contact:

Re: Dashticz - General Discussions

Post by DewGew » Thursday 01 February 2018 9:28

marcel19 wrote:
Thursday 01 February 2018 8:29
Hi Everyone,

I have been busy with domoticz for some time and wanted to expand this with dashticz.
Reason: to place a tablet on the wall for extra functions.

Now I have installed dashticz following the wiki page: https://www.domoticz.com/wiki/Dashticz_ ... stallation
I used the following command to install it:
git clone https://github.com/robgeerts/dashticz_v2 dashticz

Then everything followed neatly as on the wiki page are also neatly removed the / * at the beginning and * / at the end + ipaddress of my domoticz inserted. Only I do not get a connection with domoticz, if I want to adjust on the page of dashricz and I choose to save, nothing is stored.
Hopefully someone can help me in the right direction.

Below the complete file: CONFIG.js
Spoiler: show
var config = {}
config['language'] = 'nl_NL';
config['domoticz_ip'] = 'http://USERNAME:PASSWORD@192.168.1.5:8080';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT

var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'son-en-breugel/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', width:5, results: 6 }

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:7, channels: [1,3,4,31,46,92], maxitems: 5 }

var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/ ... ive_96.mp3"},
{"track":2,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];


var buttons = {}
buttons.nunl = {key: 'nunl', width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.nos = {key: 'nos', width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}


var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['key'] = 'blocktitle_1';
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Example';


var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

columns[1] = {}
columns[1]['blocks'] = ['currentweather_big','weather','garbage']
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1',tvguide.dutch,publictransport.ovinfobus]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['sunrise','streamplayer',buttons.nunl,buttons.nos]
columns[3]['width'] = 2;

var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','weather']
columns_standby[1]['width'] = 12;
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg2.jpg';
screens[1]['columns'] = [1,2,3]
Garbage module is changed read in garbage thread here in forum. Delete:

Code: Select all

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT
Now you can connect to dashticz.
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface
Dashticz V2 - Homebridge

marcel19
Posts: 15
Joined: Sunday 08 January 2017 10:20
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by marcel19 » Thursday 01 February 2018 10:48

DewGew wrote:
Thursday 01 February 2018 9:28
marcel19 wrote:
Thursday 01 February 2018 8:29
Hi Everyone,

I have been busy with domoticz for some time and wanted to expand this with dashticz.
Reason: to place a tablet on the wall for extra functions.

Now I have installed dashticz following the wiki page: https://www.domoticz.com/wiki/Dashticz_ ... stallation
I used the following command to install it:
git clone https://github.com/robgeerts/dashticz_v2 dashticz

Then everything followed neatly as on the wiki page are also neatly removed the / * at the beginning and * / at the end + ipaddress of my domoticz inserted. Only I do not get a connection with domoticz, if I want to adjust on the page of dashricz and I choose to save, nothing is stored.
Hopefully someone can help me in the right direction.

Below the complete file: CONFIG.js
Spoiler: show
var config = {}
config['language'] = 'nl_NL';
config['domoticz_ip'] = 'http://USERNAME:PASSWORD@192.168.1.5:8080';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT

var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'son-en-breugel/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', width:5, results: 6 }

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:7, channels: [1,3,4,31,46,92], maxitems: 5 }

var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/ ... ive_96.mp3"},
{"track":2,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];


var buttons = {}
buttons.nunl = {key: 'nunl', width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.nos = {key: 'nos', width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}


var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['key'] = 'blocktitle_1';
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Example';


var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

columns[1] = {}
columns[1]['blocks'] = ['currentweather_big','weather','garbage']
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1',tvguide.dutch,publictransport.ovinfobus]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['sunrise','streamplayer',buttons.nunl,buttons.nos]
columns[3]['width'] = 2;

var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','weather']
columns_standby[1]['width'] = 12;
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg2.jpg';
screens[1]['columns'] = [1,2,3]
Garbage module is changed read in garbage thread here in forum. Delete:

Code: Select all

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT
Now you can connect to dashticz.


Like i said i can connect to dashticz, everything is working. but when i make a change in the dashticz dashboard like changing the refresh time from dashticz from 60 to 1. when i hit apply and refresh the page. everything is reset to 60 minuts.

User avatar
DewGew
Posts: 254
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V4.9741
Location: Sweden
Contact:

Re: Dashticz - General Discussions

Post by DewGew » Thursday 01 February 2018 11:13

marcel19 wrote:
Thursday 01 February 2018 10:48
DewGew wrote:
Thursday 01 February 2018 9:28
marcel19 wrote:
Thursday 01 February 2018 8:29
Hi Everyone,

I have been busy with domoticz for some time and wanted to expand this with dashticz.
Reason: to place a tablet on the wall for extra functions.

Now I have installed dashticz following the wiki page: https://www.domoticz.com/wiki/Dashticz_ ... stallation
I used the following command to install it:
git clone https://github.com/robgeerts/dashticz_v2 dashticz

Then everything followed neatly as on the wiki page are also neatly removed the / * at the beginning and * / at the end + ipaddress of my domoticz inserted. Only I do not get a connection with domoticz, if I want to adjust on the page of dashricz and I choose to save, nothing is stored.
Hopefully someone can help me in the right direction.

Below the complete file: CONFIG.js
Spoiler: show
var config = {}
config['language'] = 'nl_NL';
config['domoticz_ip'] = 'http://USERNAME:PASSWORD@192.168.1.5:8080';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT

var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'son-en-breugel/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', width:5, results: 6 }

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:7, channels: [1,3,4,31,46,92], maxitems: 5 }

var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/ ... ive_96.mp3"},
{"track":2,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];


var buttons = {}
buttons.nunl = {key: 'nunl', width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.nos = {key: 'nos', width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}


var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['key'] = 'blocktitle_1';
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Example';


var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

columns[1] = {}
columns[1]['blocks'] = ['currentweather_big','weather','garbage']
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1',tvguide.dutch,publictransport.ovinfobus]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['sunrise','streamplayer',buttons.nunl,buttons.nos]
columns[3]['width'] = 2;

var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','weather']
columns_standby[1]['width'] = 12;
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg2.jpg';
screens[1]['columns'] = [1,2,3]
Garbage module is changed read in garbage thread here in forum. Delete:

Code: Select all

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT
Now you can connect to dashticz.


Like i said i can connect to dashticz, everything is working. but when i make a change in the dashticz dashboard like changing the refresh time from dashticz from 60 to 1. when i hit apply and refresh the page. everything is reset to 60 minuts.
You mean to use the setting popup?.. you need to have PHP enabled webserver to save to CONFIG.js or if you want save settings to local storage in your browser your CONFIG.js can look like this or comment out everything in your config.js:

Code: Select all

/*
var config = {}
config['domoticz_ip'] = 'http://192.168.1.3:8084';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
*/
Else you have to put everything by your self in your CONFIG.js.
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface
Dashticz V2 - Homebridge

marcel19
Posts: 15
Joined: Sunday 08 January 2017 10:20
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by marcel19 » Thursday 01 February 2018 11:58

DewGew wrote:
Thursday 01 February 2018 11:13
marcel19 wrote:
Thursday 01 February 2018 10:48
DewGew wrote:
Thursday 01 February 2018 9:28

Garbage module is changed read in garbage thread here in forum. Delete:

Code: Select all

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT
Now you can connect to dashticz.


Like i said i can connect to dashticz, everything is working. but when i make a change in the dashticz dashboard like changing the refresh time from dashticz from 60 to 1. when i hit apply and refresh the page. everything is reset to 60 minuts.
You mean to use the setting popup?.. you need to have PHP enabled webserver to save to CONFIG.js or if you want save settings to local storage in your browser your CONFIG.js can look like this or comment out everything in your config.js:

Code: Select all

/*
var config = {}
config['domoticz_ip'] = 'http://192.168.1.3:8084';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
*/
Else you have to put everything by your self in your CONFIG.js.

Ok perfect so now i understand. i dont mind to edit the CONFIG.js file at all. i diddent know that the CONFIG.js overwrites the gui interface.
So i understand that when i want to edit it trough the GUI i need to set /* on the top and */ at the end of the CONFIG.js file.

When i do that all my favorites are available trough dashticz, but when i go to edit mode, and try to save the button is the right-bottom corner is not working. (and yes i have php installed)

User avatar
DewGew
Posts: 254
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V4.9741
Location: Sweden
Contact:

Re: Dashticz - General Discussions

Post by DewGew » Thursday 01 February 2018 12:31

Edit mode for blocks is not yet finished its under development.
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface
Dashticz V2 - Homebridge

marcel19
Posts: 15
Joined: Sunday 08 January 2017 10:20
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by marcel19 » Thursday 01 February 2018 17:10

DewGew wrote:
Thursday 01 February 2018 12:31
Edit mode for blocks is not yet finished its under development.
Wat is the best page to learn to work with the configs of dashticz?
i'm completly new to this but i really want to learn to understand this.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests