GithubHelp home page GithubHelp logo

shujanpannag / iot_project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mbmanu/iot_project

0.0 0.0 0.0 9.02 MB

Home Surveillance System using Raspberry Pi and OpenCV

License: GNU General Public License v3.0

Python 100.00%

iot_project's Introduction

Doorstep monitoring system built using Raspberry Pi, Python and OpenCV.

Requirements

Training the model

    $ python3 face_training.py

Run - recognizes face and updates the database

    $ python3 face_recog.py

This is a REST API built for IOT project using Golang, Gin and Gorm.

Requirements

Environment variables

  • HOST : Hostname
  • DBPORT : PostgreSQl Server Port
  • DBUSER : Database User Name
  • DBNAME : Database Name
  • DBPASSWORD : Database Password
  • EMAIL_ADDR : From Email
  • EMAIL_PSWD : From Email Password
  • EMAIL_HOST : SMTP Host
  • EMAIL_PORT : SMTP Port

Install

    $ go build

Run the app

    $ go run cmd/main.go

REST API

The REST API Methods to the above app is described below.

Node Log

GET /v0/nodelog/:date

    curl -i -H 'Content-Type: application/json' http://localhost:8080/v0/nodelog/2000-06-28

POST /v0/nodelog/

    curl -i -H 'Content-Type: application/json' -d '{"relname": " " , "ipaddr": " ", "datetime": " "}' http://localhost:8080/v0/nodelog/

User Log

GET /v0/userrel/:rel

    curl -i -H 'Content-Type: application/json' http://localhost:8080/v0/nodelog/name

POST /v0/userrel/

    curl -i -H 'Content-Type: application/json' -d '{"name": " ", "rel": " ", "email": " "}' http://localhost:8080/v0/userrel

PUT /v0/userrel/:name

   curl -i -H 'Content-Type: application/json' -d '{"name": " ", "rel": " ", "email": " "}' http://localhost:8080/v0/name

POST /v0/userrel/:name

    curl -i -H 'Content-Type: application/json' http://localhost:8080/v0/name

Server Log

GET /v0/getlog

    curl http://localhost:8080/v0/getlog

Contributions

Feel free to contribute. You know the drill fork and request a PR ;)

iot_project's People

Contributors

mbmanu avatar mustafa011 avatar shujanpannag 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.