Giter Club home page Giter Club logo

reecam-monitor's Introduction

ReeCam-Monitor

For monitoring ReeCam and SoSoCam IP camera devices on a local network.

How To Use

  1. Create a .env file locally with:

    REECAM_IP=192.168.1.122          # The IP Address of a camera on your network
    REECAM_PWD=<your_cam_password>   # The password for the specified camera on your network
  2. yarn install

  3. yarn test

    You should see something like:

    PASS  src/utils.test.ts
    PASS  src/reecam.test.ts
    -------------|---------|----------|---------|---------|-------------------
    File         | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
    -------------|---------|----------|---------|---------|-------------------
    All files    |   25.36 |    32.43 |   33.89 |   26.17 |
    index.ts     |       0 |        0 |       0 |       0 | 3-103
    monitor.ts   |       0 |        0 |       0 |       0 | 1-108
    recorder.ts  |       0 |        0 |       0 |       0 | 1-57
    reecam.ts    |   95.34 |    83.33 |   89.47 |   95.34 | 55-59
    utils.ts     |   91.66 |    66.66 |     100 |     100 | 12
    -------------|---------|----------|---------|---------|-------------------
    
    Test Suites: 2 passed, 2 total
    Tests:       16 passed, 16 total
    Snapshots:   0 total
    Time:        7.443 s
    Ran all test suites.
    ✨  Done in 8.62s.
    
  4. ipcams --help

    You should see something like:

    Usage: ipcams [options] [command]
    
    Options:
      -V, --version    output the version number
      -h, --help       display help for command
    
    Commands:
      add <ip> <user>  Adds a configured camera. Password will be requested securely.
      list             Shows the configured IP cameras.
      remove <ip>      Removes a configured IP camera.
      monitor          Monitor online cameras
      help [command]   display help for command
    
  5. ipcams add <CAMERA_IP> admin|visitor

    This will securely prompt your for a password and store the data encoded in a local file.

  6. ipcams monitor

    This will start monitoring and producing event related content from camera alarm periods.

  7. yarn serve

    This will start the monitor and local web server on port 8080. You can navigate to the web app using http://localhost:8080/app in a browser or access the API at http://localhost:8080/api

  8. yarn start

    This will start the monitor and local web server on port 8080 in a docker container, using the docker-compose.yml file. You can navigate to the web app using http://localhost:8080/app in a browser or access the API at http://localhost:8080/api

Docker Compose Example

version: '3.8'
services:
   reecam-web:
      image: giocirque/reecam-web:latest
      network_mode: bridge
      restart: always
      environment:
         - PUBLIC_URL=app
         - PUBLIC_HOST=http://localhost:5555
      volumes:
         - /array/data/ipcams:/reecam/.ipcams
      ports:
         - 5555:8080

reecam-monitor's People

Contributors

vannadii avatar

Watchers

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