use tablet camera as motion detection

Moderator: leecollings

Post Reply
underscore4
Posts: 21
Joined: Sunday 19 March 2017 22:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

use tablet camera as motion detection

Post by underscore4 »

Hi,
i'm going to install a door sersor detection and my idea would have a wall tablet camera to take a pitcure and send mail if door opened.Anyone has coded this feature with script or using apk solutions on domoticz?

Thanks in advance.
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Re: use tablet camera as motion detection

Post by ben53252642 »

underscore4, I'm not aware of any pre-built solutions however I'd suggest looking at an Android App called Tasker.

I used it successfully to turn Android tablet screens on / off when a motion sensor is activated, it can do many different things.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
underscore4
Posts: 21
Joined: Sunday 19 March 2017 22:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: use tablet camera as motion detection

Post by underscore4 »

Nice, thanks a lot.
I will test it. would be also visible in Domoticz with any way?
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Re: use tablet camera as motion detection

Post by ben53252642 »

Use a second App (for Tasker) called Autoremote to trigger it remotely from Domoticz using a script

I was also able to send text from Domoticz to the tablet and have it speak it out loud.

You will need to do some research and a small amount of coding (mostly copy and paste) to achieve what you want but it is do-able.

https://www.youtube.com/watch?v=ro_dFnrEAUY

Here is a sample bash script I use to send messages to Autoremote

Code: Select all

#!/bin/bash
message=$(echo "message to send goes here" | sed 's/ /%20/g')
curl "https://autoremotejoaomgcd.appspot.com/sendmessage?key=THEAUTOREMOTEKEYGOESHERE&message=${message}"
As I said what you want to do is achievable but this goes into moderate to advanced scripting level.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: use tablet camera as motion detection

Post by markk »

underscore4 wrote: Saturday 15 September 2018 11:10 Hi,
i'm going to install a door sersor detection and my idea would have a wall tablet camera to take a pitcure and send mail if door opened.Anyone has coded this feature with script or using apk solutions on domoticz?

Thanks in advance.
I do something similar very easily.

Use this method viewtopic.php?t=17659#p135550 to turn your tablet camera into an IP camera and add it to Domoticz then use the Domoticz notification function or a simple blockly to send you a snapshot when the door sensor is triggered.
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest