Dashticz - Module - Settings

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

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

Dashticz - Module - Settings

Post by robgeerts »

BACKUP YOUR CUSTOM-FOLDER (CUSTOM.CSS, CUSTOM.JS AND CONFIG.JS)

Image

In latest beta you can find a settings popup (setting icon can be found on the right top).
Most of the variables (starting with 'var _', e.g. 'var __STANDBY_AFTER_MINUTES') in config.js you can remove (but first copy them to the settings screen ;) )

If you still want to use config.js, there's an option to copy code (you'll get it after you save settings) you can paste into CONFIG.JS.
BACKUP YOUR CONFIG.JS!

Please report if a setting doesnt work correctly.
Special thanks to @jonb !

If it does not work try adding the following configuration to config.js and change according your needs:

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';
config['default_news_url'] = '';
config['news_scroll_after'] = '7';
config['standby_after'] = 0;
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'] = 0;
config['boss_stationclock'] = 'RedBoss';
config['gm_api'] = 'AIzaSyD9fNWJVBKWzJwwPiovjDYabTFc0n22AAw';
config['gm_zoomlevel'] = 0;
config['gm_latitude'] = 0;
config['gm_longitude'] = 0;
config['wu_api'] = 'a14940b730424939';
config['wu_city'] = 'Eindhoven';
config['wu_name'] = '';
config['wu_country'] = 'NL';
config['idx_moonpicture'] = 0;
config['switch_horizon'] = 0;
config['host_nzbget'] = 'http://192.168.1.3:6789';
config['spot_clientid'] = '1112f16564cf4f4d93ccbe8b52c58a44';
config['selector_instead_of_buttons'] = 0;
config['auto_positioning'] = 1;
config['use_favorites'] = 1;
config['last_update'] = 1;
config['hide_topbar'] = 0;
config['hide_seconds'] = 0;
config['hide_seconds_stationclock'] = 0;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 0;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 1;
config['hide_mediaplayer'] = 0;
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 - [BETA]Module - Settings

Post by EdwinK »

Trying.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
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 - [BETA]Module - Settings

Post by EdwinK »

Although using the settings to not show last update, it still does show them.

The (?) buttons don't give anything at all.
Screen Shot 2017-07-23 at 23.24.45.png
Screen Shot 2017-07-23 at 23.24.45.png (158.01 KiB) Viewed 6492 times
Last edited by EdwinK on Sunday 23 July 2017 23:27, edited 2 times in total.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
blacksn0w
Posts: 99
Joined: Friday 10 March 2017 22:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by blacksn0w »

This function isn't optional, isn't it?
Since this is using LocalStorage, i would have to save my settings on every device i'm using Dashticz one. So if there is a change to make, every device have to be updated.
Or is there anything i've overlooked? Prefered the "old" method with the config file, simple and at one place.
Migration done, hello Home Assistant.
Martijn85
Posts: 53
Joined: Wednesday 20 January 2016 20:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by Martijn85 »

1 Last update keeps showing afther turning it off.
2 When you hide the top bar, how can i turn this back on?
3 Moon picture is now showing anymore.
4 Trafficamap is not showing anymore
5 Weather is nog showing anymore.
6 When i delete my browser cache everything default again, no config is loading.


When i fill in the API keys etc. 3, 4 and 5 are working again. But when the browser cache is deleted (6) you must fill in al the settings again? I would be nice to load the settings from your config.js so you don`t have to fill them every time.
Last edited by Martijn85 on Sunday 23 July 2017 23:52, edited 5 times in total.
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 - [BETA]Module - Settings

Post by EdwinK »

To get the topbar back, you can place the 'settings' in one of the columns. Then in settings just turn topbar on again. :)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by remb0 »

great job. Not finished yet but totally more user friendly then a config file.

I hope it would be easy for you to add all extra's like garbage/tvgids enz.
picture loader, and the most important and difficult part the editor of modules/columns and blocks.

But you are totally on the right track! thanks for that.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by robgeerts »

Martijn85 wrote:1 Last update keeps showing afther turning it off.
Fixed in latest update!
Martijn85 wrote: But when the browser cache is deleted (6) you must fill in al the settings again? I would be nice to load the settings from your config.js so you don`t have to fill them every time.
blacksn0w wrote:This function isn't optional, isn't it?
Since this is using LocalStorage, i would have to save my settings on every device i'm using Dashticz one. So if there is a change to make, every device have to be updated.
Or is there anything i've overlooked? Prefered the "old" method with the config file, simple and at one place.
Yes, I'm aware of this.
The benefit of using local storage is you can use the same dashticz-installation with different settings on multiple devices.
The downside is, indeed, you have to fill in the settings again after cleaning your cache. I will find a solution for this!
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by robgeerts »

remb0 wrote:great job. Not finished yet but totally more user friendly then a config file.

I hope it would be easy for you to add all extra's like garbage/tvgids enz.
picture loader, and the most important and difficult part the editor of modules/columns and blocks.

But you are totally on the right track! thanks for that.
Thanks, regarding the blocks, I'm working on drag and drop..
(But is a lot of work ;))
garethhowell
Posts: 115
Joined: Tuesday 17 November 2015 21:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9317
Location: St Neots, UK
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by garethhowell »

+1 for not using LocalStorage. This reduces user friendliness to just above zero. There's no way I'll keep settings in sync across multiple devices.

Also, it knocks out being able to access Dashticz from a public computer via my reverse proxy.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by robgeerts »

Will fix this asap!
What do you people think of saving the settings to Domoticz instead of LocalStorage?
This way, settings will be used across all devices while you dont need to edit config.js for every single setting ;)
garethhowell
Posts: 115
Joined: Tuesday 17 November 2015 21:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9317
Location: St Neots, UK
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by garethhowell »

Thanks, Rob, I really appreciate the responsiveness.

personally, I'd support storage on the server. I can't see a Use Case for having different settings on client devices: certainly not for core settings like the address of the Domoticz server. Also, currently the API keys are exposed: which may be a security problem.
Onrust
Posts: 37
Joined: Saturday 24 June 2017 10:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by Onrust »

I do not prefer local storage. Rather have it the way it was before.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by robgeerts »

garethhowell wrote:I'm not seeing anything at the moment. Just a blank screen.
Looks like CONFIG_DEFAULT.js has been zapped as well. It now looks like it should really be custom.js
This was a bug when no domoticz path was set, this is fixed for new installs...
(Not that you need this but other people will..)
blacksn0w
Posts: 99
Joined: Friday 10 March 2017 22:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by blacksn0w »

robgeerts wrote:Will fix this asap!
What do you people think of saving the settings to Domoticz instead of LocalStorage?
This way, settings will be used across all devices while you dont need to edit config.js for every single setting ;)
That would be better.
Just offer at the first start of Dashticz or at the first click on settings the selection of the place were settings are/should be stored.
[*]Local Storage
[*]Domoticz

When Domoticz is selected, ask for Link (and maybe user&pass) and use it, maybe with custom variables, to configurate Dashticz.

With this solution you would only have to fill in your domoticz credentials and get your fully configured Dashticz.
Migration done, hello Home Assistant.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA]Module - Settings

Post by robgeerts »

Currently, I've made a fix you can use both config.js and LocalStorage.
If you save settings via popup, you get the code you can paste into config.js if you want.
(NOT YET IN BETA!)
Mozart
Posts: 39
Joined: Monday 19 January 2015 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz - [BETA]Module - Settings - VERSION 2

Post by Mozart »

I just updated with the latest beta code. After entering my settings in the settings wizard I get the popup with the stuff that I could put in CONFIG.js but I'm not able to select the code and copy it :( I'm using Microsoft Edge by the way.

With a trick I was able to get the settings to OneNote and from there was able to copy it to my CONFIG.js. Next problem, the screen stays black :( I tried it with Microsoft Edge and with Safari on an iPad. Also Microsoft IE11 was not able to give me a page that shows my dashboard. My CONFIG.js looks like this at the moment:

Code: Select all

var config = {}
config['domoticz_ip'] = 'http://domo.home.intra: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'] = 0; 
config['auto_swipe_back_to'] = 0; 
config['auto_swipe_back_after'] = 0; 
config['auto_slide_pages'] = '20'; 
config['slide_effect'] = 'slide'; 
config['language'] = 'nl_NL'; 
config['timeformat'] = 'DD-MM-YY HH:mm'; 
config['calendarformat'] = 'dd DD.MM HH:mm'; 
config['calendarlanguage'] = 'nl_NL'; 
config['calendarurl'] = 0; 
config['boss_stationclock'] = 'RedBoss'; 
config['gm_api'] = 0; 
config['gm_zoomlevel'] = 0; 
config['gm_latitude'] = 0; 
config['gm_longitude'] = 0; 
config['wu_api'] = '*******************'; 
config['wu_city'] = 'Ommen'; 
config['wu_name'] = 0; 
config['wu_country'] = 'NL';
config['idx_moonpicture'] = '21'; 
config['switch_horizon'] = 0; 
config['host_nzbget'] = 0; 
config['spot_clientid'] = 0; 
config['selector_instead_of_buttons'] = 0; 
config['auto_positioning'] = 1; 
config['use_favorites'] = 1; 
config['last_update'] = 1; 
config['hide_topbar'] = 0; 
config['hide_seconds'] = 0; 
config['hide_seconds_stationclock'] = 0; 
config['use_fahrenheit'] = 0; 
config['use_beaufort'] = 0; 
config['translate_windspeed'] = 1; 
config['static_weathericons'] = 0; 
config['hide_mediaplayer'] = 0; 


var buttons = {}
buttons.buienradar = { width: 12, isimage: true, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256' }
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' }
buttons.moon = { width: 6, isimage: true, refreshimage: 60000, image: 'moon' }
buttons.webcam1 = { width: 6, isimage: true, refreshimage: 5000, refreshurl: 5000, image: 'http://domo.home.intra:8080/camsnapshot.jpg?idx=1' }
buttons.webcam2 = { width: 6, isimage: true, refreshimage: 5000, refreshurl: 5000, image: 'http://domo.home.intra:8080/camsnapshot.jpg?idx=2' }
buttons.webcam3 = { width: 6, isimage: true, refreshimage: 5000, refreshurl: 5000, image: 'http://domo.home.intra:8080/camsnapshot.jpg?idx=3' }

var blocks = {}

blocks['blocktitle_10'] = {}
blocks['blocktitle_10']['type'] = 'blocktitle';
blocks['blocktitle_10']['title'] = 'Weersverwachting';

blocks['blocktitle_20'] = {}
blocks['blocktitle_20']['type'] = 'blocktitle';
blocks['blocktitle_20']['title'] = 'Binnen';

blocks['blocktitle_25'] = {}
blocks['blocktitle_25']['type'] = 'blocktitle';
blocks['blocktitle_25']['title'] = 'Buiten';


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


blocks[113] = {}
blocks[113]['title'] = 'Kamer';
blocks[113]['width'] = 6;

blocks[12] = {}
blocks[12]['width'] = 6;

blocks[177] = {}
blocks[177]['width'] = 6;

blocks[171] = {}
blocks[171]['width'] = 6;

blocks[166] = {}
blocks[166]['width'] = 6;

blocks[27] = {}
blocks[27]['width'] = 6;

blocks[31] = {}
blocks[31]['width'] = 6;

blocks['s2'] = {}
blocks['s2']['width'] = 6;

blocks[30] = {}
blocks[30]['width'] = 6;
blocks[30]['icon'] = 'fa-bed';


var columns = {}
columns[1] = {}
columns[1]['blocks'] = ['graph_10', 14, 13, 10, 39, 40, 41, 121, 115]
columns[1]['width'] = 5;
columns[2] = {}
columns[2]['blocks'] = ['blocktitle_10', 'weather', buttons.webcam1, buttons.webcam2, buttons.webcam3]
columns[2]['width'] = 6;
columns[3] = {}
columns[3]['blocks'] = ['clock', 'sunrise', buttons.buienradar]
columns[3]['width'] = 6;

columns[10] = {}
columns[10]['blocks'] = ['blocktitle_25', 166, 'blocktitle_20', 113, 12, 177, 171]
columns[10]['width'] = 6;

columns[20] = {}
columns[20]['blocks'] = ['clock', 'sunrise', buttons.moon]
columns[20]['width'] = 6;

columns[30] = {}
columns[30]['blocks'] = ['blocktitle_30', 27, 31, 's2', 30]
columns[30]['width'] = 6;

var screens = {}
screens[10] = {}
    //screens[10]['background_morning'] = 'day_y.jpg';
    //screens[10]['background_noon'] = 'day_y.jpg';
    //screens[10]['background_afternoon'] = 'day_y.jpg';
    //screens[10]['background_night'] = 'night_y.jpg';
screens[10]['columns'] = [2, 3];

screens[20] = {}
    //screens[20]['background_morning'] = 'day_y.jpg';
    //screens[20]['background_noon'] = 'day_y.jpg';
    //screens[20]['background_afternoon'] = 'day_y.jpg';
    //screens[20]['background_night'] = 'night_y.jpg';
screens[20]['columns'] = [10, 20];

screens[30] = {}
    //screens[30]['background_morning'] = 'day_y.jpg';
    //screens[30]['background_noon'] = 'day_y.jpg';
    //screens[30]['background_afternoon'] = 'day_y.jpg';
    //screens[30]['background_night'] = 'night_y.jpg';
screens[30]['columns'] = [30, 20];

If I use the F12 in Edge I can see that the page loaded, switching to the 'Debugger' tab shows under 'Local Storage' the settings that I want.
debugger.png
debugger.png (63.96 KiB) Viewed 6212 times
Raspberry 3
Aeon Labs Z-Wave Stick Series 2 - RFLink USB Gateway
Z-Wave switches
433 MHz Temperature + Humidity sensors
Philips Hue Lights
Mi-Light WiFi Bridge + RGBW Controllers
benbammens
Posts: 29
Joined: Tuesday 30 May 2017 19:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - [BETA]Module - Settings - VERSION 2

Post by benbammens »

I've also just updated to the beta version and although I saved and copied my custom files, the screen stays black here too... Only the top bar is visible but non of my old graphs or buttons...

Edit: using Chrome 59.0.3071.115 on Windows 10 btw.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA]Module - Settings - VERSION 2

Post by robgeerts »

First, it still saves some variables in LocalStorage but they are only used when they cannot be found in CONFIG.JS
Second, could I fix this on your pc with Teamviewer? This way I can find bugs and fix them...
Mozart
Posts: 39
Joined: Monday 19 January 2015 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz - [BETA]Module - Settings - VERSION 2

Post by Mozart »

robgeerts wrote:First, it still saves some variables in LocalStorage but they are only used when they cannot be found in CONFIG.JS
Second, could I fix this on your pc with Teamviewer? This way I can find bugs and fix them...
We can do that. When?
Raspberry 3
Aeon Labs Z-Wave Stick Series 2 - RFLink USB Gateway
Z-Wave switches
433 MHz Temperature + Humidity sensors
Philips Hue Lights
Mi-Light WiFi Bridge + RGBW Controllers
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest