Dashticz - Save CONFIG.js automatically with PHP
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 1273
- Joined: Saturday 24 January 2015 22:12
- Target OS: NAS (Synology & others)
- Domoticz version: 3.7067
- Location: NL
- Contact:
Dashticz - Save CONFIG.js automatically with PHP
In latest BETA-version, the config will be saved automatically to CONFIG.js with PHP.
Please backup your config.js
Make sure your CONFIG.js is writable.
If it doesnt save the file, you will still get the screen where you can copy the config!
Please backup your config.js
Make sure your CONFIG.js is writable.
If it doesnt save the file, you will still get the screen where you can copy the config!
-
- Posts: 130
- Joined: Monday 31 October 2016 19:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Netherlands
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
Wow, nice work. Going to try it in a moment. You had a good vacation?
Just tested:
1) When clicking the settings icon and clicking save it saves so this is good
2) When going into EDIT mode my changes aren`t save to the config file and still have to this manually
Just tested:
1) When clicking the settings icon and clicking save it saves so this is good
2) When going into EDIT mode my changes aren`t save to the config file and still have to this manually
Hardware
1x Raspberry Pi
1x Razberry Z-Wave
1x RFXtrx433E
1x Toon
1x GoodWe Solarpanels
2x FGSD-002 Smoke Detector
1x FGBS-001 Binaire Sensor (RFID lezer)
7x FGMS-001 Motion Sensor
3x ZW089 Verzonken Deursensor
7x NC Wallplug
&lots of KaKu stuff
1x Raspberry Pi
1x Razberry Z-Wave
1x RFXtrx433E
1x Toon
1x GoodWe Solarpanels
2x FGSD-002 Smoke Detector
1x FGBS-001 Binaire Sensor (RFID lezer)
7x FGMS-001 Motion Sensor
3x ZW089 Verzonken Deursensor
7x NC Wallplug
&lots of KaKu stuff
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
It doesn't seem to save. If I change anything in settings and click 'save', the page refreshes, but no changes visible. I do believe I have PHP enabled on the webserver.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
-
- Posts: 1273
- Joined: Saturday 24 January 2015 22:12
- Target OS: NAS (Synology & others)
- Domoticz version: 3.7067
- Location: NL
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
You do believe or are you sure?
And is the file writable (chmod)
And is the file writable (chmod)
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
Nice job, did a quick test by changing the dashboard title, that works.
Changing contents of the dashboard by f.e. adding a clock is not saved (beta version downloaded today ("Latest commit 957b89e 2 days ago"))
I started from default installation with only the correct IP set. After the first test I also tried to change config['auto_positioning'] to 0 (was on 1 before), but that also did not solve the issue. Will it be possible to switch auto_positioning from the web-config-interface in the future?
(for users with issues, I'm running Dashticz on my Synology nas, made the file write-able for the 'http' user by right clicking on the file in 'File Station')
Changing contents of the dashboard by f.e. adding a clock is not saved (beta version downloaded today ("Latest commit 957b89e 2 days ago"))
I started from default installation with only the correct IP set. After the first test I also tried to change config['auto_positioning'] to 0 (was on 1 before), but that also did not solve the issue. Will it be possible to switch auto_positioning from the web-config-interface in the future?
(for users with issues, I'm running Dashticz on my Synology nas, made the file write-able for the 'http' user by right clicking on the file in 'File Station')
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
You mean, like this?
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
Yes, hope it helps you. Can you change the dashboard title now?
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
Nope. Tried, but nothing changes.
Maybe it's the PHP version I'm using. It's 5.6 (if I'm not mistaken) on Synology.
Maybe it's the PHP version I'm using. It's 5.6 (if I'm not mistaken) on Synology.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
It does seem to change the config.js file, but doesn't show when page is reloaded. Something to figure out next time.
Reading through the config.js file, it looks like all config blocks are there at least twice (last count 5 times, because I tried it several times), one with the new settings, and below that are the old settings. So, first the title is defined as Control-Center, but... in the second (old) part the title is defined as ControlCenter. I think the latest read by the browser is what it is going to use for the page.
Reading through the config.js file, it looks like all config blocks are there at least twice (last count 5 times, because I tried it several times), one with the new settings, and below that are the old settings. So, first the title is defined as Control-Center, but... in the second (old) part the title is defined as ControlCenter. I think the latest read by the browser is what it is going to use for the page.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
Code: Select all
//var _EDIT_MODE = true;
var config = {}
config['domoticz_ip'] = 'http://192.168.0.10:8084';
config['app_title'] = 'ControlCenter';
config['domoticz_refresh'] = '15';
config['dashticz_refresh'] = '60';
config['default_news_url'] = 'http://www.nu.nl/rss/algemeen';
config['news_scroll_after'] = 7;
config['standby_after'] = 'false';
config['auto_swipe_back_to'] = 1;
config['auto_swipe_back_after'] = 0;
config['auto_slide_pages'] = 0;
config['slide_effect'] = 'slide';
config['standard_graph'] = 'day';
config['language'] = 'nl_NL';
config['timeformat'] = 'YY-MM-DD HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['calendarurl'] = 0;
config['boss_stationclock'] = 'RedBoss';
config['gm_api'] = 'SECRET';
config['gm_zoomlevel'] = '11';
config['gm_latitude'] = '51.860067';
config['gm_longitude'] = '4.412692';
config['wu_api'] = '17318c1fc1678195';
config['wu_city'] = 'Rhoon';
config['wu_name'] = 0;
config['wu_country'] = 'NL';
config['idx_moonpicture'] = 1;
config['switch_horizon'] = 0;
config['host_nzbget'] = 0;
config['spot_clientid'] = 'More Secret–';
config['sonarr_url'] = 0;
config['sonarr_apikey'] = 0;
config['sonarr_maxitems'] = 0;
config['garbage_company'] = 'recyclemanager';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '3161LH';
config['garbage_street'] = 'Jonkerhof';
config['garbage_housenumber'] = '27';
config['garbage_maxitems'] = 1;
config['garbage_width'] = '12';
config['selector_instead_of_buttons'] = 1;
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['last_update'] = 0;
config['hide_off_button'] = 1;
config['hide_topbar'] = 0;
config['edit_mode'] = 0;
config['hide_seconds'] = 0;
config['hide_seconds_stationclock'] = 0;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 1;
config['translate_windspeed'] = 0;
config['static_weathericons'] = 0;
config['hide_mediaplayer'] = 0;
config['garbage_hideicon'] = 0;
config['domoticz_ip'] = 'http://192.168.0.10:8084';
config['app_title'] = 'Control-Center';
config['domoticz_refresh'] = '15';
config['dashticz_refresh'] = '60';
config['default_news_url'] = 'http://www.nu.nl/rss/algemeen';
config['news_scroll_after'] = 7;
config['standby_after'] = 'false';
config['auto_swipe_back_to'] = 1;
config['auto_swipe_back_after'] = 0;
config['auto_slide_pages'] = 0;
config['slide_effect'] = 'slide';
config['standard_graph'] = 'day';
config['language'] = 'nl_NL';
config['timeformat'] = 'YY-MM-DD HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['calendarurl'] = 0;
config['boss_stationclock'] = 'RedBoss';
config['gm_api'] = 'TOP SECRET';
config['gm_zoomlevel'] = '11';
config['gm_latitude'] = '51.860067';
config['gm_longitude'] = '4.412692';
config['wu_api'] = '17318c1fc1678195';
config['wu_city'] = 'Rhoon';
config['wu_name'] = 0;
config['wu_country'] = 'NL';
config['idx_moonpicture'] = 1;
config['switch_horizon'] = 0;
config['host_nzbget'] = 0;
config['spot_clientid'] = 'MY EYES ONLY';
config['sonarr_url'] = 0;
config['sonarr_apikey'] = 0;
config['sonarr_maxitems'] = 0;
config['garbage_company'] = 'recyclemanager';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '3161LH';
config['garbage_street'] = 'Jonkerhof';
config['garbage_housenumber'] = '27';
config['garbage_maxitems'] = 1;
config['garbage_width'] = '12';
config['selector_instead_of_buttons'] = 1;
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['last_update'] = 0;
config['hide_off_button'] = 1;
config['hide_topbar'] = 0;
config['edit_mode'] = 0;
config['hide_seconds'] = 0;
config['hide_seconds_stationclock'] = 0;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 1;
config['translate_windspeed'] = 0;
config['static_weathericons'] = 0;
config['hide_mediaplayer'] = 0;
config['garbage_hideicon'] = 0;
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
-
- Posts: 1273
- Joined: Saturday 24 January 2015 22:12
- Target OS: NAS (Synology & others)
- Domoticz version: 3.7067
- Location: NL
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
Could you send me your complete config.js?
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
I do not see the effect of continuous adding of blocks. I'm not able to add any blocks however.
Do I need to specify columns or should everything be possible from within the web-interface?
(when setting auto positioning to 1 i see my favorites)
When I use the chrome web-interface nothing happens when pressing save after adding some blocks. The save button in the settings screen does generate a lot of calls and a refresh op the page.
Is there any more info I can provide?
My config (changed app_title, / coordinates
Do I need to specify columns or should everything be possible from within the web-interface?
(when setting auto positioning to 1 i see my favorites)
When I use the chrome web-interface nothing happens when pressing save after adding some blocks. The save button in the settings screen does generate a lot of calls and a refresh op the page.
Is there any more info I can provide?
My config (changed app_title, / coordinates
- Spoiler: show
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
-
- Posts: 130
- Joined: Friday 29 November 2013 11:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
Does someknow know what chmod I have to use to make sure the config.js is writable for the webuser?
-
- Posts: 130
- Joined: Friday 29 November 2013 11:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
I tried a lot to write the config automatically to the config.js, it doesn't work om my end. Does anyone have an idea about how to fix this?
-
- Posts: 130
- Joined: Friday 29 November 2013 11:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
anyone knows how to do this?
- gielie
- Posts: 290
- Joined: Tuesday 12 January 2016 11:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest β
- Location: The Netherlands (Alkmaar)
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
in my system the save option doesn't work, before, when i pushed save, i got an page with the settings which i had to copy to the config.js but i don't get this anymore how can i get this back?
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
-
- Posts: 28
- Joined: Friday 02 February 2018 11:36
- Target OS: Linux
- Domoticz version: 3.8153
- Location: Netherlands
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
Hi Guys,
i have installed the beta of dashticz on my ubuntu server. But when i lauch it the first time. the changed are not saved to config.js.
i did the following :
- installed ubuntu and comfiguratio
- installed php 7
- installed and configured domoticz (working adn using it)
- git clone https://github.com/robgeerts/dashticz_v2 --branch beta
- sudo chmod 777 -R domoticz/
- sudo cp CONFIG_DEFAULT.js CONFIG.js
- lauched the web browser and accessed the ip of my server http://192.168.116.80:8080/dashticz_v2/
can anyone help me ou?
i have installed the beta of dashticz on my ubuntu server. But when i lauch it the first time. the changed are not saved to config.js.
i did the following :
- installed ubuntu and comfiguratio
- installed php 7
- installed and configured domoticz (working adn using it)
- git clone https://github.com/robgeerts/dashticz_v2 --branch beta
- sudo chmod 777 -R domoticz/
- sudo cp CONFIG_DEFAULT.js CONFIG.js
- lauched the web browser and accessed the ip of my server http://192.168.116.80:8080/dashticz_v2/
can anyone help me ou?
Domoticz 3.8153 on linux laptop ubuntu 17.10 | Toon Thermostat | RFlink usb gateway
- DewGew
- Posts: 579
- Joined: Thursday 21 April 2016 12:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.10618
- Location: Sweden
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
Edit CONFIG.js and put only this and try again:michaelm86 wrote: ↑Monday 12 February 2018 10:04 Hi Guys,
i have installed the beta of dashticz on my ubuntu server. But when i lauch it the first time. the changed are not saved to config.js.
i did the following :
- installed ubuntu and comfiguratio
- installed php 7
- installed and configured domoticz (working adn using it)
- git clone https://github.com/robgeerts/dashticz_v2 --branch beta
- sudo chmod 777 -R domoticz/
- sudo cp CONFIG_DEFAULT.js CONFIG.js
- lauched the web browser and accessed the ip of my server http://192.168.116.80:8080/dashticz_v2/
can anyone help me ou?
Code: Select all
var config = {}
config['domoticz_ip'] = 'http://ipnumber:port';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
Last edited by DewGew on Monday 12 February 2018 10:36, edited 1 time in total.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
-
- Posts: 28
- Joined: Friday 02 February 2018 11:36
- Target OS: Linux
- Domoticz version: 3.8153
- Location: Netherlands
- Contact:
Re: Dashticz - Save CONFIG.js automatically with PHP
Hi DewGew,
I tried this. but is does not work ...
when i add the ip and port is does not see it in the config. but when i add the user and ww it sees it.
any other options?
I tried this. but is does not work ...
when i add the ip and port is does not see it in the config. but when i add the user and ww it sees it.
any other options?
Domoticz 3.8153 on linux laptop ubuntu 17.10 | Toon Thermostat | RFlink usb gateway
Who is online
Users browsing this forum: No registered users and 1 guest