Settings not saved on RPi

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

Post Reply
User avatar
mvveelen
Posts: 674
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Settings not saved on RPi

Post by mvveelen » Sunday 08 July 2018 15:17

Hi,

after months of not playing with Dashticz and moving my Domoticz setup to an RPi3, I'm trying to pick up from where I left.

Now, I see one can use the Settings wheel to adjust some settings. But, on my setup the settings aren't saved. I couldn't find anything in the wiki about his, so I'm asking here: what am I forgetting?

I CHMOD'ed CONFIG.js to 777, and installed Dashticz using GIT. Any tips?
RPi3 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

User avatar
HansieNL
Posts: 420
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Settings not saved on RPi

Post by HansieNL » Sunday 08 July 2018 19:37

@mvveelen: settings will only be saved if you have PHP running.
Blah blah blah

User avatar
mvveelen
Posts: 674
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Settings not saved on RPi

Post by mvveelen » Sunday 08 July 2018 20:33

Is this in the Wiki? For the RPi?
RPi3 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

User avatar
HansieNL
Posts: 420
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Settings not saved on RPi

Post by HansieNL » Sunday 08 July 2018 22:28

You can find instructions to install webserver with PHP here: https://www.raspberrypi.org/documentati ... r/nginx.md
Be sure to make the config.js writable.
Blah blah blah

User avatar
mvveelen
Posts: 674
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Settings not saved on RPi

Post by mvveelen » Thursday 12 July 2018 18:10

Installed NGINX and PHP7, and the CONFIG.JS was (is) already writable. It seems that this didn't do the job unfortunately.
RPi3 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

User avatar
HansieNL
Posts: 420
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Settings not saved on RPi

Post by HansieNL » Thursday 12 July 2018 21:42

Can you try the following and make pi owner of the html folder:
$ sudo chown www-data:www-data /var/www/html
$ sudo chmod 775 /var/www/html
$ sudo usermod -a -G www-data pi

The file config.js should at least have file permission 646
Blah blah blah

User avatar
mvveelen
Posts: 674
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Settings not saved on RPi

Post by mvveelen » Friday 13 July 2018 17:44

Tried this, but it's not saved. Am I the only one or are others having the same issues?
RPi3 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

Gianni
Posts: 50
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi
Domoticz version:
Location: Home@Belgium
Contact:

Re: Settings not saved on RPi

Post by Gianni » Saturday 21 July 2018 19:28

i got the same problem.
pi3 follow the wiki to install.
New folder on WWW
chmod 777 config.js
but i cannot save my settings with the gear method.
I edit my config.js manual but i cannot get i full working.
I got no clock no maps only the weather :-)
Knipsel3.JPG
Knipsel3.JPG (64.42 KiB) Viewed 391 times
Took the default config file from the wiki page.

Code: Select all

var config = {}
config['language'] = 'nl_NL';
config['domoticz_ip'] = 'MY IP AND PORT;
config['user_name'] = 'MY LOGIN
config['pass_word'] = 'MY PASSWORD';
config['loginEnabled'] = 1;
config['app_title'] = 'Home Automatisation';
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'] = 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'] = '';
config['gm_zoomlevel'] = 0;
config['gm_latitude'] = 0;
config['gm_longitude'] = 0;
config['wu_api'] = '';
config['wu_city'] = 'Kortrijk';
config['wu_name'] = '';
config['wu_country'] = 'BE';
config['idx_moonpicture'] = 0;
config['switch_horizon'] = 0;
config['host_nzbget'] = '';
config['spot_clientid'] = '';
config['selector_instead_of_buttons'] = 0;
config['auto_positioning'] = 0;
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;
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'] = 1;
config['standby_call_url'] = '' ;
config['standby_call_url_on_end'] = '' ;
config['hide_off_button'] = 1;

User avatar
HansieNL
Posts: 420
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Settings not saved on RPi

Post by HansieNL » Saturday 21 July 2018 22:24

@Gianni: You have set config['auto_positioning'] = 0; , so you have to add the blocks, columns and screens to your config.js yourself. How to do that can you find in the wiki https://www.domoticz.com/wiki/Dashticz_V2_-_Positioning
Blah blah blah

Gianni
Posts: 50
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi
Domoticz version:
Location: Home@Belgium
Contact:

Re: Settings not saved on RPi

Post by Gianni » Saturday 21 July 2018 23:03

HansieNL wrote:
Saturday 21 July 2018 22:24
@Gianni: You have set config['auto_positioning'] = 0; ,/url]
HansieNL thx allready play with some setting but it's my first day with Dashticz.
Need to sort out how to arrange the predefind buttons first :-)
Knipsel4.JPG
Knipsel4.JPG (67.41 KiB) Viewed 380 times
As you can see the radio button (mnm) is way to small.
And if i push the button it opened a web stream what is good but i dont need the popup so i need to find how to start the stream docked
Knipsel5.JPG
Knipsel5.JPG (65.73 KiB) Viewed 380 times
but now i hijacked some other thread i will look further or open a new topic later.
But the point is that when i changed something in the settings with the gear button and i refresh dashticz the setting are back to default so it's not written to de CONFIG.js

grts Gianni

Post Reply

Who is online

Users browsing this forum: Marque1968 and 4 guests