Coder Social home page Coder Social logo

well-monitor's Introduction

Well Monitor

The well monitor project is intended to create a docker container to run on a Raspberry Pi to read and access data from a well monitor with a serial interface.

Installation

Download this project and run.

Add the following .env to run in simulation mode

LOG_LEVEL=INFO
SERIAL_PORT=/dev/ttyS20
COMPOSE_PROFILES=simulate
docker-compose up --build

Raspberry Pi

Install docker

https://devops.stackexchange.com/questions/5192/how-to-install-docker-in-raspbian-virtual-machine

apt install docker.io

Install docker-compose

https://medium.com/@vinothsubramanian/how-to-install-docker-compose-in-raspberry-pi-4a11e6314bbb

sudo curl -L https://github.com/docker/compose/releases/download/v2.23.3/docker-compose-`uname -s`-`uname -m` > docker-compose
sudo mv docker-compose /usr/bin/
sudo chown root: /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compos

Docker permissions

https://phoenixnap.com/kb/docker-permission-denied

sudo groupadd -f docker
sudo usermod -aG docker $USER
newgrp docker
docker-compose -f docker-compose.yml -f docker-compose-live.yml up --build

Monitor Process

The monitor process will run in a separate container

API

Status

https://localhost/api/status

Current Data

https://localhost/api/current

Utitlities

On MacOS you can find the serialusb connection by

ls /dev/tty.*

and connect using cu

sudo cu -s 19200 -l /dev/tty.usbserial-A6005kdh

Inspiration

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

well-monitor's People

Contributors

jk1551 avatar joking777 avatar

Watchers

 avatar

Forkers

pkinggmu

well-monitor's Issues

figure out the right frequency for useful data & graphs

I was thinking if we captured data points every 10 minutes, we would have 1008 data points per week, every 15 minutes would be 672.

At 15 minute increments, a years worth of data would only be 33,600 entries which should be easy to do with redis.

Maybe we could keep a week of data and then generate summary files at the end of the week.

It all kind of depends on what would be useful to visualize.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.