@airemad/node-acustic

1.0.1 • Public • Published

@airemad/node-acustic

Node.js Libary to collect, analyze and digest the Acustic Pollution in Madrid

npm version license downloads Known Vulnerabilities

About

Node.js Libary to collect, analyze and digest the Acustic Pollution in Madrid

❤️ Awesome Features:

  • debug is supported 💪
  • Out of the box simple Interface. 🔥
  • Check report integrity against Json Schemas 🧐
  • Includes context info like hash, timestamp, source... 🥷
  • Easy to use and great test coverage

Installation

npm install @airemad/node-acustic

Usage

const { getLastReport } = require('@airemad/node-acustic')

;(async () => {
    const {data, hash, source, timestamp} = await getLastReport()
    console.log(hash)      // 1369f90ec7205649da9abbbc98f63e35
    console.log(source)    // https://www.mambiente.madrid.es/opendata/ruido.txt
    console.log(timestamp) // 1651271749972
    console.log(data)
/*
[
    ...,
    {
        id: '86',
        uuid: '271a6e0a-9d62-49cd-a772-57c1b492441f',
        name: 'Tres Olivos',
        period: 'night',
        date: '2022-04-21',
        laeq: 47,
        las01: 58,
        las10: 51,
        las50: 39,
        las90: 36,
        las99: 36
    }
]
*/

})()

Built With

Development only:

Production only:

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU AGPL3.0 License - see the LICENSE.md file for details

Data sources

We use Madrid Datos Abiertos:

Readme

Keywords

Package Sidebar

Install

npm i @airemad/node-acustic

Weekly Downloads

1

Version

1.0.1

License

AGPL-3.0

Unpacked Size

51.8 kB

Total Files

11

Last publish

Collaborators

  • ulisesgascon