Giter Club home page Giter Club logo

iotplatform's Introduction

IoT Platform

Generic Internet of Things platform for data collection. Devices can be registered with custom fields. Supports triggers and visualization through charts.

Table of contents

Technology stack

Charts are powered by Chart.js.

ESP8266 module was used for this project.

Features

Overview

Home page.

Devices

List of devices.

Device Fields

Device fields are used as keys for sending data to the platform.

Device Settings

Basic device configuration and settings.

Device Triggers

Triggers via email and webhook.

Device Data

Browse device data.

Charts

Create charts.

Edit Chart

Edit chart and add fields to display on it.

Single Field Chart

Example of single field chart.

Multi Field Chart

Examples of multi field charts.

Usage

Request

Example request

localhost:8000/data?api_key=SYKzfAmDjFjbGonBbIHWrucslNFN8nD1mnABYXfhDztjY
&temperature=50
&humidity=55
&pressure=101325

It is also possible to use additional parameters: datetime and mac_address.

Response

Example response

{
  status: "success",
  read_time: 15,
  added: [
    "temperature",
    "humidity"
  ],
  not_added: [
    "pressure"
  ],
  triggers_activated: [
    {
      field: "temperature",
      min_value: "10.00",
      max_value: "40.00",
      email: "[email protected]",
      webhook_url: null
    }
  ]
}

Error Responses

  • Missing api key.
  • No values.
  • Non existing api key.
  • Non-numeric value for field name.

Installation

  • Install Apache, PHP7, MySQL and Composer
  • Run composer install in root directory
  • Create database using iotplatform.sql
  • Configure .env file
  • Run php artisan serve in root directory

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.