-
-
Notifications
You must be signed in to change notification settings - Fork 288
/
Copy pathupdate.js
17 lines (17 loc) · 1.11 KB
/
update.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module.exports.update = {
answersUrl: 'https://raw.githubusercontent.com/gladysassistant/gladys-data/master/answers/',
eventsBaseUrl: 'https://raw.githubusercontent.com/gladysassistant/gladys-data/master/events/',
modesBaseUrl: 'https://raw.githubusercontent.com/gladysassistant/gladys-data/master/modes/',
sentencesBaseUrl:
'https://raw.githubusercontent.com/gladysassistant/gladys-data/master/sentences/v2/',
actionTypeUrl: 'https://raw.githubusercontent.com/gladysassistant/gladys-data/master/actions/',
categoryBaseUrl: 'https://raw.githubusercontent.com/gladysassistant/gladys-data/master/categories/',
stateBaseUrl: 'https://raw.githubusercontent.com/gladysassistant/gladys-data/master/states/',
getLastVersionUrl: 'https://developer.gladysassistant.com/api/gladys/version',
getModuleBySlugUrl: 'https://developer.gladysassistant.com/api/v1/modules/',
icon: 'fa fa-refresh',
iconColor: 'bg-light-blue',
link: '/dashboard/parameters',
updateScript: process.env.UPDATE_SCRIPT_PATH || `${__dirname}/../rpi-update.sh`,
checkUpdateInterval: process.env.CHECK_UPDATE_INTERVAL || 24 * 60 * 60 * 1000
};