Skip to content

This is a client used to receive info of mobile objects from APRS2 server, decode and post the data to a database for further usage.

Notifications You must be signed in to change notification settings

Travelinglight/AMDC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMDC

AMDC (APRS MobileObject Data Client) is a client used to receive info of mobile objects from the APRS2 server, decode and post the data to a database for multiple purposes.

dependencies: Node.js

What information can you get?

  1. The source of a message;
  2. The West/East, degree, minute and hundredths of minutes of Latitude;
  3. The North/South, degree, minute and hundredths of minutes of Longitude;
  4. The speed of a moving object;
  5. The course of a moving object;
  6. The altitude of a moving object (optional);
  7. The type of a moving object (optional);
  8. A MIC-E message (optional).

How to test?

  1. Clone the repo and navigate to the folder.
git clone git@github.com:Travelinglight/AMDC.git
cd AMDC
  1. Install express and body-parser modules with NPM.
npm install express
npm install body-parser
  1. Run the Server.
node Server.js
  1. Open another terminal and run the client.
node client.js
  1. See the result in the Server terminal

alt text

How to use it?

  1. Copy client.js and decode.js to your own repo;
  2. Use body-parser in your back-end to parse the request data posted by the client;
var bodyParser = require("body-parser");
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.post("/moving_object", function(req, res) {
  // use req.body as a json;
});

Information Explanation

  1. The source (CALL) can be obtained from req.body.Source. It is the ID of the object;
  2. Longitude can be obtained from req.body.Longitude. A positive number means East and a negative one means West;
  3. Latitude can be obtained from req.body.Latitude. A positive number means North and a negative one means South;
  4. The speed info can be obtained from req.body.Speed
  5. The course info can be obtained from req.body.Course
  6. The altitude info can be obtained form req.body.Altitude. If undefined, it means the object's altitude info is not specified;
  7. The object type info is stored in req.body.Comments.Type. If undefined, req.body.Destination can be used to determine the type of the object. For more information, please refer to APRS101;
  8. The MIC-E message can be obtained from req.body.Comments.MicMst;

About

This is a client used to receive info of mobile objects from APRS2 server, decode and post the data to a database for further usage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published