Giter VIP home page Giter VIP logo

water-tools's Introduction

This package provides various water monitoring tools for sensor and pump integration. At the current stage of development the package includes temperature monitor, ph monitor, ph controller.This package uses the RPI-Control-center gpio engine as its driver to make RPI API-ification easy. At this current stage this python package is only for the Raspberry pi and uses DFRobot sensor library as well as the ADC integration

  • Documentation: Coming soon
  • Github

Installation

  • pip
pip install RPi-water-tools
  • source
git clone https://github.com/moha7108/water-tools
cd water_tools
pip install -e

Example Usage

from water_tools import monitors, ph_control
import time

if __name__ == '__main__':
    temp_monitor = monitors.TempMonitor()
    ph_monitor = monitors.PHMonitor(temperature_api_file = './api/TEMPERATURE.json')
    ph_controller = ph_control.PHController(ph_api_file='./api/PH.json', config_file='./ph_config.json', api_dir = './api/', log_dir = './logs/')

    temp_monitor.start()
    ph_monitor.start()
    ph_controller.start()

    try:
        ################### Place any other code here since its non blocking
        while True:
            time.sleep(1)
    except:
        temp_monitor.stop()
        ph_monitor.stop()
        ph_controller.stop()

Configuration/ API Files

  • will be updated

Hardware and drivers

Hardware

System Libraries

cd
sudo apt update
sudo apt list --upgradeable
sudo apt ugrade
sudo apt autoremove

sudo apt-get install wiringpi
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
gpio -v
sudo apt-get install libopenjp2-7 -y
sudo apt-get install libatlas-base-dev -y
sudo apt install libtiff -y
sudo apt install libtiff5 -y
sudo apt-get install -y i2c-tools

Feedback

All kinds of feedback and contributions are welcome.

Contributors

Change Log

0.1.5

  • fix return values when exception is hit during get ph process of the ph monitors
  • add temp and voltage attributes to ph monitor for better data handling
  • return valuse based on object attributes

0.1.4

  • Ph controller success flag when begin() is complete

0.1.3

  • fix error handling of ph controller

0.1.2

  • Add error handling when api is busy and parameter getters access file when they are being written to

0.1.0

  • first working code debut

water-tools's People

Contributors

blefug avatar mohas95 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

water-tools's Issues

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.