mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-23 13:24:06 +00:00
Enhance compliments remote file with refresh support (#3630)
add support to refresh the compliments remotefile add testcases for both without refresh (testcase missing) and with refresh doc to be updated
This commit is contained in:
19
tests/configs/modules/compliments/compliments_file_change.js
Normal file
19
tests/configs/modules/compliments/compliments_file_change.js
Normal file
@@ -0,0 +1,19 @@
|
||||
let config = {
|
||||
address: "0.0.0.0",
|
||||
ipWhitelist: [],
|
||||
modules: [
|
||||
{
|
||||
module: "compliments",
|
||||
position: "bottom_bar",
|
||||
config: {
|
||||
updateInterval: 3000,
|
||||
remoteFileRefreshInterval: 1500,
|
||||
remoteFile: "http://localhost:8080/tests/mocks/compliments_test.json",
|
||||
remoteFile2: "http://localhost:8080/tests/mocks/compliments_file.json"
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||
if (typeof module !== "undefined") { module.exports = config; }
|
Reference in New Issue
Block a user