<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tyler Dockswell</title>
    <description>The latest articles on DEV Community by Tyler Dockswell (@tylerdockswell).</description>
    <link>https://dev.to/tylerdockswell</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4236070%2Fd9a5690e-ba86-4805-8ab8-b98c5758f409.png</url>
      <title>DEV Community: Tyler Dockswell</title>
      <link>https://dev.to/tylerdockswell</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tylerdockswell"/>
    <language>en</language>
    <item>
      <title>Decode a METAR in 30 lines of Python (and the one rule the FAA Part 107 test loves)</title>
      <dc:creator>Tyler Dockswell</dc:creator>
      <pubDate>Sat, 14 Nov 2026 14:03:35 +0000</pubDate>
      <link>https://dev.to/tylerdockswell/decode-a-metar-in-30-lines-of-python-and-the-one-rule-the-faa-part-107-test-loves-30n4</link>
      <guid>https://dev.to/tylerdockswell/decode-a-metar-in-30-lines-of-python-and-the-one-rule-the-faa-part-107-test-loves-30n4</guid>
      <description>&lt;p&gt;A METAR is an airport weather report in one dense line of text. If you fly drones commercially in the US, you have to read them for the FAA Part 107 knowledge test. If you write code, they're also a nice little parsing exercise: fixed tokens, a few regexes, one gotcha.&lt;/p&gt;

&lt;p&gt;Here's one (a made-up example in the real format):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;KMLB 141753Z 09012G18KT 10SM FEW025 SCT040 BKN250 27/19 A3012
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read it left to right:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Token&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;KMLB&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Station (Melbourne, FL)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;141753Z&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Day 14, 17:53 UTC (Zulu)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;09012G18KT&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Wind from 090° at 12 knots, gusting 18&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;10SM&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Visibility 10 statute miles&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;FEW025 SCT040 BKN250&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Cloud layers at 2,500 / 4,000 / 25,000 ft AGL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;27/19&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Temp 27 °C, dewpoint 19 °C (&lt;code&gt;M&lt;/code&gt; prefix = minus)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;A3012&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Altimeter 30.12 inHg&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The decoder
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;decode_metar&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;metar&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"clouds"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;tok&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;metar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"[A-Z]{4}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="s2"&gt;"station"&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"station"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tok&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"(\d{2})(\d{2})(\d{2})Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"time"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"day {m[1]}, {m[2]}:{m[3]} UTC"&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"(\d{3}|VRB)(\d{2,3})(?:G(\d{2,3}))?KT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;wind&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{m[1]}° at {int(m[2])} kt"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s2"&gt;"VRB"&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"variable at {int(m[2])} kt"&lt;/span&gt;
            &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"wind"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;wind&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;", gusting {int(m[3])} kt"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"(\d+(?:/\d+)?)SM"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"visibility_sm"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"(FEW|SCT|BKN|OVC)(\d{3})"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"clouds"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"(M?\d{2})/(M?\d{2})"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"M"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"temp_c"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"dewpoint_c"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;c&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;c&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"A(\d{4})"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"altimeter_inhg"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;
    &lt;span class="c1"&gt;# Ceiling = lowest BKN or OVC layer (FEW and SCT never count)&lt;/span&gt;
    &lt;span class="n"&gt;layers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;ft&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;cov&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ft&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"clouds"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;cov&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"BKN"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"OVC"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ceiling_ft_agl"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;layers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;layers&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;decode_metar&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"KMLB 141753Z 09012G18KT 10SM FEW025 SCT040 BKN250 27/19 A3012"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s1"&gt;'clouds'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'FEW'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2500&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'SCT'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'BKN'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'station'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'KMLB'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="s1"&gt;'time'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'day 14, 17:53 UTC'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'wind'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'090° at 12 kt, gusting 18 kt'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="s1"&gt;'visibility_sm'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'10'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'temp_c'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;27&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'dewpoint_c'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;19&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="s1"&gt;'altimeter_inhg'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;30.12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ceiling_ft_agl'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;25000&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It skips plenty (remarks, weather codes like &lt;code&gt;-RA&lt;/code&gt;, runway visual range, &lt;code&gt;VV&lt;/code&gt; vertical visibility), but it covers what a beginner needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gotcha: the ceiling
&lt;/h2&gt;

&lt;p&gt;Look at the last few lines of the function. A &lt;strong&gt;ceiling&lt;/strong&gt; is the lowest layer reported as &lt;strong&gt;broken (BKN) or overcast (OVC)&lt;/strong&gt;. &lt;code&gt;FEW&lt;/code&gt; and &lt;code&gt;SCT&lt;/code&gt; layers never count, however low they are.&lt;/p&gt;

&lt;p&gt;So in the example above, the ceiling is &lt;strong&gt;25,000 ft&lt;/strong&gt;, not 2,500 ft. That's exactly the kind of question the Part 107 test likes to ask, because the low &lt;code&gt;FEW025&lt;/code&gt; layer is right there tempting you.&lt;/p&gt;

&lt;p&gt;A naive &lt;code&gt;min()&lt;/code&gt; over every cloud layer gets it wrong. So do a lot of people taking the test.&lt;/p&gt;

&lt;p&gt;Two more test-relevant details the code makes obvious:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cloud heights are in &lt;strong&gt;hundreds of feet AGL&lt;/strong&gt; (&lt;code&gt;025&lt;/code&gt; = 2,500 ft).&lt;/li&gt;
&lt;li&gt;Times are &lt;strong&gt;UTC&lt;/strong&gt;, so convert before you decide whether the report is current.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it on live data
&lt;/h2&gt;

&lt;p&gt;The free NOAA Aviation Weather Center API returns raw METARs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://aviationweather.gov/api/data/metar?ids=KMLB&amp;amp;format=raw
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pipe that into &lt;code&gt;decode_metar()&lt;/code&gt; and you have a tiny weather CLI.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I run Astra Pilot Academy, which sells independent Part 107 study aids. If you're studying for the test, there's a free 25-question PDF of commonly missed questions (&lt;a href="https://astrapilot.gumroad.com/l/tmian" rel="noopener noreferrer"&gt;astrapilot.gumroad.com/l/tmian&lt;/a&gt;) and a $5 METAR &amp;amp; TAF decoder drill (&lt;a href="https://astrapilot.gumroad.com/l/metar-taf-decoder-drill" rel="noopener noreferrer"&gt;astrapilot.gumroad.com/l/metar-taf-decoder-drill&lt;/a&gt;). Not affiliated with or endorsed by the FAA. Always check official FAA sources.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>drones</category>
    </item>
    <item>
      <title>Remote ID for developers: what's actually in the broadcast, and what the FAA Part 107 test asks about it</title>
      <dc:creator>Tyler Dockswell</dc:creator>
      <pubDate>Thu, 12 Nov 2026 15:13:43 +0000</pubDate>
      <link>https://dev.to/tylerdockswell/remote-id-for-developers-whats-actually-in-the-broadcast-and-what-the-faa-part-107-test-asks-5737</link>
      <guid>https://dev.to/tylerdockswell/remote-id-for-developers-whats-actually-in-the-broadcast-and-what-the-faa-part-107-test-asks-5737</guid>
      <description>&lt;p&gt;If you build anything that touches drones (a flight logger, a mapping pipeline, a fleet dashboard, a hobby receiver on an ESP32), you'll run into Remote ID. It's the FAA rule that makes most drones broadcast who and where they are, and it's also one of the topics on the FAA Part 107 Remote Pilot knowledge test.&lt;/p&gt;

&lt;p&gt;Here's a developer-friendly breakdown of both: the data, and the exam angle.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Remote ID is, in one paragraph
&lt;/h2&gt;

&lt;p&gt;Remote ID is 14 CFR Part 89. Since the compliance date (September 16, 2023, with FAA enforcement discretion that ended March 16, 2024), drones that are required to be registered must broadcast identification and location data while they fly, unless they're flown inside an FAA-Recognized Identification Area (FRIA). It's a local broadcast, not a network service: there's no cloud API you can query for every drone in the country.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three ways to comply
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Standard Remote ID drone.&lt;/strong&gt; Remote ID is built in by the manufacturer. Broadcasts from takeoff to shutdown.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Broadcast module.&lt;/strong&gt; An add-on for drones without built-in Remote ID. Rule of thumb from the test: with a module, the person manipulating the controls must be able to see the drone throughout the flight (visual line of sight).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FRIA.&lt;/strong&gt; A defined area (usually requested by community-based organizations or educational institutions) where drones without Remote ID can fly. Both the drone and the pilot stay inside it, with visual line of sight.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What's in the message
&lt;/h2&gt;

&lt;p&gt;This is the part developers usually care about. A &lt;strong&gt;standard Remote ID&lt;/strong&gt; broadcast includes (14 CFR 89.305):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;UA identification: the serial number, or a session ID&lt;/li&gt;
&lt;li&gt;Latitude, longitude, and geometric altitude of the drone&lt;/li&gt;
&lt;li&gt;Latitude, longitude, and geometric altitude of the &lt;strong&gt;control station&lt;/strong&gt; (the pilot)&lt;/li&gt;
&lt;li&gt;Velocity of the drone&lt;/li&gt;
&lt;li&gt;A time mark&lt;/li&gt;
&lt;li&gt;Emergency status&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A &lt;strong&gt;broadcast module&lt;/strong&gt; sends a slightly different set (14 CFR 89.315): the module's serial number, the drone's position, altitude and velocity, a time mark, and the &lt;strong&gt;takeoff location&lt;/strong&gt; instead of the live control station location.&lt;/p&gt;

&lt;p&gt;That difference is a classic exam trap: standard RID tells observers where the pilot is; a module tells them where the drone took off.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it's carried
&lt;/h2&gt;

&lt;p&gt;The FAA accepted the ASTM F3411 standard as a means of compliance, and the open-source ecosystem around it is called &lt;strong&gt;OpenDroneID&lt;/strong&gt;. Messages go out over Bluetooth (legacy advertising and long range) and Wi-Fi (Beacon / NAN), so a normal phone can receive them. If you want to play, the OpenDroneID project publishes receiver code for Android, and there are ESP32 transmitter and receiver projects for test benches. (Transmit only on your own bench or in compliance with FCC rules, and never spoof real IDs.)&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Part 107 test asks
&lt;/h2&gt;

&lt;p&gt;The knowledge test isn't a protocol exam. The Remote ID questions are about rules and judgment, for example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A Part 107 drone weighing under 0.55 lb still has to be &lt;strong&gt;registered&lt;/strong&gt;, and registered drones need Remote ID (or a FRIA). The "it's light, so I'm exempt" idea only applies to some recreational flying.&lt;/li&gt;
&lt;li&gt;With a &lt;strong&gt;broadcast module&lt;/strong&gt;, you must keep visual line of sight.&lt;/li&gt;
&lt;li&gt;In a &lt;strong&gt;FRIA&lt;/strong&gt; without Remote ID equipment, both drone and pilot stay inside the FRIA.&lt;/li&gt;
&lt;li&gt;A camera feed doesn't count as visual line of sight (14 CFR 107.31).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The test is 60 multiple-choice questions in 2 hours at a PSI testing center, and you need 70% to pass. Remote ID is a small slice. The big point-losers are usually sectional charts and METAR/TAF weather codes. One recent change worth knowing: since October 26, 2026, some chart questions use images from current sectional charts that aren't in the printed testing supplement, so practice on a current FAA sectional.&lt;/p&gt;

&lt;h2&gt;
  
  
  Free resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;FAA: Remote Identification of Drones (faa.gov/uas/getting_started/remote_id)&lt;/li&gt;
&lt;li&gt;eCFR: 14 CFR Part 89 and Part 107&lt;/li&gt;
&lt;li&gt;FAA Remote Pilot Study Guide (FAA-G-8082-22) and the Remote Pilot ACS&lt;/li&gt;
&lt;li&gt;OpenDroneID on GitHub&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I run Astra Pilot Academy, which makes Part 107 study materials. If you're actually taking the test, I put 25 of the most-missed questions (Remote ID traps included) into a &lt;a href="https://astrapilot.gumroad.com/l/tmian" rel="noopener noreferrer"&gt;$1 PDF&lt;/a&gt;, and everything we make is in one &lt;a href="https://astrapilot.gumroad.com/l/wrwbzvs" rel="noopener noreferrer"&gt;$19 kit&lt;/a&gt;. The free FAA materials above are enough if you practice. Not affiliated with the FAA. Always check the current eCFR before you fly.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>drones</category>
      <category>iot</category>
      <category>beginners</category>
      <category>learning</category>
    </item>
    <item>
      <title>Delegation Briefs That Actually Work for Solo Founders Using AI Agents</title>
      <dc:creator>Tyler Dockswell</dc:creator>
      <pubDate>Tue, 10 Nov 2026 11:31:24 +0000</pubDate>
      <link>https://dev.to/tylerdockswell/delegation-briefs-that-actually-work-for-solo-founders-using-ai-agents-2d26</link>
      <guid>https://dev.to/tylerdockswell/delegation-briefs-that-actually-work-for-solo-founders-using-ai-agents-2d26</guid>
      <description>&lt;p&gt;If you are a solo founder (or a very small team) shipping more than one product, you already know the trap: AI chat feels productive, then you open the folder and nothing usable is there. Fluency is not delivery. The fix is not a smarter model first — it is a sharper brief.&lt;/p&gt;

&lt;p&gt;This excerpt is adapted from &lt;em&gt;The Solo Founder's AI Agent Playbook&lt;/em&gt; (practical operating notes for one person running agents without losing the plot, the budget, or honesty about what actually shipped).&lt;/p&gt;

&lt;h2&gt;
  
  
  Agents are junior specialists, not autopilot
&lt;/h2&gt;

&lt;p&gt;A solo founder with agents is not "automated." You are a manager of unreliable junior specialists who work at machine speed. Treat them that way.&lt;/p&gt;

&lt;p&gt;Name the roles even if one agent wears several hats:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Operator (you):&lt;/strong&gt; sets goals, approves spend, ships final calls, owns customer promises.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Researcher:&lt;/strong&gt; gathers sources, compares options, flags uncertainty.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Builder:&lt;/strong&gt; drafts code, docs, listings, emails — never silently publishes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Editor / QA:&lt;/strong&gt; checks facts, tone, and "would I stake my name on this?"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ops runner:&lt;/strong&gt; schedules, files, status reports, checklist execution.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Separate agents win when context windows fill up or when you need a second opinion that did not write the draft. Collapse roles only when the work is tiny.&lt;/p&gt;

&lt;p&gt;Non-negotiables that belong in every brief:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Agents propose; you dispose — especially for money, public posts, and legal claims.&lt;/li&gt;
&lt;li&gt;Every lasting artifact lives outside the chat (repo, drive, product folder).&lt;/li&gt;
&lt;li&gt;Secrets never go into prompts you would not paste into a shared doc.&lt;/li&gt;
&lt;li&gt;If a metric cannot be shown from a primary source, it is not reported as fact.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The brief is a one-page contract
&lt;/h2&gt;

&lt;p&gt;Vague prompts produce vague work. Fill these fields every time:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;What to write&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Outcome&lt;/td&gt;
&lt;td&gt;The artifact or decision you want when this is done&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context&lt;/td&gt;
&lt;td&gt;Links, folders, prior decisions, constraints&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Audience&lt;/td&gt;
&lt;td&gt;Who reads or buys the result&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Done looks like&lt;/td&gt;
&lt;td&gt;Acceptance checks in bullets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Must not&lt;/td&gt;
&lt;td&gt;Spend, publish, contact people, invent stats, etc.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sources&lt;/td&gt;
&lt;td&gt;Allowed tools and primary sources&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deadline&lt;/td&gt;
&lt;td&gt;Timebox and reporting cadence&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Handoff&lt;/td&gt;
&lt;td&gt;Who reviews next and in what format&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you cannot write the brief, you are not ready to delegate the work. That sentence alone saves more money than any prompt pack.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example brief (product PDF)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;OUTCOME: 4-page Part 107 cheat sheet PDF + 1280x720 cover + listing.md
CONTEXT: /workspace/products/_shared brand; facts only from bank.json + lessons
DONE: accurate 14 CFR cites; no lorem; page-1 PNG looks clean
MUST NOT: spend money; invent testimonials; claim FAA affiliation
SOURCES: eCFR, existing lesson recaps, question bank
DEADLINE: same day; report page count + file paths
HANDOFF: Operator reviews page-1 render before listing goes live
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Write briefs you would give a sharp contractor on day one. Agents amplify whatever clarity (or fog) you hand them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route work so it does not bounce forever
&lt;/h2&gt;

&lt;p&gt;Without routing rules, agents duplicate work or wait on each other forever. A simple router is enough:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;New idea → Researcher (1-page memo: demand, competition, build cost, kill criteria).&lt;/li&gt;
&lt;li&gt;Approved idea → Builder (artifacts only).&lt;/li&gt;
&lt;li&gt;Draft ready → Editor/QA (checklist, not vibes).&lt;/li&gt;
&lt;li&gt;Passed QA → Operator ships or schedules.&lt;/li&gt;
&lt;li&gt;Live product → Ops runner (daily status, support drafts, promo calendar).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Conflict rules that prevent silent disasters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One writer per artifact tree.&lt;/strong&gt; Two agents editing the same PDF is how you get silent overwrites.&lt;/li&gt;
&lt;li&gt;Questions about money, legal claims, or public identity escalate to you — never "just send it."&lt;/li&gt;
&lt;li&gt;If an agent is blocked more than ~30 minutes on a credential or approval, it stops and reports the block instead of inventing a workaround.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Handoff format (keep it short)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;STATUS: Draft PDF v1 ready
PATHS: /workspace/products/foo/foo.pdf, cover.png, listing.md
UNVERIFIED: one regulatory cite marked [CHECK]
NEED: Operator visual check of page 1; approve price $9
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No novel-length chat dumps. Paths beat vibes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review loops that assume errors
&lt;/h2&gt;

&lt;p&gt;Agents are fluent. Fluency is not truth. Run three passes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pass A — Structure:&lt;/strong&gt; Does the artifact match the brief? Missing sections? Wrong audience?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pass B — Facts:&lt;/strong&gt; Every number, cite, price, and claim maps to a source. Unsourced → cut or mark.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pass C — Taste / risk:&lt;/strong&gt; Would you put your name on this publicly? Any secret leaked?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Red flags worth training yourself to spot: round numbers with no source, testimonials that were never collected, stale "as of 2024" language in a 2026 doc, tools described as installed that are not on the machine, and spend recommendations that ignore your hard budget cap.&lt;/p&gt;

&lt;p&gt;Make the Editor argue against the Builder. Agreement is suspicious; productive disagreement is useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Pick one real task you would otherwise do yourself.&lt;/li&gt;
&lt;li&gt;Fill the brief table above — especially &lt;strong&gt;Must not&lt;/strong&gt; and &lt;strong&gt;Done looks like&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Route Builder → Editor → you.&lt;/li&gt;
&lt;li&gt;Demand file paths in the handoff.&lt;/li&gt;
&lt;li&gt;Cut anything unsourced before it reaches a customer.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That is the operating core. Templates and checklists make it reusable; the brief is what makes it real.&lt;/p&gt;




&lt;p&gt;Want the full operating system — brief templates, routing rules, review loops, budget discipline, launch checklists, and the copy-paste prompt appendix?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://astrapilot.gumroad.com/l/nrxsn" rel="noopener noreferrer"&gt;Solo Founder's AI Agent Playbook&lt;/a&gt;&lt;/strong&gt; — $19 digital PDF on Gumroad.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>startup</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
