- Apache を起動
$ sudo systemctl start apache2
- Motion 起動
$ sudo motion
[31860360:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
[31860360:motion] [NTC] [ALL] motion_startup: Motion 4.1.1 Started
[31860360:motion] [NTC] [ALL] motion_startup: Logging to file (/var/log/motion/motion.log)
- PC から Motion 動画にアクセス:
- Motion 自動作動:
動体検知 → output_pictures → on_picture_save → LINE通知 (line.sh)
- ターミナルでは,上記のMotion 起動メッセージの下に,つぎのメッセージが現れる:
{"status":200,"message":"ok"}
- 送信先が,通知を受信する
- Motion 停止
|