Shorten time for re-call function for testing; log update-time
parent
b68684f34d
commit
cd74cde50c
|
|
@ -75,6 +75,13 @@ layout.update();
|
||||||
|
|
||||||
//
|
//
|
||||||
function getChart(period) {
|
function getChart(period) {
|
||||||
|
// Clear any existing timeout
|
||||||
|
if (updateTimeout) clearTimeout(updateTimeout);
|
||||||
|
|
||||||
|
//
|
||||||
|
const date = new Date().toDateString();
|
||||||
|
logFile.write("Called:" + date);
|
||||||
|
//
|
||||||
timePeriod = period;
|
timePeriod = period;
|
||||||
currLoadMsg = `Load... ${period}`;
|
currLoadMsg = `Load... ${period}`;
|
||||||
|
|
||||||
|
|
@ -103,7 +110,7 @@ function getChart(period) {
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
// Schedule next update regardless of success or failure
|
// Schedule next update regardless of success or failure
|
||||||
updateTimeout = setTimeout(getChart, 60000, period); // 5 minutes
|
updateTimeout = setTimeout(getChart, 30000, period); // 5 minutes
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "coin_info",
|
{ "id": "coin_info",
|
||||||
"name": "Crypto-Coins Info",
|
"name": "Crypto-Coins Info",
|
||||||
"shortName":"Coins Info",
|
"shortName":"Coins Info",
|
||||||
"version": "0.06.46",
|
"version": "0.06.47",
|
||||||
"description": "Crypto-Coins Infos with the help of the Binance API",
|
"description": "Crypto-Coins Infos with the help of the Binance API",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "clkinfo",
|
"tags": "clkinfo",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue