airframesio / acars-decoder-typescript Goto Github PK
View Code? Open in Web Editor NEWACARS Message Decoder for TypeScript / JavaScript
ACARS Message Decoder for TypeScript / JavaScript
and then
package.json
License.md
README.md
References:
https://app.airframes.io/messages/3282851026
has 2 routes
RP:DA:KPHL:AA:KTPA:CR:PHLTPA61:R:09L(19R):D:PHL3:A:MAATY4.HONID:AP:ILS19R..DRAIK,N37080W078590.Q75.GSO..HONID,N31388W084237
and
RA:DA:KTPA:AA:KMIA
currently the RA is not parsed at all. Add parsing - figure out how to represent 2 routes
In both cases, frequency is cut off after the decimal, so it shows 136
rather than 136.975
for example.
Add some badges to the README:
With release 1.6.0, there is an issue with the package that seems to have been introduced.
Error: Cannot find module '/Users/kevin/Cloud/Dropbox/work/airframes/api-server/node_modules/@airframes/acars-decoder/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:437:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:705:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1120:27)
at Function.Module._load (node:internal/modules/cjs/loader:975:27)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/Users/kevin/Cloud/Dropbox/work/airframes/api-server/dist/acars/acars.service.js:12:23)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
Are you seeing similar @makrsmark ? It may not be something you introduced though.
Ability to decode arbitrary strings from standard METAR/
SPECI/TAF formats to an object containing breakdown of report. This decoder can be used to decode METAR reports that come in via messages, or for sites like Airframes and AcarsHub to allow users to do decodings of copy&pasted reports in their UIs.
METAR
Meteorological Aerodrome Report is standardized by ICAO worldwide. Contains information on the current weather conditions of the facility releasing the report.
TAF
Terminal Aerodrome Forecast is a report released by large airports that summarizes the weather forecast for the area covered by five statute miles from the location of the airport. Valid for 24-30 time periods and is updated 4 times a day typically.
Both METARs and TAFs are automatically retrieved from NOAA automatically and published here:
https://github.com/airframesio/data/tree/master/json/noaa
Message ID 377573108.
The Lat and Long are decoded as: 293.95 N, 951.33 W
The actual values should be 29.395 N, 95.133 W.
The raw string is
3N01 POSRPT 5891/04 KIAH/MMGL .XA-VOI
/POS N29395W095133/ALT +15608/MCH 558/FOB 0100/ETA 0410
The POS string is N29395W095133, which should be parsed as N 29.395, W 095.133
example: https://app.airframes.io/messages/3288793350
for the waypoint AIROW, N37148W079138
is being parsed as 37.148 N, 79.138 W
however, the waypoint AIROW is 37-14-48.6900N 079-13-47.4800W
according to the FAA,
https://www.faa.gov/air_traffic/flight_info/aeronav/aero_data/loc_id_search/fixes_waypoints/
if you do the math 48.69 seconds is 0.811 minutes. meaning the the waypoint is at 37.246 N, -79.229W
+/- rounding
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.