ottopaulsen / MMM-Tibber

Show data from Tibber in MagicMirror
MIT License
33 stars 11 forks source link

No value in "Cost today" #4

Closed kennethnilssen closed 1 year ago

kennethnilssen commented 4 years ago

Hi,

First, I´m the one tipping of Tibber what your cool code can do, and ensured they wrote about your code: https://tibber.com/no/magazine/power-hacks/magic-mirror-smartspeil

One issue, and I cannot find where in the code to change it, if the "Cost today" is under 0, it will not show anything.

Thx for creating amazing code!

kennethnilssen commented 4 years ago

Solved one of two questions in this issue:

image

From file: MMM-Tibber.js, at line 471:

accumulatedCost.innerHTML = ( subData.accumulatedCost.toFixed(2) + (this.config.includeAdditionalCostsInPrice ? sumAdditionalCosts(this.config) * subData.accumulatedConsumption : 0) );

ottopaulsen commented 4 years ago

Hi Kenneth, and sorry for the extremely late response. I have been on vacation and have not had any time for this. Thanks for the change suggestion I will include it in my next release, whenever that will be :-)

About the month so far, I will keep this open, but I will have very little time in the next few months, so it would not be any time soon.

kennethnilssen commented 4 years ago

No worries Otto, and thx for getting back to me.

I just altered my code as I wanted to see the "cost today" when it is below 1 NOK ;)

See what you can do/ find the time for, and if I find something, I will let you know.