Giter Site home page Giter Site logo

backend-mppt-controller's Introduction

Mppt Controller

How to install and run

  1. Clone the repository

  2. Install dependencies

    npm install
  3. Update your path where this program cloned in services_install.js

  4. Install Services

    node services_install.js

API Endpoints

Databases

  • GET /mppt - List all MPPT

  • DELETE /mppt/:mppt_sn" - Delete mppt by mppt_sn

  • POST /mppt - Create a new mppt

    {
    "mppt_sn":"exampleMPPT001",
    "mppt_ip":"200.0.0.0"
    }

Fetching

  • GET /get-system-data - Get mppt system data by ip mppt
  • GET /get-user-network - Get mppt user network by ip mppt

Controller

  • POST /set-reboot - Set reboot mppt

  • POST /set-factory-reset - Set factory reset mppt

  • POST /set-all-module-on - Set module on

  • POST /set-all-module-off - Set module off

  • POST /set-sync-system - Set sync system

  • POST /set-user-network - Set user Network

    { 
    "default_ip": "192.168.0.0" ,
    "ssid" : "wifi",
    "pass" : "pass",
    "ip" : "200.10.2.10",
    "gateway" : "200.10.2.1",
    "subnet" : "255.255.255.0",
    "server" : 1,
    "mode" : 2
    }

Postman Collection

Import the provided Postman Collection for testing the API endpoints.

How to Import Postman Collection

  1. Open Postman
  2. Click on Import button
  3. Select the file Mppt control.postman_collection.json from the postman directory
  4. Start testing the endpoints

Postman Collection File

The Postman Collection file is located in the postman directory and is named Mppt control.postman_collection.json.

backend-mppt-controller's People

Contributors

gesarizky avatar

Watchers

 avatar

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.