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.