Dashticz / dashticz_v2

Alternative dashboard for Domoticz
107 stars 62 forks source link

Option to disable updates #346

Closed aiolos closed 6 years ago

aiolos commented 6 years ago

I added an option to disable the check for updates. A few reasons: it takes extra time to do the extra calls, I don't want too many calls to the outside world and I don't need it since I dedice myself when I want to update.

Unfortunately I couldn't take the normal road of adding a default value in settings.js. This is because settings.js itself needs version.js to be loaded (it uses some of the variables), so version.js needs to be loaded first. (This dependency on scripts loaded in a certain order itself might need some investigation too)

Usage: Add

config['disable_update_check'] = true;

to your CONFIG.js to disable the checks.

DewGew commented 6 years ago

Maybe its better to call the variable "disable_update_check". else its might be misstaken for automatic update or similar.

aiolos commented 6 years ago

Good point, that makes it more clear. I will update the PR tonight.

aiolos commented 6 years ago

I renamed the config option.

@DewGew I like the fact that this functionality exists (I think you added it), I just want to have the option that it doesn't check it. For most people it will be useful there is a check, since it might solve issues they have.