Giter Site home page Giter Site logo

denapom11 / insights-meraki-mv-mt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flopach/insights-meraki-mv-mt

0.0 1.0 0.0 2.79 MB

Getting Insights with Meraki Cameras and Sensors. Real demo showcase in the Cisco Frankfurt Office.

License: MIT License

Python 45.09% HTML 54.91%

insights-meraki-mv-mt's Introduction

Getting Insights with Meraki Cameras and Sensors

This real showcase from the Cisco Frankfurt office highlights the possibilities of the Meraki MV cameras and Meraki MT sensors.

Currently there are 2 use-cases in one Python application implemented:

  • Person detection within pre-defined zones: If one or more persons are standing within the pre-defined zone (setting in the Meraki-dashboard), the camera is sending out an MQTT message to the python script. Then, only if the person stays for at least x seconds, the data (how many persons, what timeframe, for how long) will be stored in a time-series database.
  • Open/Close MT20 Sensor + Meraki Camera Snapshot: The webapp shows who has opened the door. It requests the last x events from the Open/Close Meraki MT20 sensor and downloads snapshots from the time where the sensor has been triggered (=door was opened) from a Meraki MV camera.

Architecture

The script uses several components:

  • Meraki MT sensors + Meraki MV camera 2nd generation
  • MQTT broker Mosquitto: to send and receive the object detection messages from the MV cameras
  • Time series database InfluxDB 2.0: To store the information (this script is not compatible with InfluxDB 1.x!)
  • Grafana for visualisation
  • Python
    • Flask web-framework
    • Paho-MQTT client

Configuration

  1. Setup your Meraki equipment accordingly, define zones in the camera settings
  2. Install & setup Mosquitto, InfluxDB 2.0, Grafana on a Linux system
  3. Clone this repo and deploy the python files in your virtual environment. I would recommend to use pipenv (Pipfile is included).
  4. Edit the config.pyfile and insert your credentials and modify you configuration.
  5. Setup your Grafana dashboard according to your zones and data.
  6. Start the script and let it run.

Versioning

1.0 - inital features: person detection with zones and open/close snapshot feature

Contributors

  • Florian Pachinger - Code - flopach
  • Stephan Luhn - Meraki & Hardware
  • Rasim Yigit - Meraki & Hardware - rayigit

License

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

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.