Giter VIP home page Giter VIP logo

drip_irrigation_server's Introduction

API Documentation for Soif Drip Irrigation and Garden Monitoring App

Codacy Badge Build Status License: GPL v3

BaseURL

https://soif.herokuapp.com/

Endpoints

Sl. Endpoint Usage Method Response Type
1 / Show this Documentation GET text/html
2 /getdata/now Get all latest sensor data updates GET application/json
3 /getdata/<string:date> Get all sensor data for a given day. Date format to be passed : dd-mm-yyyy GET application/json
4 /getdata/<string:date>/<string:sensor> Get a specific sensor data for a given day GET application/json
5 /insertdata Insert all sensor data into database POST application/json
6 /setpump Set moisture threshold for automatic water pump POST application/json
7 /getpump Read the threshold value from the server GET application/json
8 /deletedata/<string:date> Delete all sensor data for a given day DELETE application/json

JSON Templates

/getdata/now :

{
  "humidity": 0.77, 
  "light": 425, 
  "moisture": {
    "plant0": 0.47, 
    "plant1": 0.72
  }, 
  "temparature": 33.2
}

/getdata/<dd-mm-yyyy> :

{
  "moisture": {
    "plant0": [],
    "plant1": []
  },
  "temparature": [],
  "humidity": [],
  "light": []
}

/getdata/<dd-mm-yyyy>/light :

{
  "records": [
    {
      "light": [
        0,
        6.67,
        5.83,
        5.83,
        6.67,
        273.33,
        600.83,
        523.33,
        6.67,
        5.83,
        6.67
      ]
    }
  ]
}

/insertdata:

{
  "moisture": {
    "plant0": 0.0,
    "plant1": 0.0
  },
  "temparature": 0.0,
  "humidity": 0.0,
  "light": 0.0
}

/setpump:

{"pump0": 0.0, "pump1": 0.0}

/getpump :

{
  "settings": {
    "pump0": 0.0, 
    "pump1": 0.0
  }
}

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.