Skip to content

service_metering

Thorsten Zoerner edited this page Feb 1, 2024 · 4 revisions

Service: metering

Method assets

Calls:

graph TD
   metering.assets --> readings_model.list
   metering.assets --> readings_model.find
Loading

Method lastReading

Last processed Reading of a Meter Allows to retrieve last meter reading with virtual meters of tariff segments.

Called by:

Calls:

graph TD
   demometer.populate24h --> metering.lastReading
   metering.lastReading --> readings_model.find
Loading

Method updateReading

Update a meter reading Stores meter reading update and runs settlement on delta to last reading value. Does auto clearing in case enabled in runtime.settings.js.

Called by:

Calls:

graph TD
   debit.closeBilling --> metering.updateReading
   demometer.populate24h --> metering.updateReading
   metering.updateReading --> readings_model.find
   metering.updateReading --> tariff.customLabels
   metering.updateReading --> access.verifySelf
   metering.updateReading --> readings_model.insert
   metering.updateReading --> access.verifySelf
   metering.updateReading --> settlement.retrieve
   metering.updateReading --> access.createReadingJWT
   metering.updateReading --> readings_model.find
   metering.updateReading --> readings_model.insert
   metering.updateReading --> readings_model.remove
   metering.updateReading --> readings_model.insert
   metering.updateReading --> readings_model.update
   metering.updateReading --> clearing.commit
   metering.updateReading --> readings_model.update
Loading
Clone this wiki locally