Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 507 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 507 Bytes

telemetry-mongodb

Read telemetry data from a MQTT broker & save them into a MongoDB server.

To be used with the project teleinfo.

Description

Start a web server on port 3001.

Exposes two routes :

GET /linky

Return the last buffer of teleinfo from MongoDB server.

GET /teleinfo?sort=createdAt&order=-1&limit=100

Return an array of teleinfo from MongoDB server.

Settings

You need to edit the config.js file at the project root.