mmm-nest-status icon indicating copy to clipboard operation
mmm-nest-status copied to clipboard

Small caps SOS and French

Open lunaticasylum opened this issue 2 years ago • 5 comments

Hi everybody,

I have successfully installed this great module. Thank you Michael (Schmidt). You are a genius. Keep going please !!

I am struggeling to change the capital letters to small letters and also the language, from English to French. No success.

Thanks for your help.

Yann

lunaticasylum avatar May 02 '22 18:05 lunaticasylum

Hi - could you show me some screenshots of what you're trying to change? Then I can tell you how to do it.

michael5r avatar May 02 '22 21:05 michael5r

Hi Michael,

Thanks for your quick response

Please find attached a screenshot. I have included what I am trying to change

Capture d’écran 2022-05-03 à 18 40 42

I am also trying to add the first decimal after the comma for the temperature. I explain, in the screenshot, you'll see 19 but on my nest it indicates 19,5.

Thank your for your help

Yann

lunaticasylum avatar May 03 '22 16:05 lunaticasylum

Hi Yann,

To stop the thermostat label (like HOME) from being all uppercase, add the following to the custom.css file in your MagicMirror/css folder:

.mmm-nest-status .title {
    text-transform: capitalize;
}

To change the humidity/inside humidity text, add the following to the custom.css file in your MagicMirror/css folder:

.mmm-nest-status .thermostat .humidity:after {
    text-transform: none;
    content: 'Humidité intérieure'
}

.mmm-nest-status .thermostat.size-small .humidity:after {
    content: 'Humidité';
}

To change the heat set to, cool set to, heating and cooling texts, open up the mmm-nest-status.js file and change the text in line 253 and 256. This is what it looks like:

if (t.isHeating || t.isCooling) {
    showTempStatus = true;
    tempStatusText = (t.isHeating) ? 'HEATING' : 'COOLING';
} else if ((t.thermostatMode === 'heat') || (t.thermostatMode === 'cool')) {
    showTempStatus = true;
    tempStatusText = (t.thermostatMode === 'heat') ? 'HEAT SET TO' : 'COOL SET TO';
}

Simply change the HEATING, COOLING, HEAT SET TO COOL SET TO texts to whatever you want them to be.

michael5r avatar May 05 '22 16:05 michael5r

Hi Michael,

It works perfectly. I do not really know how but it works. I could not succeed without you. So thanks a lot. By the way, I realize that I was using another module from you, the Hue lights. Great once more ;)

Take care.

Yann

lunaticasylum avatar May 05 '22 17:05 lunaticasylum

Great to hear, Yann - thanks!

michael5r avatar May 05 '22 18:05 michael5r