it helps to use the correct properties

master
Martin Zwigl 2025-03-22 23:45:23 +01:00
parent 3cfa1c82d8
commit 1041b03141
3 changed files with 8 additions and 8 deletions

View File

@ -47,4 +47,5 @@ Martin Zwigl
## Possible Improvements / TODOs ## Possible Improvements / TODOs
- Pause HTTP request cycle during show of Details or Lows/Highs - Pause HTTP request cycle during show of Details or Lows/Highs
- Better chosing of fonts for more space - Better choosing of fonts for more space
- set UI properly to have back button next to widgets

View File

@ -1,5 +1,4 @@
const logFile = require("Storage").open("coin_info_log.txt", "a"); const logFile = require("Storage").open("coin_info_log.txt", "a");
// const settings = require("Storage").readJSON("coin_info.settings.json", 1) || {};
const db = require("Storage").readJSON("coin_info.cmc_key.json", 1) || {}; const db = require("Storage").readJSON("coin_info.cmc_key.json", 1) || {};
const csTokens = db.csTokens.split(','); const csTokens = db.csTokens.split(',');
// //
@ -130,16 +129,16 @@ function getChart(period) {
function showLowHigh() { function showLowHigh() {
const title = `L/H ${csTokens[ticker]}`; const title = `L/H ${csTokens[ticker]}`;
// //
logFile.write("OptSpacing:" + JSON.stringify(optSpacing) + "\n"); // logFile.write("OptSpacing:" + JSON.stringify(optSpacing) + "\n");
const first = ciLib.formatPriceString(optSpacing.first); const first = ciLib.formatPriceString(optSpacing.first);
const last = ciLib.formatPriceString(optSpacing.last); const last = ciLib.formatPriceString(optSpacing.last);
// const low = ciLib.formatPriceString(optSpacing.low); const low = ciLib.formatPriceString(optSpacing.min);
// const high = ciLib.formatPriceString(optSpacing.high); const high = ciLib.formatPriceString(optSpacing.max);
const msg = ` const msg = `
First: ${first} First: ${first}
Last: ${last} Last: ${last}
Low: 0 Low: ${low}
High: 0 High: ${high}
`; `;
E.showAlert(msg, title).then(function() { E.showAlert(msg, title).then(function() {
// print("Ok pressed"); // print("Ok pressed");

View File

@ -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.07.04", "version": "0.07.05",
"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",