Git Product home page Git Product logo

cam-signals-receiver's Introduction

MVP Camera network integration with Telegram bot.

Main project aim: simple and unified access to cameras in one application.

How to run

Configuration

Setup yours cameras in the src/main/resources/application.properties.

  1. Copy src/main/resources/application.properties.example to src/main/resources/application.properties.
  2. Setup cam.count
  3. Setup properties cam1.* and so on.
  4. Setup telegram.chat_id
  5. Setup telegram.bot_id
  6. Setup telegram.bot_token
  7. Tune src/main/resources/logback.xml.

After run

Application will write logs into bot.log and by default truncate on 10Mb.

Application will write every processed id into file processed/id.<NUMBER>, where NUMBER is id from telegram.

IPv6

Application tested with IPv6 tcp stack.

Supported cameras

Full support

  1. Apexis J011WS
  2. Dericam H502W

Partial support

  1. Sricam Sp017 - take snapshots over ffmpeg

Callback setting for motion detection

In camera interface turn on motion detection and http callback

to application ip with callback as: http://192.168.0.133:8089/cam/alarm.do?camId=<CAM_ID>

where CAM_ID corresponds to cam<CAM_ID>.* settings,

192.168.0.133 application ip.

8089 application port from application.propeties: server.port=8089

Telegram bot commands

/all - take snapshots from all cameras.

/s1 - take snapshots from first camera.

/l1, /r1, /d1, /u1 - move first camera to left, right, down and up.

/disable 1 - disable notifications from first camera.

/enable 1 - enable notifications from first camera.

/reset - reset all notification settings.

OS Support

Developed and tested under Ubuntu linux.

cam-signals-receiver's People

Contributors

firewolf2007 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hervehobbes

cam-signals-receiver's Issues

Block on /all

Receiving next commands blocked until current command not finished.

i18n

verify(sender, times(1)).sendMessage(eq(1234), eq("Команда не обработана.\nПомощь: /help"));

sender.sendMessage(chatId, "Список команд:\n"

sender.sendMessage(chatId, "Команда не обработана.\nПомощь: /help");

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.