Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Javascript client for https://www.aviationweather.gov/ text data server
npm install --save adds
const ADDS = require('adds')
ADDS('metars', {
stationString: 'KSEA',
hoursBeforeNow: 1
})
.then(metars => {
console.log(JSON.stringify(metars, null, 2))
})
Output:
[
{
"raw_text": "KSEA 202353Z 27005KT 10SM BKN042 19/10 A3004 RMK AO2 SLP176 T01940100 10200 20139 56010 $",
"station_id": "KSEA",
"observation_time": "2018-05-20T23:53:00Z",
"latitude": 47.45,
"longitude": -122.32,
"temp_c": 19.4,
"dewpoint_c": 10,
"wind_dir_degrees": 270,
"wind_speed_kt": 5,
"visibility_statute_mi": 10,
"altim_in_hg": 30.041338,
"sea_level_pressure_mb": 1017.6,
"quality_control_flags": {
"auto_station": "TRUE",
"maintenance_indicator_on": "TRUE"
},
"sky_condition": {
"sky_cover": "BKN",
"cloud_base_ft_agl": 4200
},
"flight_category": "VFR",
"three_hr_pressure_tendency_mb": -1,
"maxT_c": 20,
"minT_c": 13.9,
"metar_type": "METAR",
"elevation_m": 136
}
]
See example.js
for more usage examples.
ADDS(dataSource, options)
dataSource
Type: string
One of the following:
metars
tafs
aircraftreports
airsigmets
gairmets
stations
options
Type: object
These options are passed to ADDS as query parameters. See the ADDS documentation for all available options.
MIT © Forrest Desjardins
FAQs
Javascript client for https://www.aviationweather.gov/ text data server
We found that adds demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.