[Bug 277465] net/libmateweather fails to report metar data

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 04 Mar 2024 01:10:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277465

            Bug ID: 277465
           Summary: net/libmateweather fails to report metar data
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome@FreeBSD.org
          Reporter: rkoberman@gmail.com
             Flags: maintainer-feedback?(gnome@FreeBSD.org)
          Assignee: gnome@FreeBSD.org

For a couple of weeks, neither the weather applet nor the clock applet reports
weather conditions. I noted that version 1.28.0 was now available, so I tried
installing that, but it didn't help.

When I manually fetch the URI, I get:
<?xml version="1.0" encoding="UTF-8"?>
<response xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2"
xsi:noNamespaceSchemaLocation="https://aviationweather.gov/data/schema/metar1_2.xsd">
  <request_index>1709507243</request_index>
  <errors>
  <error>Query must be constrained by time</error>
  </errors>
  <warnings />
</response>

If I use the published API for METAR data, I have a choice of requesting XML or
raw. Since the current code calls for "raw_text" and "xml" in the query, I am
unsure which to specify. It also requires a time (zulu text or ISO)
specification. The raw data looks like:
KPSP 030953Z AUTO 00000KT 7SM CLR 14/06 A2989 RMK AO2 SLP121 T01390056 PNO

The XML is:
<?xml version="1.0" encoding="UTF-8"?>
<response xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3"
xsi:noNamespaceSchemaLocation="https://aviationweather.gov/data/schema/metar1_3.xsd">
  <request_index>1709508037</request_index>
  <data_source name="metars" />
  <request type="retrieve" />
  <errors />
  <warnings />
  <time_taken_ms>45</time_taken_ms>
  <data num_results="0"/>
</response>

Neither may be what the code is looking for.

-- 
You are receiving this mail because:
You are the assignee for the bug.