-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 32567eb
Showing
18 changed files
with
8,903 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
npm-debug.log | ||
|
||
coverage/ | ||
.nyc_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- 'v9.0.0' | ||
script: 'npm test' | ||
after_script: | ||
- 'cat coverage/lcov.info | ./node_modules/.bin/coveralls' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const ADDS = require('./') | ||
|
||
const view = value => console.log(JSON.stringify(value, null, 2)) | ||
|
||
Promise.all([ | ||
ADDS('metars', { | ||
stationString: 'KSEA', | ||
hoursBeforeNow: 1, | ||
mostRecentForEachStation: true | ||
}), | ||
ADDS('tafs', { | ||
stationString: 'KJFK', | ||
hoursBeforeNow: 1, | ||
mostRecentForEachStation: true | ||
}), | ||
ADDS('aircraftreports', { | ||
hoursBeforeNow: 1, | ||
mostRecent: true | ||
}), | ||
ADDS('airsigmets', { | ||
hoursBeforeNow: 6, | ||
mostRecent: true | ||
}), | ||
ADDS('gairmets', { | ||
hoursBeforeNow: 6, | ||
mostRecent: true | ||
}), | ||
ADDS('stations', { | ||
stationString: 'PANC' | ||
}) | ||
]) | ||
.then(results => { | ||
view(results) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?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.0" xsi:noNamespaceSchemaLocation="http://aviationweather.gov/adds/schema/aircraftreport1_0.xsd"> | ||
<request_index>23959615</request_index> | ||
<data_source name="aircraftreports"/> | ||
<request type="retrieve"/> | ||
<errors/> | ||
<warnings/> | ||
<time_taken_ms>37</time_taken_ms> | ||
<data num_results="1000"> | ||
<AircraftReport> | ||
<receipt_time>2018-05-20T22:35:27Z</receipt_time> | ||
<observation_time>2018-05-20T22:35:00Z</observation_time> | ||
<aircraft_ref>ETD76T</aircraft_ref> | ||
<latitude>56.0667</latitude> | ||
<longitude>-37.6167</longitude> | ||
<altitude_ft_msl>33000</altitude_ft_msl> | ||
<temp_c>-48</temp_c> | ||
<wind_dir_degrees>289</wind_dir_degrees> | ||
<wind_speed_kt>126</wind_speed_kt> | ||
<report_type>AIREP</report_type> | ||
<raw_text>ARP ETD76T 5604N03737W 2235 F330 5600N03000W 2301 5600N02000W MS48 289/126 KT A6ETH QXT AME 202235 F41A</raw_text> | ||
</AircraftReport> | ||
</data> | ||
</response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?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.1" xsi:noNamespaceSchemaLocation="http://aviationweather.gov/adds/schema/airsigmet1_1.xsd"> | ||
<request_index>248677263</request_index> | ||
<data_source name="airsigmets"/> | ||
<request type="retrieve"/> | ||
<errors/> | ||
<warnings/> | ||
<time_taken_ms>847</time_taken_ms> | ||
<data num_results="156"> | ||
<AIRSIGMET> | ||
<raw_text>WAUS45 KKCI 202045 SLCT WA 202045 AIRMET TANGO UPDT 3 FOR TURB VALID UNTIL 210300 AIRMET TURB...NM FROM 50S DVC TO CIM TO 30SSW TXO TO INK TO ELP TO 50SSW DMN TO 50NNE SSO TO 50S DVC MOD TURB BLW 160. CONDS CONTG BYD 03Z THRU 09Z.</raw_text> | ||
<valid_time_from>2018-05-20T20:45:00Z</valid_time_from> | ||
<valid_time_to>2018-05-21T03:00:00Z</valid_time_to> | ||
<altitude min_ft_msl="0" max_ft_msl="16000"/> | ||
<hazard type="TURB" severity="MOD"/> | ||
<airsigmet_type>AIRMET</airsigmet_type> | ||
<area num_points="8"> | ||
<point> | ||
<longitude>-108.93</longitude> | ||
<latitude>36.9746</latitude> | ||
</point> | ||
<point> | ||
<longitude>-104.87</longitude> | ||
<latitude>36.49</latitude> | ||
</point> | ||
<point> | ||
<longitude>-103.0723</longitude> | ||
<latitude>34.035</latitude> | ||
</point> | ||
<point> | ||
<longitude>-103.24</longitude> | ||
<latitude>31.87</latitude> | ||
</point> | ||
<point> | ||
<longitude>-106.28</longitude> | ||
<latitude>31.82</latitude> | ||
</point> | ||
<point> | ||
<longitude>-107.975</longitude> | ||
<latitude>31.5076</latitude> | ||
</point> | ||
<point> | ||
<longitude>-108.8786</longitude> | ||
<latitude>33.0413</latitude> | ||
</point> | ||
<point> | ||
<longitude>-108.93</longitude> | ||
<latitude>36.9746</latitude> | ||
</point> | ||
</area> | ||
</AIRSIGMET> | ||
</data> | ||
</response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
<?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.1" xsi:noNamespaceSchemaLocation="http://aviationweather.gov/adds/schema/gairmet1_0.xsd"> | ||
<request_index>24120410</request_index> | ||
<data_source name="gairmets"/> | ||
<request type="retrieve"/> | ||
<errors/> | ||
<warnings/> | ||
<time_taken_ms>78</time_taken_ms> | ||
<data num_results="221"> | ||
<GAIRMET> | ||
<receipt_time>2018-05-20T14:33:37Z</receipt_time> | ||
<issue_time>2018-05-20T14:45:00Z</issue_time> | ||
<expire_time>2018-05-20T21:00:00Z</expire_time> | ||
<product>SIERRA</product> | ||
<tag>1E</tag> | ||
<roughly_the_number_of_hours_between_the_issue_time_and_the_valid_time>6</roughly_the_number_of_hours_between_the_issue_time_and_the_valid_time> | ||
<valid_time>2018-05-20T21:00:00Z</valid_time> | ||
<hazard type="IFR"/> | ||
<geometry_type>AREA</geometry_type> | ||
<wx_details>CIG BLW 010/VIS BLW 3SM BR</wx_details> | ||
<status>NRML</status> | ||
<area num_points="16"> | ||
<point> | ||
<longitude>-125.55</longitude> | ||
<latitude>48.53</latitude> | ||
</point> | ||
<point> | ||
<longitude>-124.57</longitude> | ||
<latitude>46.81</latitude> | ||
</point> | ||
<point> | ||
<longitude>-125.48</longitude> | ||
<latitude>44.14</latitude> | ||
</point> | ||
<point> | ||
<longitude>-124.66</longitude> | ||
<latitude>42.77</latitude> | ||
</point> | ||
<point> | ||
<longitude>-124.36</longitude> | ||
<latitude>41.9</latitude> | ||
</point> | ||
<point> | ||
<longitude>-124.37</longitude> | ||
<latitude>40.8</latitude> | ||
</point> | ||
<point> | ||
<longitude>-123.36</longitude> | ||
<latitude>38.27</latitude> | ||
</point> | ||
<point> | ||
<longitude>-122.12</longitude> | ||
<latitude>36.51</latitude> | ||
</point> | ||
<point> | ||
<longitude>-120.68</longitude> | ||
<latitude>34.67</latitude> | ||
</point> | ||
<point> | ||
<longitude>-120.7</longitude> | ||
<latitude>33.81</latitude> | ||
</point> | ||
<point> | ||
<longitude>-118.29</longitude> | ||
<latitude>32.94</latitude> | ||
</point> | ||
<point> | ||
<longitude>-117.43</longitude> | ||
<latitude>32.23</latitude> | ||
</point> | ||
<point> | ||
<longitude>-120.38</longitude> | ||
<latitude>30.45</latitude> | ||
</point> | ||
<point> | ||
<longitude>-126.73</longitude> | ||
<latitude>39.34</latitude> | ||
</point> | ||
<point> | ||
<longitude>-126.4</longitude> | ||
<latitude>44.92</latitude> | ||
</point> | ||
<point> | ||
<longitude>-127.97</longitude> | ||
<latitude>48.15</latitude> | ||
</point> | ||
<point> | ||
<longitude>-125.55</longitude> | ||
<latitude>48.53</latitude> | ||
</point> | ||
</area> | ||
</GAIRMET> | ||
<GAIRMET> | ||
<receipt_time>2018-05-20T14:31:26Z</receipt_time> | ||
<issue_time>2018-05-20T14:45:00Z</issue_time> | ||
<expire_time>2018-05-20T21:00:00Z</expire_time> | ||
<product>ZULU</product> | ||
<tag>2C</tag> | ||
<roughly_the_number_of_hours_between_the_issue_time_and_the_valid_time>6</roughly_the_number_of_hours_between_the_issue_time_and_the_valid_time> | ||
<valid_time>2018-05-20T21:00:00Z</valid_time> | ||
<hazard type="ICE" severity="MOD"/> | ||
<geometry_type>AREA</geometry_type> | ||
<wx_details>ICE</wx_details> | ||
<status>NRML</status> | ||
<altitude min_ft_msl="14000" max_ft_msl="28000"/> | ||
<area num_points="14"> | ||
<point> | ||
<longitude>-79.11</longitude> | ||
<latitude>33.05</latitude> | ||
</point> | ||
<point> | ||
<longitude>-80.19</longitude> | ||
<latitude>30.95</latitude> | ||
</point> | ||
<point> | ||
<longitude>-80.9</longitude> | ||
<latitude>29.61</latitude> | ||
</point> | ||
<point> | ||
<longitude>-80.83</longitude> | ||
<latitude>27.58</latitude> | ||
</point> | ||
<point> | ||
<longitude>-78.85</longitude> | ||
<latitude>25.7</latitude> | ||
</point> | ||
<point> | ||
<longitude>-78.8</longitude> | ||
<latitude>23.91</latitude> | ||
</point> | ||
<point> | ||
<longitude>-81.43</longitude> | ||
<latitude>24.93</latitude> | ||
</point> | ||
<point> | ||
<longitude>-82.14</longitude> | ||
<latitude>26.09</latitude> | ||
</point> | ||
<point> | ||
<longitude>-82.64</longitude> | ||
<latitude>27.84</latitude> | ||
</point> | ||
<point> | ||
<longitude>-83.27</longitude> | ||
<latitude>28.8</latitude> | ||
</point> | ||
<point> | ||
<longitude>-84.08</longitude> | ||
<latitude>30.67</latitude> | ||
</point> | ||
<point> | ||
<longitude>-83.45</longitude> | ||
<latitude>32.02</latitude> | ||
</point> | ||
<point> | ||
<longitude>-82.5</longitude> | ||
<latitude>32.71</latitude> | ||
</point> | ||
<point> | ||
<longitude>-79.89</longitude> | ||
<latitude>32.93</latitude> | ||
</point> | ||
<point> | ||
<longitude>-79.11</longitude> | ||
<latitude>33.05</latitude> | ||
</point> | ||
</area> | ||
</GAIRMET> | ||
</data> | ||
</response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?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>294676036</request_index> | ||
<data_source name="metars"/> | ||
<request type="retrieve"/> | ||
<errors/> | ||
<warnings/> | ||
<time_taken_ms>3</time_taken_ms> | ||
<data num_results="6"> | ||
<METAR> | ||
<raw_text>KDEN 202153Z 09006KT 10SM OVC035 13/06 A3014 RMK AO2 SLP176 T01330056</raw_text> | ||
<station_id>KDEN</station_id> | ||
<observation_time>2018-05-20T21:53:00Z</observation_time> | ||
<latitude>39.85</latitude> | ||
<longitude>-104.65</longitude> | ||
<temp_c>13.3</temp_c> | ||
<dewpoint_c>5.6</dewpoint_c> | ||
<wind_dir_degrees>90</wind_dir_degrees> | ||
<wind_speed_kt>6</wind_speed_kt> | ||
<visibility_statute_mi>10.0</visibility_statute_mi> | ||
<altim_in_hg>30.138779</altim_in_hg> | ||
<sea_level_pressure_mb>1017.6</sea_level_pressure_mb> | ||
<quality_control_flags> | ||
<auto_station>TRUE</auto_station> | ||
</quality_control_flags> | ||
<sky_condition sky_cover="OVC" cloud_base_ft_agl="3500"/> | ||
<flight_category>VFR</flight_category> | ||
<metar_type>METAR</metar_type> | ||
<elevation_m>1640.0</elevation_m> | ||
</METAR> | ||
</data> | ||
</response> |
Oops, something went wrong.