Bug 277465 - net/libmateweather fails to report metar data
Summary: net/libmateweather fails to report metar data
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-04 01:10 UTC by rkoberman
Modified: 2024-03-04 01:10 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rkoberman 2024-03-04 01:10:03 UTC
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.