VStarcam Motion Detection
Moderators: leecollings, remb0
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
VStarcam Motion Detection
Hi all,
Just starting out in the IP Camera world and bought a cheap £40 VStarcam for trying out, going to use these mainly for inside, like the garage and babies room. I have got it working in Domoticz, can view the feed (had to use the jpeg screen shot feed). In the software in the camera they have removed the motion detection setting that used to let you send a http command which would have been great to switch a dummy switch so I know there is movement in the garage. That way I can set Domoticz to turn the music on in the bedroom if it detects motion at 3am or when we are not home.
The two options I am left with is sending an FTP screen shot or an email to myself. I was wondering if there is anyway of getting an FTP command to somehow switch a dummy switch in domoticz or even maybe could an email being sent switch a dummy switch. I don't think either is possible but there are some great minds on this forum and maybe there is a solution?
Thanks for reading!
Cheers
Just starting out in the IP Camera world and bought a cheap £40 VStarcam for trying out, going to use these mainly for inside, like the garage and babies room. I have got it working in Domoticz, can view the feed (had to use the jpeg screen shot feed). In the software in the camera they have removed the motion detection setting that used to let you send a http command which would have been great to switch a dummy switch so I know there is movement in the garage. That way I can set Domoticz to turn the music on in the bedroom if it detects motion at 3am or when we are not home.
The two options I am left with is sending an FTP screen shot or an email to myself. I was wondering if there is anyway of getting an FTP command to somehow switch a dummy switch in domoticz or even maybe could an email being sent switch a dummy switch. I don't think either is possible but there are some great minds on this forum and maybe there is a solution?
Thanks for reading!
Cheers
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: VStarcam Motion Detection
Mayve email and IFTT?
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: VStarcam Motion Detection
Looks interesting. Have you got this to work with Domoticz?Egregius wrote:Mayve email and IFTT?
Cheers
Edit:- Found some info on it - shall give it a go now..
Thanks!
-
safi78
- Posts: 204
- Joined: Thursday 05 September 2013 15:39
- Target OS: Linux
- Domoticz version: LastBeta
- Contact:
Re: VStarcam Motion Detection
Or do it with motion: https://www.domoticz.com/wiki/Camera_Se ... ion_sensor
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: VStarcam Motion Detection
I thought that maybe too labour intensive for a Raspberry Pi, I have found a way to add a url that the camera can send however I'm having issues. The code I send is:-safi78 wrote:Or do it with motion: https://www.domoticz.com/wiki/Camera_Se ... ion_sensor
http://<IP ADRESS:PORT/set_alarm.cgi?alarm_http_url=http://<IP ADDRESS:PORT/json.htm?type=command¶m=switchlight&idx=2&switchcmd=On&user=USER&pwd=PASSWORD
But it only saves the file up until the & at the end of command&, I think its to do with the & as that seems to be an indication to move onto the next item under the set_alarm.cgi? I have tried with " " and ' ' but with no luck. Any ideas?
- Marci
- Posts: 532
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: VStarcam Motion Detection
Percent encode the &'s in the Domoticz URI... so change each & to %26
See https://en.m.wikipedia.org/wiki/Percent ... characters
Or use nodeJS to "bridge" the camera to Domoticz... see https://github.com/PatchworkBoy/domoticz-cam-bridge
See https://en.m.wikipedia.org/wiki/Percent ... characters
Or use nodeJS to "bridge" the camera to Domoticz... see https://github.com/PatchworkBoy/domoticz-cam-bridge
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: VStarcam Motion Detection
Thanks Marci, I have the server up and running. Test by going to 192.168.1.26:8091 and the switch in domoticz turned on. However using the camera it doesn't. I'm thinking that it doesn't have a http url option even though I have set it. Another odd thing is that it sets it as http:/192.168.1.26:8091 rather than http:// even though thats what I set it too.. I am getting notifications on my phone pushed from the camera so I know its detecting people. Snippet of the get_params.cgi
var alarm_motion_armed=1; var alarm_motion_sensitivity=1; var motion_plan1=0; var motion_plan2=0; var motion_plan3=0; var motion_plan4=0; var motion_plan5=0; var motion_plan6=0; var motion_plan7=0; var motion_plan8=0; var motion_plan9=0; var motion_plan10=0; var motion_plan11=0; var motion_plan12=0; var motion_plan13=0; var motion_plan14=0; var motion_plan15=0; var motion_plan16=0; var motion_plan17=0; var motion_plan18=0; var motion_plan19=0; var motion_plan20=0; var motion_plan21=0; var alarm_input_armed=0; var alarm_ioin_level=0; var alarm_mail=0; var alarm_audio=0; var alarm_temperture=0; var alarm_iolinkage=0; var alarm_ioout_level=0; var alarm_upload_interval=0; var alarm_presetsit=0; var alarm_snapshot=1; var alarm_record=1; var alarm_schedule_enable=1; var alarm_http=1; var alarm_http_url="http:/192.168.1.26:8091"; var alarm_schedule_sun_0=-1; var alarm_schedule_sun_1=-1; var alarm_schedule_sun_2=-1; var alarm_schedule_mon_0=-1; var alarm_schedule_mon_1=-1; var alarm_schedule_mon_2=-1; var alarm_schedule_tue_0=-1; var alarm_schedule_tue_1=-1; var alarm_schedule_tue_2=-1; var alarm_schedule_wed_0=-1; var alarm_schedule_wed_1=-1; var alarm_schedule_wed_2=-1; var alarm_schedule_thu_0=-1; var alarm_schedule_thu_1=-1; var alarm_schedule_thu_2=-1; var alarm_schedule_fri_0=-1; var alarm_schedule_fri_1=-1; var alarm_schedule_fri_2=-1; var alarm_schedule_sat_0=-1; var alarm_schedule_sat_1=-1; var alarm_schedule_sat_2=-1; var alarm_note=1; var alarm_server=""; var alarm_user=""; var alarm_pwd=""; var alarm_port=0;
Cheers!
var alarm_motion_armed=1; var alarm_motion_sensitivity=1; var motion_plan1=0; var motion_plan2=0; var motion_plan3=0; var motion_plan4=0; var motion_plan5=0; var motion_plan6=0; var motion_plan7=0; var motion_plan8=0; var motion_plan9=0; var motion_plan10=0; var motion_plan11=0; var motion_plan12=0; var motion_plan13=0; var motion_plan14=0; var motion_plan15=0; var motion_plan16=0; var motion_plan17=0; var motion_plan18=0; var motion_plan19=0; var motion_plan20=0; var motion_plan21=0; var alarm_input_armed=0; var alarm_ioin_level=0; var alarm_mail=0; var alarm_audio=0; var alarm_temperture=0; var alarm_iolinkage=0; var alarm_ioout_level=0; var alarm_upload_interval=0; var alarm_presetsit=0; var alarm_snapshot=1; var alarm_record=1; var alarm_schedule_enable=1; var alarm_http=1; var alarm_http_url="http:/192.168.1.26:8091"; var alarm_schedule_sun_0=-1; var alarm_schedule_sun_1=-1; var alarm_schedule_sun_2=-1; var alarm_schedule_mon_0=-1; var alarm_schedule_mon_1=-1; var alarm_schedule_mon_2=-1; var alarm_schedule_tue_0=-1; var alarm_schedule_tue_1=-1; var alarm_schedule_tue_2=-1; var alarm_schedule_wed_0=-1; var alarm_schedule_wed_1=-1; var alarm_schedule_wed_2=-1; var alarm_schedule_thu_0=-1; var alarm_schedule_thu_1=-1; var alarm_schedule_thu_2=-1; var alarm_schedule_fri_0=-1; var alarm_schedule_fri_1=-1; var alarm_schedule_fri_2=-1; var alarm_schedule_sat_0=-1; var alarm_schedule_sat_1=-1; var alarm_schedule_sat_2=-1; var alarm_note=1; var alarm_server=""; var alarm_user=""; var alarm_pwd=""; var alarm_port=0;
Cheers!
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: VStarcam Motion Detection
I have managed to get it to say http://192.168.1.26:8091 but its not working. If I copy the http://192.168.1.26:8091 and paste it in my web browser my lights come on. So I suspect my camera doesn't support url! Doh! What cam are you using Marci?
Edit:-I think its working now, there is just a delay in the camera sending the url. Woohoo.
Edit 2:- False positive lol. It doesn't work. My browser was refreshing in the background which was turning on the lights. Never mind, was worth a shot.
Thanks everyone.
Edit:-I think its working now, there is just a delay in the camera sending the url. Woohoo.
Edit 2:- False positive lol. It doesn't work. My browser was refreshing in the background which was turning on the lights. Never mind, was worth a shot.
Thanks everyone.
- Marci
- Posts: 532
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: VStarcam Motion Detection
Several DBPower ones, a few magyon ones, and some custom ones using USB capture sticks / Sony eviD100 on spare RaspberryPis.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: VStarcam Motion Detection
Cheers, gonna have to keep searching as my VStartcam isn't sending the http url when it detects motion. Shame really.
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: VStarcam Motion Detection
Only other way is if I can upload a screenshot via FTP to domoticz or another program that could in turn send the url to your cam bridge or directly to the switch. Most IP cameras have the ability to upload a screenshot to FTP. Hmmmm....
- Marci
- Posts: 532
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: VStarcam Motion Detection
Yup, I have a node_module that handles that too... tomorrow.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: VStarcam Motion Detection
Haha why am I not surprised... I'd love to see your house! Thanks mate!Marci wrote:Yup, I have a node_module that handles that too... tomorrow.
Edit:- I found homebridge smtpsensor that looks promising for HomeKit purposes
https://www.npmjs.com/package/homebridge-smtpsensor
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: VStarcam Motion Detection
Sorry to be a pain Marci, any chance of that node_module. I know your very busy with MQTT integration for eDomoticz 
- Marci
- Posts: 532
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: VStarcam Motion Detection
Soz - family visiting today - will get it online tomorrow!
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: VStarcam Motion Detection
Haha, no probs mate.. Have a day off!
You deserve it lol
- Marci
- Posts: 532
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: VStarcam Motion Detection
Have updated the above git repo... https://github.com/PatchworkBoy/domoticz-cam-bridge
Now contains two separate server files: one for http, one for ftp... and instructions modified. Just delete everything you created first time round and redo with these versions - probably easiest.
Now contains two separate server files: one for http, one for ftp... and instructions modified. Just delete everything you created first time round and redo with these versions - probably easiest.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: VStarcam Motion Detection
Excellent.. thanks mate!!!!
Whats the best way to remove the old one before I install this one?
Whats the best way to remove the old one before I install this one?
-
simon_rb
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: VStarcam Motion Detection
I tried the server_ftp and it doesn't appear to work for me. Is there a log I could send to you?
Cheers
Cheers
- Marci
- Posts: 532
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: VStarcam Motion Detection
See foreverjs GitHub repo for commands to view logs of anything run with forever... https://github.com/foreverjs/forever/bl ... /README.md
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
Who is online
Users browsing this forum: Amazon [Bot] and 1 guest