Code Monkey home page Code Monkey logo

datahub's Introduction

Datahub

About

Background

I have many IoT devices generating data and need to store that data somewhere. After searching I did not find any existing projects or free/cheap services the offered the simplicity I was looking for so I decided to write my own IoT database.

Goal

The goal is a fast lightweight system that uses standard HTTP REST for storing and retrieving data. Backend is written in PHP and frontend using Angular, so this can easily be put on any web hotel or be self hosted on your own webserver.

Architecture

architecture

Usage

The IoT devices can for example do a simple HTTP request like this:

POST /api/nodes/my-house/readings

with this data:

temperature=22.5
humidity=30.3

This data can later be retrieved with:

GET /api/nodes/my-house/sensors/temperature/readings

returning:

[
    { "value": 22.5, "timestamp": "2021-09-10T14:30:07Z" },
    { "value": 22.3, "timestamp": "2021-09-10T13:30:03Z" },
    { "value": 22.1, "timestamp": "2021-09-10T12:30:01Z" }
]

For more examples, see api-examples.md or read the Swagger documentation.

Automatic export to another system can also be set up.

File structure

This project consist of two separate parts:

datahub's People

Contributors

fjaderboll avatar

Watchers

Kostas Georgiou avatar  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.