Socket
Socket
Sign inDemoInstall

aemp-http

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aemp-http

Implementation of AEMP Telematics Data Standard according to ISO/TS 15143-3:2020


Version published
Maintainers
1
Install size
515 kB
Created

Readme

Source

AEMP

Implementation of AEMP Telematics Data Standard according to ISO/TS 15143-3:2020

No version yet, just reserving the package name

Install

npm i aemp-http

Usage

const handler = new Handler({
	devices : 1000, // total devices exposed (for pagination)
	url     : "http://url.to.this.api/fleet",
});
const router = express.Router(); // or get a router

handler.attachRouter(router);

handler.on("fleet", (req, res) => {
	console.log(req.aemp);
	console.log("requesting fleet call for page %d", req.page);

	res.reply([{
		uid          : "imei:123456789",
		brand        : "Renault",
		model        : "Clio",
		position     : { lat: -8, lon: 40, alt: 50, date: new Date },
		fuel         : { value: 5000, date: new Date },   // total fuel
		distance     : { value: 12345, date : new Date }, // total distance
		engine_hours : { value: 1000, date : new Date },  // total engine hours
	}, /* ... */ ]);
});

FAQs

Last updated on 28 Sep 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc