Vessel

vessel~ Vessel

A vessel can ... It emits an event ...

Constructor

new Vessel(opt)

Arguments:
  1. opt   Pump name and I2C pin number.

Members

offsetVolume

This represents fluid in the pipework between the flow sensors and the vessel.

Methods

empty()

Reset the volume to zero. Save result to disk and publish.

getStatus()

Publish volume.

load(opt)

Load volume from disk and publish result.
Arguments:
  1. opt (*)

save()

Save current volumne to disk.

stop()

Remove all listeners

updateVolume(flowDelta)

Update current volume with delta. Emit event Possibly save the current volume to disk.
Arguments:
  1. flowDelta (number)  Litres