Coder Social home page Coder Social logo

logingapi's Introduction

Home logs

You have some sensors and you would like to monitor their values. This backend system can save data and create some interesting graphs.

Intro

This is an API which can save measurements from sensors placed at your home or any place. Something like home assistant but written by me for practice.

Some basic Features:

  • A user can have one or more houses.
  • A house can have one or more spaces
  • A space can have one or more sensors
  • Every external device is authenticated with a token or for special calls with username/password
  • There are expiring tokens every day or persistent for special users.
  • Limits for devices a user can connect with tokens
    At this state, there is no front end management system or a user friendly UI, will fix it someday. If anyone is interested we can work together this piece of code. Always for fun

Any suggestions on security or code techniques are appreciated. Code is free for modifications.

Prerequisites

You can clone and use this as a normal Django app. This is not a tutorial on installing Django, sorry...

Installing

Install project requirements with:

pip install -r requirements.txt

Using API

For using the api endpoints with your clients like custom weather stations or arduino/raspberry see the API.md file for instructions

Built With

  • Django - The web framework for perfectionists with deadlines.
  • DRF - Django REST framework is a powerful and flexible toolkit for building Web APIs.

Contributing

Fell free to give advice, code reviews or any other ideas

Authors

Screens

Project has built in panel in order to monitor your sensors. This panel is behing a login page.

If you need more complex fron-end panel, Grafana has everything you need!

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • System can be unstable. Use with your own risk

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.