<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Weather Forecast: showRainAmount displays in mm even when config.units=&#x27;imperial&#x27;]]></title><description><![CDATA[<p dir="auto">Hello. Brand new MM2 user, I love it. Thank you for taking the time to make it easy to install and configure. I spent weeks last year fighting with Conky to do my own thing and I had this running immediately after installation.</p>
<p dir="auto">I have a small issue, however, that I hope someone has solved. Being in the United States, I have units set to ‘imperial’ in my config, and both the Current Weather and Weather Forecast are using imperial units for temperature and other things. But I enabled showRainAmount, and the rain amounts are showing in millimeters.</p>
<p dir="auto">Is this a limitation with OpenWeatherMap, a missing conversion in the Weather Forecast module, or a mistake on my part?</p>
<p dir="auto">Thanks for any and all assistance.</p>
]]></description><link>https://forum.magicmirror.builders/topic/1424/weather-forecast-showrainamount-displays-in-mm-even-when-config-units-imperial</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 09:52:49 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/1424.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Jan 2017 19:29:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Weather Forecast: showRainAmount displays in mm even when config.units=&#x27;imperial&#x27; on Sun, 15 Jan 2017 22:10:34 GMT]]></title><description><![CDATA[<p dir="auto">Looks great! Appreciate the quick fix and quick responses, wish more FOSS projects were this professional and responsive.</p>
]]></description><link>https://forum.magicmirror.builders/post/11179</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11179</guid><dc:creator><![CDATA[fjnorb]]></dc:creator><pubDate>Sun, 15 Jan 2017 22:10:34 GMT</pubDate></item><item><title><![CDATA[Reply to Weather Forecast: showRainAmount displays in mm even when config.units=&#x27;imperial&#x27; on Sun, 15 Jan 2017 22:07:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fjnorb" aria-label="Profile: fjnorb">@<bdi>fjnorb</bdi></a></p>
<pre><code>cd ~/MagicMirror
git fetch
git checkout develop
npm install
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/11177</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11177</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Sun, 15 Jan 2017 22:07:48 GMT</pubDate></item><item><title><![CDATA[Reply to Weather Forecast: showRainAmount displays in mm even when config.units=&#x27;imperial&#x27; on Sun, 15 Jan 2017 21:58:17 GMT]]></title><description><![CDATA[<p dir="auto">Can you give me a quick idea of how to do that please? Installation was so simple I don’t know how.</p>
]]></description><link>https://forum.magicmirror.builders/post/11175</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11175</guid><dc:creator><![CDATA[fjnorb]]></dc:creator><pubDate>Sun, 15 Jan 2017 21:58:17 GMT</pubDate></item><item><title><![CDATA[Reply to Weather Forecast: showRainAmount displays in mm even when config.units=&#x27;imperial&#x27; on Sun, 15 Jan 2017 20:16:42 GMT]]></title><description><![CDATA[<p dir="auto">I pushed an update to the <code>develop</code> branch. Please give it a try.</p>
]]></description><link>https://forum.magicmirror.builders/post/11157</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11157</guid><dc:creator><![CDATA[MichMich]]></dc:creator><pubDate>Sun, 15 Jan 2017 20:16:42 GMT</pubDate></item><item><title><![CDATA[Reply to Weather Forecast: showRainAmount displays in mm even when config.units=&#x27;imperial&#x27; on Sun, 15 Jan 2017 19:55:46 GMT]]></title><description><![CDATA[<p dir="auto">It looks like it is returning millimeters. For instance, it says on Tuesday we’re going to get 15mm of rain, that’s about a half an inch, which is much more reasonable than the notion that we’d get 15 inches (381mm) of rain in one day. That sort of thing would be in the news feed, lol.</p>
]]></description><link>https://forum.magicmirror.builders/post/11150</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11150</guid><dc:creator><![CDATA[fjnorb]]></dc:creator><pubDate>Sun, 15 Jan 2017 19:55:46 GMT</pubDate></item><item><title><![CDATA[Reply to Weather Forecast: showRainAmount displays in mm even when config.units=&#x27;imperial&#x27; on Sun, 15 Jan 2017 19:46:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michmich" aria-label="Profile: MichMich">@<bdi>MichMich</bdi></a> wikipedia tells inch for rain measurements <a href="https://en.wikipedia.org/wiki/Rain#Measurement" target="_blank" rel="noopener noreferrer nofollow ugc">https://en.wikipedia.org/wiki/Rain#Measurement</a></p>
<pre><code>if(config.units === "imperial"{
  rainCell.innerHTML = forecast.rain / 25.4 + " in";
}
</code></pre>
<p dir="auto">probably need parseFloat() for the data if its a string</p>
]]></description><link>https://forum.magicmirror.builders/post/11148</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11148</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Sun, 15 Jan 2017 19:46:53 GMT</pubDate></item><item><title><![CDATA[Reply to Weather Forecast: showRainAmount displays in mm even when config.units=&#x27;imperial&#x27; on Sun, 15 Jan 2017 19:40:16 GMT]]></title><description><![CDATA[<p dir="auto">Hmmm… it seems OpenWeatherMap returns the data in MM no matter which what we request.<br />
What unit would be preferred? Inch? What notation would you recommend?</p>
]]></description><link>https://forum.magicmirror.builders/post/11146</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11146</guid><dc:creator><![CDATA[MichMich]]></dc:creator><pubDate>Sun, 15 Jan 2017 19:40:16 GMT</pubDate></item><item><title><![CDATA[Reply to Weather Forecast: showRainAmount displays in mm even when config.units=&#x27;imperial&#x27; on Sun, 15 Jan 2017 19:34:23 GMT]]></title><description><![CDATA[<p dir="auto">It seems the “mm” part is hard coded:<br />
<a href="https://github.com/MichMich/MagicMirror/blob/master/modules/default/weatherforecast/weatherforecast.js#L153" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/blob/master/modules/default/weatherforecast/weatherforecast.js#L153</a></p>
<p dir="auto">Does it really show the amount in mm? or does it just show the wrong unit?</p>
]]></description><link>https://forum.magicmirror.builders/post/11145</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11145</guid><dc:creator><![CDATA[MichMich]]></dc:creator><pubDate>Sun, 15 Jan 2017 19:34:23 GMT</pubDate></item></channel></rss>