Read the statement by Michael Teeuw here.
MMM-NOAA - Another Weather Module
-
Hi,
Sorry for these stupid questions.- How can I get the temperature with 1 or 2 decimals?
- I want to get data from 2 different locations (Home & Holiday home abroud)
Can I copy module & rename it MMM-NOAA2 or can I put 2 different API & PWS locations in?
-
@Johans Hi Johans, to ask is never stupid. So to your questions:
- The module gets his data from Wunderground so it can only display what it gets.
- Yes, this should be possible and u said how it can be done. U can copy it to a new name and
npm install their. Dont forget to add the renamed module in the config file
-
@tbbear thanks for the quick answer.
I will copy & rename & add into config file.About temp with decimals, I installed also MMM-MyWeather which takes the data from wunderground (just to compare both weather modules) - in fact It uses same API & PWS as NOAA, but here i’m getting the temperature with 1 decimal. (not 7°, but 7.4°).
Anyhow, no big deal, I can live with it. I just asked, maybe there was a setting for the temp decimals which wasn’t yet communicated or so. -
@Johans OK, so let me check what is possible
(by the way u must have a very sensible skin to feel decimals … only joking) -
@tbbear said in MMM-NOAA - Another Weather Module:
@Johans OK, so let me check what is possible
(by the way u must have a very sensible skin to feel decimals … only joking)MMM-NOAA.js starting line 310.
Math.round()
is used which rounds up or down and eliminates decimals.
Maybe you could add a config option to specify number of decimals? -
Working on re-formatting this to have a smaller foot print…as I know space is a premium!
Stay tuned…
-
Just a sneak peek…
-
Damn you! :-)
-
Much slimmer so it takes up less space :) ONLY issue is that as of right now it only works in English…
-
@cowboysdude I like this new style… for german translation, of course i can help and im sure other users would love to help too