<?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[M5Station-485 - Get Battery Percentage - NameError]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1">@m5stack</a></p>
<p dir="auto">when I try to use the <code>Get Battery Percentage Vmin / Vmax</code> block (UIFlow 1.10.4)</p>
<p dir="auto"><img src="/assets/uploads/files/1661586677114-m5stationuiflowbatpercenterror_20220827.png" alt="0_1661586675874_M5StationUIFlowBatPercentError_20220827.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I get the following error:</p>
<pre><code>Traceback (most recent call last):
  File "flow/m5cloud.py", line 76, in _exec_fun
  File "&lt;string&gt;", line 28, in &lt;module&gt;
NameError: name 'map_value' isn't defined
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/topic/4562/m5station-485-get-battery-percentage-nameerror</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 23:59:09 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4562.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Aug 2022 07:55:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Station-485 - Get Battery Percentage - NameError on Sat, 10 Sep 2022 13:22:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys</p>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/25118">@democrazia</a> : thank you, adding <code>from easyIO import *</code> solved the issue. Thank you!</p>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> : you are correct, the 485 stock version doesn't have batteries. However I don't think M5Stack engineers are planning to separate the two versions in UIFlow as there is only one M5Station to select from in UIFlow. So yes, it is a bug - instead of the error we should get 0.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18579</link><guid isPermaLink="true">https://community.m5stack.com/post/18579</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 10 Sep 2022 13:22:47 GMT</pubDate></item><item><title><![CDATA[Reply to M5Station-485 - Get Battery Percentage - NameError on Sat, 10 Sep 2022 07:02:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> There is no batteries in the Station485<br />
However you may have also found a bug.</p>
]]></description><link>https://community.m5stack.com/post/18577</link><guid isPermaLink="true">https://community.m5stack.com/post/18577</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 10 Sep 2022 07:02:58 GMT</pubDate></item><item><title><![CDATA[Reply to M5Station-485 - Get Battery Percentage - NameError on Sat, 10 Sep 2022 04:33:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Did you added "from easyIO import *  " at the beginning ?</p>
<p dir="auto">Fred</p>
]]></description><link>https://community.m5stack.com/post/18576</link><guid isPermaLink="true">https://community.m5stack.com/post/18576</guid><dc:creator><![CDATA[democrazia]]></dc:creator><pubDate>Sat, 10 Sep 2022 04:33:30 GMT</pubDate></item></channel></rss>