From c2627b3302bf6d51645f5d7d4740d87021e44d63 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Fri, 30 Jul 2021 13:12:41 +0300 Subject: [PATCH] add html to covid script --- covid-widget.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/covid-widget.lua b/covid-widget.lua index 2f92799..a0d6528 100644 --- a/covid-widget.lua +++ b/covid-widget.lua @@ -4,6 +4,8 @@ -- author = "Evgeny Zobnin (zobnin@gmail.com)" -- version = "1.0" +equals = " = " + function onAlarm() net:getText("https://api.covid19api.com/summary") end @@ -15,8 +17,8 @@ function onNetworkResult(result) local totalDeaths = json:getValue(result, "object object:Global int:TotalDeaths") ui:showLines({ - "Disease: total = "..comma_value(total).." new = "..comma_value(new), - "Deaths: total = "..comma_value(totalDeaths).." new = "..comma_value(newDeaths) + "Disease: total"..equals..comma_value(total).." new"..equals..comma_value(new), + "Deaths: total"..equals..comma_value(totalDeaths).." new"..equals..comma_value(newDeaths) }) end