Way to make life easier

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Way to make life easier

Post by poudenes »

Hi ALl,

Is there a way where you can assign variable to a IDX in top of CONFIG.js?
Then use the nice name in the script. When a IDX change then you only change 1 place

$dressoir = '782'

blocks[$dressoir] = { width: 3, title: 'Dressoir' };

EDIT: Already find out it will work :D

Now look for a way to store all the $values into a separate file and import/include that one in CONFIG.js :)
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Way to make life easier

Post by EdwinK »

And, did you find a way to do that ;)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
HansieNL
Posts: 969
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Way to make life easier

Post by HansieNL »

Maybe you can post your question in feature Requests viewtopic.php?f=67&t=17424
Blah blah blah
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest