Skip to content

Latest commit

 

History

History
65 lines (38 loc) · 1.64 KB

README.md

File metadata and controls

65 lines (38 loc) · 1.64 KB

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.