This package has been deprecated

Author message:

This package has been deprecated. Use https://gitlab.com/operator-ict/golemio/code/modules/waste-collection module instead.

@golemio/sorted-waste-stations
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

oict golemio

@golemio/sorted-waste-stations

pipeline coverage license

Installation · Documentation · TypeDoc

This module is intended for use with Golemio services. Refer here for further information on usage, local development and more.

Installation

The APIs may be unstable. Therefore, we recommend to install this module as an exact version.

# Latest version
npm install --save-exact @golemio/sorted-waste-stations@latest

# Development version
npm install --save-exact @golemio/sorted-waste-stations@dev

Methods updateSensorsMeasurement and updateSensorsPicks

By default, these methods download data from the source for the last 168 hours (24x7). Data of new measurements are stored in the corresponding tables (containers_measurement, containers_picks), data of measurements which are already saved in a database - are updated.

It is possible to send a custom AMQP message to the worker for these methods, indicating the desired time range for which you want to update the data in the database.

The format of the message content should be as follows:

{
    "from": "Sun Mar 21 2021 00:19:52 GMT+0100 (GMT+01:00)",
    "to": "Tue Mar 30 2021 00:19:52 GMT+0200 (GMT+02:00)"
}

Any new Date(value) parsable format.

Readme

Keywords

Package Sidebar

Install

npm i @golemio/sorted-waste-stations

Weekly Downloads

116

Version

1.2.1

License

MIT

Unpacked Size

382 kB

Total Files

74

Last publish

Collaborators

  • asciidan
  • benaktom
  • oict-robot
  • sinacek
  • vlasaty