From 1bdded15490ba9b18896986cd62a3b01e80de71c Mon Sep 17 00:00:00 2001 From: Martin Zwigl Date: Sun, 16 Mar 2025 19:20:09 +0100 Subject: [PATCH] Trial-and-erro: call repaint --- apps/coin_info/app.js | 5 ++++- apps/coin_info/metadata.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/coin_info/app.js b/apps/coin_info/app.js index 3d0cff017..394277931 100644 --- a/apps/coin_info/app.js +++ b/apps/coin_info/app.js @@ -56,6 +56,8 @@ function getChart(repeatable) { const apiData = JSON.parse(data.resp); tknChrtData = apiData.map(innerArray => innerArray[1]); currLoadMsg = ""; + // + layout.render(layout.tknGraph) }) .catch(err => { console.error("HTTP request failed:", err); @@ -95,6 +97,7 @@ function draw() { // layout.tknName.label = (csTokens[ticker]).toUpperCase(); layout.loadMsg.label = currLoadMsg; + // layout.render(); // schedule a draw for the next minute @@ -108,7 +111,7 @@ function draw() { // update time and draw g.clear(); draw(); -getChart(true); +getChart(false); // Bangle.on("swipe", swipeHandler); diff --git a/apps/coin_info/metadata.json b/apps/coin_info/metadata.json index 93f461fe9..3642fc9aa 100644 --- a/apps/coin_info/metadata.json +++ b/apps/coin_info/metadata.json @@ -1,7 +1,7 @@ { "id": "coin_info", "name": "Crypto-Coins Info", "shortName":"Coins Info", - "version": "0.06.32", + "version": "0.06.33", "description": "Crypto-Coins Infos with the help of the Binance API", "icon": "app.png", "tags": "clkinfo",