Better log-output; try to call from button
parent
e2003cdd29
commit
e4c1824774
|
|
@ -61,8 +61,8 @@ var layout = new Layout({
|
||||||
{type:"custom", render:renderGraph, id:"tknGraph", bgCol:g.theme.bg, fillx:1, filly:1 },
|
{type:"custom", render:renderGraph, id:"tknGraph", bgCol:g.theme.bg, fillx:1, filly:1 },
|
||||||
{type:"h", valign:1,
|
{type:"h", valign:1,
|
||||||
c: [
|
c: [
|
||||||
{type:"btn", label:"24h", cb: d=>setLoadMsg("24h")},
|
{type:"btn", label:"24h", cb: d=>getChart("24h")},
|
||||||
{type:"btn", label:"1w", cb: d=>setLoadMsg("1w")},
|
{type:"btn", label:"1w", cb: d=>getChart("1w")},
|
||||||
{type:"btn", label:"1m", cb: d=>setLoadMsg("1m")},
|
{type:"btn", label:"1m", cb: d=>setLoadMsg("1m")},
|
||||||
{type:"btn", label:"3m", cb: d=>setLoadMsg("3m")}
|
{type:"btn", label:"3m", cb: d=>setLoadMsg("3m")}
|
||||||
]
|
]
|
||||||
|
|
@ -76,12 +76,12 @@ layout.update();
|
||||||
//
|
//
|
||||||
var updateTimeout;
|
var updateTimeout;
|
||||||
function getChart(period) {
|
function getChart(period) {
|
||||||
//
|
|
||||||
const date = new Date();
|
|
||||||
logFile.write("Called:" + date.toString());
|
|
||||||
//
|
//
|
||||||
timePeriod = period;
|
timePeriod = period;
|
||||||
currLoadMsg = `Load... ${period}`;
|
currLoadMsg = `Load... ${period}`;
|
||||||
|
//
|
||||||
|
const date = new Date();
|
||||||
|
logFile.write("Called:" + date.toISOString() + " -- " + timePeriod + " -- " + csTokens[ticker] + "\n");
|
||||||
|
|
||||||
const url = `https://openapiv1.coinstats.app/coins/${csTokens[ticker]}/charts?period=${timePeriod}`;
|
const url = `https://openapiv1.coinstats.app/coins/${csTokens[ticker]}/charts?period=${timePeriod}`;
|
||||||
Bangle
|
Bangle
|
||||||
|
|
|
||||||
|
|
@ -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.52",
|
"version": "0.06.53",
|
||||||
"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