Page 1 of 1

use tablet camera as motion detection

Posted: Saturday 15 September 2018 11:10
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.

Re: use tablet camera as motion detection

Posted: Saturday 15 September 2018 11:17
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.

Re: use tablet camera as motion detection

Posted: Saturday 15 September 2018 11:25
by underscore4
Nice, thanks a lot.
I will test it. would be also visible in Domoticz with any way?

Re: use tablet camera as motion detection

Posted: Saturday 15 September 2018 12:07
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.

Re: use tablet camera as motion detection

Posted: Monday 17 September 2018 13:58
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.