{"id":2865,"date":"2024-07-07T07:02:59","date_gmt":"2024-07-07T07:02:59","guid":{"rendered":"http:\/\/lora.vsb.cz\/?page_id=2865"},"modified":"2024-07-07T07:02:59","modified_gmt":"2024-07-07T07:02:59","slug":"magtag","status":"publish","type":"page","link":"https:\/\/lora.vsb.cz\/index.php\/magtag\/","title":{"rendered":"MagTag"},"content":{"rendered":"<table style=\"height: 66px;\" width=\"356\">\n<tbody>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>TTN version:<\/strong><\/td>\n<td><strong><span style=\"color: #008000;\">TTNv3<\/span><\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>Last updated:<\/strong><\/td>\n<td>July 7, 2024<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>This article provides instructions for visualizing the latest measured <strong>temperature<\/strong> and\u00a0<strong>humidity<\/strong> from the BME280 or DHT22 sensor using the <strong><a href=\"https:\/\/www.adafruit.com\/product\/4800\" target=\"_blank\" rel=\"noopener\">Adafruit MagTag<\/a> <\/strong>and <a href=\"https:\/\/www.thethingsindustries.com\/docs\/integrations\/storage\/\" target=\"_blank\" rel=\"noopener\"><strong>TTS Storage Integration<\/strong><\/a>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-7817\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-scaled.jpeg\" alt=\"MagTag\" width=\"449\" height=\"337\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-scaled.jpeg 2560w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-300x225.jpeg 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-1024x768.jpeg 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-768x576.jpeg 768w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-1536x1152.jpeg 1536w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-2048x1536.jpeg 2048w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #189bd6;\"><strong>Prepare<\/strong><\/span><\/h2>\n<ul>\n<li><a href=\"http:\/\/lora.vsb.cz\/index.php\/temperature-humidity-and-pressure-sensor-bme280\/\" target=\"_blank\" rel=\"noopener\">Temperature, Humidity and Pressure sensor sending data to TTS<\/a> or <a href=\"https:\/\/lora.vsb.cz\/index.php\/temperature-and-humidity-sensor-dht22\/\" target=\"_blank\" rel=\"noopener\">Temperature and Humidity sensor DHT22 sending data to TTS<\/a><\/li>\n<li><a href=\"https:\/\/www.adafruit.com\/product\/4800\" target=\"_blank\" rel=\"noopener\">Adafruit MagTag &#8211; 2.9&#8243; Grayscale E-Ink WiFi Display<\/a><\/li>\n<li>Battery<\/li>\n<li><a href=\"https:\/\/www.printables.com\/cs\/model\/322987-minimalistic-case-for-the-adafruit-magtag\" target=\"_blank\" rel=\"noopener\">Minimalistic case for the Adafruit MagTag<\/a><\/li>\n<li><a href=\"https:\/\/www.adafruit.com\/product\/4631\" target=\"_blank\" rel=\"noopener\">Mini Magnet Feet for RGB LED Matrices (Pack of 4)<\/a><\/li>\n<li>Wi-Fi internet connection<\/li>\n<li>PC + USB C cable<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong><span style=\"color: #800000;\">MagTag<\/span><\/strong><\/h2>\n<p>The Adafruit MagTag combines the new ESP32-S2 wireless module and a 2.9&#8243; grayscale E-Ink display to make a low-power IoT display that can show data on its screen even when power is removed.\u00a0<strong><a href=\"https:\/\/www.adafruit.com\/product\/4800\" target=\"_blank\" rel=\"noopener\">See complete specification here<\/a><\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-7818\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_2.jpeg\" alt=\"MagTag\" width=\"400\" height=\"300\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_2.jpeg 1167w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_2-300x225.jpeg 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_2-1024x768.jpeg 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_2-768x576.jpeg 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<h2><strong><span style=\"color: #800000;\">MagTag setup<\/span><\/strong><\/h2>\n<ol>\n<li><a href=\"https:\/\/circuitpython.org\/board\/adafruit_magtag_2.9_grayscale\/\" target=\"_blank\" rel=\"noopener\">Download the latest CircuitPython<\/a> that will work with the MagTag <strong>(download .UF2 file)<\/strong>.<\/li>\n<li><strong>Connect the MagTag<\/strong> to your computer using a <strong>USB C cable<\/strong>.<\/li>\n<li><strong>Double-click the Reset button<\/strong> on the MagTag.<\/li>\n<li>You&#8217;ll see a new disk drive on your computer with the name <strong>MAGTAGBOOT<\/strong>.<\/li>\n<li>Copy the <strong>.UF2<\/strong> file you downloaded onto the <strong>MAGTAGBOOT<\/strong> drive.<\/li>\n<li>Your board should auto-reset into CircuitPython and <strong>CIRCUITPY<\/strong> drive will appear.<\/li>\n<li><a href=\"https:\/\/circuitpython.org\/libraries\" target=\"_blank\" rel=\"noopener\">Download the latest CircuitPython Libraries<\/a>.<\/li>\n<li>Now you can <a href=\"https:\/\/learn.adafruit.com\/adafruit-magtag\/internet-connect\" target=\"_blank\" rel=\"noopener\">test your internet connection according to the following tutorial<\/a>.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #800000;\"><strong>MagTag program and files<\/strong><\/span><\/h2>\n<ol>\n<li><a href=\"https:\/\/github.com\/OndrejKnebl\/magtag-weather\/\" target=\"_blank\" rel=\"noopener\">Download as .ZIP this code, files and folders<\/a>.<\/li>\n<li><strong>Unzip<\/strong> the downloaded .ZIP and <strong>move the files and folders to the CIRCUITPY drive<\/strong>.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #800000;\"><strong>The Things Stack &#8211; Integrations and API Keys<\/strong><\/span><\/h2>\n<h4>Integrations<\/h4>\n<ol>\n<li>In\u00a0<strong>TTS -&gt; Applications -&gt; YourAppName -&gt; Integrations -&gt; Storage Integration<\/strong> click on button <strong>Activate Storage Integration<\/strong>.<\/li>\n<li>Copy first <strong>URL<\/strong> and paste it to your <strong>secrets.py<\/strong> file in MagTag as value for key <em><strong>&#8218;TTN_Storage_Address&#8216;<\/strong><\/em> and replace <em><strong>{type}<\/strong><\/em> with <em><strong>uplink_message<\/strong><\/em>.<\/li>\n<li>Next, enter the <em><strong>&#8218;ssid&#8216;<\/strong><\/em> and <em><strong>&#8218;password&#8216;<\/strong><\/em> from <strong>your Wi-Fi<\/strong> in the <strong>secrets.py<\/strong> file.<\/li>\n<li>Save\u00a0your <strong>secrets.py<\/strong> file.<\/li>\n<\/ol>\n<h4>API Keys<\/h4>\n<ol>\n<li>In\u00a0<strong>TTS -&gt; Applications -&gt; YourAppName -&gt; API keys <\/strong>click on button<strong> + Add API key<\/strong><\/li>\n<li>Select <strong>Grant individual rights<\/strong><\/li>\n<li>Select <strong>Read application traffic (uplink and downlink)<\/strong><\/li>\n<li>Click on button <strong>Create API key<\/strong>.<\/li>\n<li>Copy <strong>API key<\/strong> and\u00a0paste it to your <strong>secrets.py<\/strong> file in MagTag as value for key <em><strong>&#8218;TTN_api&#8216;<\/strong>.<\/em><\/li>\n<li>Click on button <strong>I have copied the key<\/strong>.<\/li>\n<li>Save\u00a0your <strong>secrets.py<\/strong> file.<\/li>\n<li>Last received valid data (Temperature and Humidity in Cayenne LPP)\u00a0 will show up on your MagTag.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-7817\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-scaled.jpeg\" alt=\"MagTag\" width=\"449\" height=\"337\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-scaled.jpeg 2560w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-300x225.jpeg 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-1024x768.jpeg 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-768x576.jpeg 768w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-1536x1152.jpeg 1536w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/magtag_1-2048x1536.jpeg 2048w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>TTN version: TTNv3 Last updated: July 7, 2024 This article provides instructions for visualizing the latest measured temperature and\u00a0humidity from the BME280 or DHT22 sensor using the Adafruit MagTag and TTS Storage Integration. &nbsp; Prepare Temperature, Humidity and Pressure sensor sending data to TTS or Temperature and Humidity sensor DHT22 sending data to TTS Adafruit [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2865","page","type-page","status-publish","hentry","post"],"_links":{"self":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/2865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/comments?post=2865"}],"version-history":[{"count":43,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/2865\/revisions"}],"predecessor-version":[{"id":7836,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/2865\/revisions\/7836"}],"wp:attachment":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/media?parent=2865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}