<?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[Read own API Key in UIFlow&#x2F;micropython?]]></title><description><![CDATA[<p dir="auto">We have set up a number of M5 Stick Cs for remote IT education purposes. We have developed a cloud service for device management, and it is now possible to send a mac address (as a unique ID) from UIFlow to our cloud service using http. If we can upload the UIFlow API Key for each device at the same time as the macaddress, we think that we can distribute the m5f file to the managed M5 Stick C without having the students make notes.</p>
<p dir="auto">Is there a way to access the device's API Key from Block or micropython?</p>
]]></description><link>https://community.m5stack.com/topic/3560/read-own-api-key-in-uiflow-micropython</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 15:36:28 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3560.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Sep 2021 04:45:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Read own API Key in UIFlow&#x2F;micropython? on Fri, 26 Nov 2021 01:52:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Thanks!</p>
]]></description><link>https://community.m5stack.com/post/15608</link><guid isPermaLink="true">https://community.m5stack.com/post/15608</guid><dc:creator><![CDATA[labixiaoxin8888]]></dc:creator><pubDate>Fri, 26 Nov 2021 01:52:03 GMT</pubDate></item><item><title><![CDATA[Reply to Read own API Key in UIFlow&#x2F;micropython? on Thu, 25 Nov 2021 09:39:56 GMT]]></title><description><![CDATA[<p dir="auto">There is an experimental feature of Micropython called webRPEL</p>
]]></description><link>https://community.m5stack.com/post/15595</link><guid isPermaLink="true">https://community.m5stack.com/post/15595</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 25 Nov 2021 09:39:56 GMT</pubDate></item><item><title><![CDATA[Reply to Read own API Key in UIFlow&#x2F;micropython? on Wed, 24 Nov 2021 07:36:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Is it possible to print any output for UI flow remote control website?</p>
]]></description><link>https://community.m5stack.com/post/15579</link><guid isPermaLink="true">https://community.m5stack.com/post/15579</guid><dc:creator><![CDATA[labixiaoxin8888]]></dc:creator><pubDate>Wed, 24 Nov 2021 07:36:45 GMT</pubDate></item><item><title><![CDATA[Reply to Read own API Key in UIFlow&#x2F;micropython? on Wed, 24 Nov 2021 06:37:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Alright, thank you!</p>
]]></description><link>https://community.m5stack.com/post/15578</link><guid isPermaLink="true">https://community.m5stack.com/post/15578</guid><dc:creator><![CDATA[labixiaoxin8888]]></dc:creator><pubDate>Wed, 24 Nov 2021 06:37:01 GMT</pubDate></item><item><title><![CDATA[Reply to Read own API Key in UIFlow&#x2F;micropython? on Wed, 24 Nov 2021 05:20:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/labixiaoxin8888" aria-label="Profile: labixiaoxin8888">@<bdi>labixiaoxin8888</bdi></a> No need as the API key is stuck on the front of the stamp.</p>
<p dir="auto">If you install Thonny and run the terminal monitor, the API's for any device connected will be shown in the terminal for Micropython.</p>
]]></description><link>https://community.m5stack.com/post/15577</link><guid isPermaLink="true">https://community.m5stack.com/post/15577</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 24 Nov 2021 05:20:16 GMT</pubDate></item><item><title><![CDATA[Reply to Read own API Key in UIFlow&#x2F;micropython? on Wed, 24 Nov 2021 03:50:11 GMT]]></title><description><![CDATA[<p dir="auto">Hello, how about accessing the device's API key from Blockly? Is it possible? I am using M5 Stack new Stamp Pico.</p>
]]></description><link>https://community.m5stack.com/post/15576</link><guid isPermaLink="true">https://community.m5stack.com/post/15576</guid><dc:creator><![CDATA[labixiaoxin8888]]></dc:creator><pubDate>Wed, 24 Nov 2021 03:50:11 GMT</pubDate></item><item><title><![CDATA[Reply to Read own API Key in UIFlow&#x2F;micropython? on Mon, 06 Sep 2021 04:17:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/iamliubo" aria-label="Profile: iamliubo">@<bdi>iamliubo</bdi></a>, Thanks for reply!</p>
<p dir="auto">By using this code, I was able to get the API Key:</p>
<pre><code>import deviceCfg
akey=deviceCfg.get_apikey()
</code></pre>
<p dir="auto">BTW, the MAC address can be obtained with the following code:</p>
<pre><code>macaddr=wifiCfg.wlan_sta.config('mac')
macaddr='{:02x}:{:02x}:{:02x}:{:02x}:{:02x}:{:02x}'.format(*macaddr)
</code></pre>
<p dir="auto">Thank you!</p>
]]></description><link>https://community.m5stack.com/post/14814</link><guid isPermaLink="true">https://community.m5stack.com/post/14814</guid><dc:creator><![CDATA[utaani]]></dc:creator><pubDate>Mon, 06 Sep 2021 04:17:58 GMT</pubDate></item><item><title><![CDATA[Reply to Read own API Key in UIFlow&#x2F;micropython? on Mon, 06 Sep 2021 02:21:06 GMT]]></title><description><![CDATA[<p dir="auto">Try:</p>
<pre><code class="language-python">import deviceCfg
print("APIKEY: " + deviceCfg.get_apikey())
</code></pre>
<p dir="auto">But the APIKEY not fixed.I think you should use MAC addr for the devices:</p>
<pre><code>import machine
import binascii
mac_addr = binascii.hexlify(machine.unique_id()).decode('utf-8')
</code></pre>
]]></description><link>https://community.m5stack.com/post/14810</link><guid isPermaLink="true">https://community.m5stack.com/post/14810</guid><dc:creator><![CDATA[IAMLIUBO]]></dc:creator><pubDate>Mon, 06 Sep 2021 02:21:06 GMT</pubDate></item><item><title><![CDATA[Reply to Read own API Key in UIFlow&#x2F;micropython? on Sun, 05 Sep 2021 23:35:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robalstona" aria-label="Profile: robalstona">@<bdi>robalstona</bdi></a> Thanks for reply.</p>
<p dir="auto">I tried the following code, but I get an error.</p>
<pre><code>from m5stack import *
from m5ui import *
from uiflow import *

setScreenColor(0x111111)

print(APIKEY)
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1630884810063-3f5e857e-8620-4937-b1db-9fd5be124cec-image.png" alt="0_1630884807759_3f5e857e-8620-4937-b1db-9fd5be124cec-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">"_APIKEY" also resulted in an error.</p>
<p dir="auto">Do I need to install any additional modules?</p>
]]></description><link>https://community.m5stack.com/post/14808</link><guid isPermaLink="true">https://community.m5stack.com/post/14808</guid><dc:creator><![CDATA[utaani]]></dc:creator><pubDate>Sun, 05 Sep 2021 23:35:30 GMT</pubDate></item><item><title><![CDATA[Reply to Read own API Key in UIFlow&#x2F;micropython? on Sun, 05 Sep 2021 08:16:55 GMT]]></title><description><![CDATA[<p dir="auto">Try</p>
<pre><code>print(APIKEY)
#or
print(_APIKEY)
</code></pre>
<p dir="auto">Should work. On device boot in serial monitor was displayed all boot messages includes apikey.</p>
]]></description><link>https://community.m5stack.com/post/14805</link><guid isPermaLink="true">https://community.m5stack.com/post/14805</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Sun, 05 Sep 2021 08:16:55 GMT</pubDate></item></channel></rss>