Android Ip Cam and Domoticz

Moderator: leecollings

Post Reply
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Android Ip Cam and Domoticz

Post 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.
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
Heisenberg
Posts: 135
Joined: Monday 27 January 2014 14:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Android Ip Cam and Domoticz

Post 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?
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: Android Ip Cam and Domoticz

Post 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).
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Android Ip Cam and Domoticz

Post by Evelen »

good ide :D
older mobile phones are way cheaper than IP-Cams :D
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Android Ip Cam and Domoticz

Post 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 11003 times
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: Android Ip Cam and Domoticz

Post 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 10999 times
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
patoche
Posts: 10
Joined: Monday 09 November 2015 19:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Android Ip Cam and Domoticz

Post by patoche »

Hi thank you for this topic.
It is ok with xperia z1 compact and samsung galaxy S3
Enjoyed
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Android Ip Cam and Domoticz

Post 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?
zicht
Posts: 272
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

Re: Android Ip Cam and Domoticz

Post 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
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests