Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AviationWeather METAR format change #738

Closed
nabeelio opened this issue Jun 2, 2020 · 0 comments
Closed

AviationWeather METAR format change #738

nabeelio opened this issue Jun 2, 2020 · 0 comments
Labels
Milestone

Comments

@nabeelio
Copy link
Owner

nabeelio commented Jun 2, 2020

The fields=raw_text doesn't work anymore, instead retrieve full XML and read the raw_text field:

<?xml version="1.0" encoding="UTF-8"?>
<response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XML-Schema-instance" version="1.2" xsi:noNamespaceSchemaLocation="http://aviationweather.gov/adds/schema/metar1_2.xsd">
  <request_index>30141982</request_index>
  <data_source name="metars" />
  <request type="retrieve" />
  <errors />
  <warnings />
  <time_taken_ms>4</time_taken_ms>
  <data num_results="1">
    <METAR>
      <raw_text>KPHX 021651Z 33009KT 10SM FEW160 FEW210 SCT250 36/08 A2991 RMK AO2 SLP105 T03560078</raw_text>
      <station_id>KPHX</station_id>
      <observation_time>2020-06-02T16:51:00Z</observation_time>
      <latitude>33.43</latitude>
      <longitude>-112.02</longitude>
      <temp_c>35.6</temp_c>
      <dewpoint_c>7.8</dewpoint_c>
      <wind_dir_degrees>330</wind_dir_degrees>
      <wind_speed_kt>9</wind_speed_kt>
      <visibility_statute_mi>10.0</visibility_statute_mi>
      <altim_in_hg>29.911417</altim_in_hg>
      <sea_level_pressure_mb>1010.5</sea_level_pressure_mb>
      <quality_control_flags>
        <auto_station>TRUE</auto_station>
      </quality_control_flags>
      <sky_condition sky_cover="FEW" cloud_base_ft_agl="16000" />
      <sky_condition sky_cover="FEW" cloud_base_ft_agl="21000" />
      <sky_condition sky_cover="SCT" cloud_base_ft_agl="25000" />
      <flight_category>VFR</flight_category>
      <metar_type>METAR</metar_type>
      <elevation_m>336.0</elevation_m>
    </METAR>
  </data>
</response>
@nabeelio nabeelio added the bug label Jun 2, 2020
@nabeelio nabeelio added this to the 7.0.0 milestone Jun 2, 2020
nabeelio added a commit that referenced this issue Jun 4, 2020
nabeelio added a commit that referenced this issue Jun 4, 2020
@nabeelio nabeelio closed this as completed Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant