What is this?
This monitors two things for a rainwater system:
- supply (volume of water available, based on height of water level in the tank)
- consumption (volume used - such as from a normal residential water meter).
For this specific implementation, we use:
- a 4-20ma pressure transducer measuring water column (in inches). Multiply this by water surface area to get volume.
- a click-per-gallon water meter- a normal water meter, but a contact that closes once per gallon.
- an rPi 5
See also https://github.com/codehivetx/barrelcactus-dashboard for the dashboard.
TODO, TODO, TODO!!!!
- edit
local-config.json
and see theTankConfig
object for details. - opengpio has some special setup instructions (TODO!) for v2.1 lib
This application is generated using LoopBack 4 CLI with the initial project layout.
By default, dependencies were installed when this application was generated.
Whenever dependencies in package.json
are changed, run the following command:
npm install
To only install resolved dependencies in package-lock.json
:
npm ci
npm start
You can also run node .
to skip the build step.
Open http://127.0.0.1:3000 in your browser.
To incrementally build the project:
npm run build
To force a full build by cleaning up cached artifacts:
npm run rebuild
npm run lint
To automatically fix such issues:
npm run lint:fix
npm run migrate
: Migrate database schemas for modelsnpm run openapi-spec
: Generate OpenAPI spec into a filenpm run docker:build
: Build a Docker image for this applicationnpm run docker:run
: Run this application inside a Docker container
npm test
© 2024 Code Hive Tx, LLC
Apache-2.0 see LICENSE