GithubHelp home page GithubHelp logo

krzysztofzurek1973 / webthing-motion-sensor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 47 KB

WebThing: Motion sensor with counter and alarm event.

License: MIT License

CMake 1.52% Makefile 0.14% C 98.33%
esp32 webthing esp-idf motion-sensor smart-home web-thing-server

webthing-motion-sensor's Introduction

webThing Motion Sensor

Introduction

WebThing Motion Sensor is prepared for ESP32 CPUs and uses esp-idf environment (freeRTOS and LwIP included).

It reads the output (default GPIO18 pin) from the motion sensor and communicates with the WebThings Gateway via the WebThing API.

The example motion sensor is here.

Dependencies

Requires:

Example

webthings-node-example-project

or

webthings-empty-project

Features

webThing interface

This webThing has the following properties and one event:

  • motion - motion detected
  • alarm ON/OFF - alarm activation, a notification is sent each time motion is detected
  • counter-1 - motion detection counter, 0..5000
  • last alarm - time of the last sent alarm (notification)
  • counter-2 - alarm counter, 0..99
  • alarm notification (event) - sent when motion detected and alarm is activated

Example event log is shown below.

motion sensor event log

Documentation

See webthings-empty-project and follow steps described in Build webThing Device chapter.

In point 5 download webthing-motion-sensor repository. In function init_things() call init_motion_sensor() and include webthing_motion_sensor.h in your main project file.

Source Code

The source is available from GitHub.

Links

License

This project is licensed under the MIT License.

Authors

webthing-motion-sensor's People

Contributors

krzysztofzurek1973 avatar

Watchers

 avatar

Forkers

mechamonk jaychub

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.