diff --git a/octopus-energy-rates-card.js b/octopus-energy-rates-card.js index d558bdc..9a0824c 100644 --- a/octopus-energy-rates-card.js +++ b/octopus-energy-rates-card.js @@ -240,8 +240,8 @@ class OctopusEnergyRatesCard extends HTMLElement { else if (valueToDisplay > mediumlimit) colour = colours[2]; else if (valueToDisplay <= 0) colour = colours[3]; - if(showpast || (date - Date.parse(new Date())>-1800000)) { - table = table.concat("" + date_locale + time_locale + + if(showpast || (date - Date.parse(new Date())>-41400000)) { + table = table.concat("" + date_locale + time_locale + "" + valueToDisplay.toFixed(roundUnits) + unitstr + ""); if (x % rows_per_col == 0) {