<?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[Precipitation Probability not displayed when it is 0%]]></title><description><![CDATA[<p dir="auto">OS: Ubuntu 22.04.3 LTS<br />
Node: v21.5.0<br />
MagicMirror Version: 2.26.0</p>
<p dir="auto">In the hourly weather display, when the the Precipitation Probability is 0 the table cell is blank/empty. For consistency I would expect it to display “0%”</p>
<p dir="auto"><strong>Steps to Reproduce:</strong><br />
I am using the WeatherGov module, but I believe this would be reproducible on any module that uses the weather.js library. To reproduce display the precipitation probability in the hourly weather module and have a dry time period where the precipitation probably is returned as 0%.</p>
<p dir="auto"><strong>Expected Results:</strong> To be consistent in the hourly chart, I would expect the table cell to be populated with 0% instead of blank. That gives confidence that data is being returned instead of it being an unknown (i.e. is it zero or is it missing data).</p>
<p dir="auto"><strong>Additional Notes:</strong><br />
I think the problem is with modules\default\weather\weather.js line 238.<br />
If the type is “precip” and the value is 0 or the formated value is “0.00”, then a blank value is returned.<br />
I don’t believe the zero check to be valid for the Precipitation Probability data and instead would send zero  values to the WeatherUtils.convertPrecipitationUnit function. There does not appear to be anything in that function that cannot handle a zero value so it should not cause other problems. Null values should continue to  return a blank/empty value as they do now.</p>
]]></description><link>https://forum.magicmirror.builders/topic/18377/precipitation-probability-not-displayed-when-it-is-0</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 09:22:27 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18377.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Jan 2024 17:39:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Precipitation Probability not displayed when it is 0% on Thu, 11 Jan 2024 20:21:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pencilsharpener" aria-label="Profile: pencilsharpener">@<bdi>pencilsharpener</bdi></a> I saw.  thank you</p>
]]></description><link>https://forum.magicmirror.builders/post/114358</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/114358</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 11 Jan 2024 20:21:21 GMT</pubDate></item><item><title><![CDATA[Reply to Precipitation Probability not displayed when it is 0% on Thu, 11 Jan 2024 19:28:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">The pull request message suggested posting here if not sure that it was truly a bug. I figured a second set of eyes to validate that this should be displayed was a good idea so I posted here first.</p>
<p dir="auto">Issue and pull request have been created.</p>
<p dir="auto"><a href="https://github.com/MagicMirrorOrg/MagicMirror/pull/3346" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MagicMirrorOrg/MagicMirror/pull/3346</a></p>
]]></description><link>https://forum.magicmirror.builders/post/114357</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/114357</guid><dc:creator><![CDATA[pencilsharpener]]></dc:creator><pubDate>Thu, 11 Jan 2024 19:28:03 GMT</pubDate></item><item><title><![CDATA[Reply to Precipitation Probability not displayed when it is 0% on Thu, 11 Jan 2024 17:49:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
I had the issue open, saw it was directing people here for confirmation of bugs and figured I would start here.</p>
<p dir="auto">I’ve already forked the repo to keep a few other local changes so I should be able to submit a pull request. Just need to refresh myself on how to do that correctly and the project’s submission rules to make sure it is a good request.</p>
]]></description><link>https://forum.magicmirror.builders/post/114359</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/114359</guid><dc:creator><![CDATA[pencilsharpener]]></dc:creator><pubDate>Thu, 11 Jan 2024 17:49:20 GMT</pubDate></item><item><title><![CDATA[Reply to Precipitation Probability not displayed when it is 0% on Thu, 11 Jan 2024 17:45:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pencilsharpener" aria-label="Profile: pencilsharpener">@<bdi>pencilsharpener</bdi></a> open an issue on the mm GitHub page.</p>
<p dir="auto">better yet,  after opening the issue</p>
<p dir="auto">fork the repo, create the fix and submit a PR for the team to look at and take</p>
]]></description><link>https://forum.magicmirror.builders/post/114356</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/114356</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 11 Jan 2024 17:45:15 GMT</pubDate></item></channel></rss>