Page 1 of 1

Android Ip Cam and Domoticz

Posted: Saturday 26 September 2015 9:04
by sundberg84
Hi!

Added this to wiki:
Android Phone (Tested with Sony Xperia V) using this app: https://play.google.com/store/apps/deta ... pas.webcam (Change default port!) image URL: shot.jpg

The android app Ip Camera works great to connect to domoticz.
I have it running now for 48h with domoticz and motion connected to it. Works great.

Default port is 8080 so change that if you run Domoticz at default port.

Re: Android Ip Cam and Domoticz

Posted: Monday 28 September 2015 4:47
by Heisenberg
So you are using a phone as ip cam? I have an old android phone but I never thought of that before !
Where do you put the camera?

Re: Android Ip Cam and Domoticz

Posted: Monday 28 September 2015 20:07
by sundberg84
Hi!

I have put the camera inside a cabinet with a glas door.
From the back-wall in the cabinet i have the USB charger running through and then to a timer.

Works great except night-vision... pretty black :) but thats fine. I have two cams outside with nightvision.

The feed from the android-phone is monitored by motion running on a raspberry.
It post to a ftp server running on the same raspberry and updates a switch in Domoticz on motion.

Domoticz (running on a second raspberry) activated and deactivates motion depending on my security status (using SSH).

Re: Android Ip Cam and Domoticz

Posted: Tuesday 29 September 2015 23:09
by Evelen
good ide :D
older mobile phones are way cheaper than IP-Cams :D

Re: Android Ip Cam and Domoticz

Posted: Wednesday 30 September 2015 22:58
by Evelen
Don't work for me.

I see the video in 0,2 sec and than it is just nothing.
What are the correct config?

Image

EDIT: Working
working.png
working.png (320.11 KiB) Viewed 10994 times

Re: Android Ip Cam and Domoticz

Posted: Thursday 01 October 2015 21:33
by sundberg84
Hi!

The images only shows for 1 second when you press test connection... but it works if you add it and use the camera menu.
I have also not the /shot.jpg but i use shot.jpg
Skärmklipp.JPG
Skärmklipp.JPG (22.91 KiB) Viewed 10990 times

Re: Android Ip Cam and Domoticz

Posted: Friday 20 November 2015 19:19
by patoche
Hi thank you for this topic.
It is ok with xperia z1 compact and samsung galaxy S3
Enjoyed

Re: Android Ip Cam and Domoticz

Posted: Saturday 20 July 2019 10:30
by renerene
I'm planning to use this setup also for my wall mounted android tablet running dashticz. It gives me an IP cam for free!

Questions from beginner:
1) burgler alarm: how to trigger a domoticz dummy switch after IP Webcam detects motion or sound?
At the moment I'm struggling with fake PIR detections on our cat. An extra sensor could be helpfull

2) how to initiate a screenshot (by domoticz) to IP webcam? For example, automaticly mail an image after a PIR is triggered? Is this standard Domoticz functionality?

Re: Android Ip Cam and Domoticz

Posted: Thursday 01 August 2019 21:32
by zicht
renerene wrote: Saturday 20 July 2019 10:30 I'm planning to use this setup also for my wall mounted android tablet running dashticz. It gives me an IP cam for free!

Questions from beginner:
1) burgler alarm: how to trigger a domoticz dummy switch after IP Webcam detects motion or sound?
At the moment I'm struggling with fake PIR detections on our cat. An extra sensor could be helpfull

2) how to initiate a screenshot (by domoticz) to IP webcam? For example, automaticly mail an image after a PIR is triggered? Is this standard Domoticz functionality?
1. someone has made a script to do motion detection, it is linux based and i can't use it so : no answer
2. once setup a cam you can grap an image from domotics on any trigger with
"https://xxx.xxx.xxx.xxx:xxxx/camsnapshot.jpg?'idx=1"
This can be done by curl or any other webrequest.
Once you have grabbed the image you can send it by email, telegram or anything you have implemented.
It works fine for me, totaly customised for my needs (implemented in telegram)
I have choosen to get only images on my demand and not by default on every movement detection.

sidenote :
- on RPI doing many write commands can corrupt SD cards , so use another storage location.
- Plain curl done in lua can dramatic slow down domoticz