Enable/disable motion detection through api / command?

Xeoma Software

Moderators: Admin_N, Administrator, Admin_P, Admin_K

Enable/disable motion detection through api / command?

Postby pomsep » Fri Jan 24, 2014 11:03 am

Hello. I've a commercial licence of xeoma and I would like to know if you've any future plans
releasing a version where motion detection can be enabled/disabled through
command/api ?

If such feature was present, I could make a custom mobile app to enable/disable motion detection by clicking
a single button.

I would like to use xeoma as alarm system and this feature would be very desirable.

Thanks
Tassos
pomsep
 
Posts: 3
Joined: Sat Jun 15, 2013 12:46 am

Re: Enable/disable motion detection through api / command?

Postby Admin_J » Fri Jan 24, 2014 1:54 pm

Hello!
Thank you for your interest in our software.

It's a good idea, we'll gladly add this feature in one of the future versions.
Please subscribe to our newsletter to get to know as soon as it is added.
Admin_J
 
Posts: 111
Joined: Tue Aug 13, 2013 12:19 pm

Re: Enable/disable motion detection through api / command?

Postby Admin_N » Thu Mar 27, 2014 1:18 pm

Hi again Tassos!

We're getting ready to release a module that will receive http commands - much like what you want to do - so that you will be able to turn on or off the chain after this module. When it's on, all following modules will get the image and work as usual. When it's off, the following modules will not get the image (the image will be blocked) and won't work.

Will it work for you? Or what you need is not to disable motion detector but to get it to the Skipping state when it doesn't work yet doesn't block image either?
Admin_N
 
Posts: 797
Joined: Thu Mar 01, 2012 4:43 pm

Re: Enable/disable motion detection through api / command?

Postby TANE » Fri Apr 11, 2014 8:58 pm

Is this option already available?
I like to disable some options..like send e-mail when motion.
Trigger will be done form Fibaro Hc2. When Alarm Disarmed no e-mail..
TANE
 
Posts: 13
Joined: Sun Jul 14, 2013 9:08 pm

Re: Enable/disable motion detection through api / command?

Postby Admin_N » Fri Apr 18, 2014 12:32 pm

Yes, it is ready. There wasn't an official release with the HTTP switcher yet but we can send you a beta version to see if it works for you. Will that do?

What is your OS? How many bit?
Admin_N
 
Posts: 797
Joined: Thu Mar 01, 2012 4:43 pm

Re: Enable/disable motion detection through api / command?

Postby bretzle » Sun Apr 27, 2014 7:42 am

Has this been compiled into linux64? I'd love to try it out.
bretzle
 
Posts: 25
Joined: Fri Jun 21, 2013 2:37 pm

Re: Enable/disable motion detection through api / command?

Postby Admin_J » Mon Apr 28, 2014 1:28 pm

bretzle Wrote:Has this been compiled into linux64? I'd love to try it out.


Hello!

Please try this version with new "HTTP switcher" module and let us know if it works for you.
Admin_J
 
Posts: 111
Joined: Tue Aug 13, 2013 12:19 pm

Re: Enable/disable motion detection through api / command?

Postby bretzle » Tue Apr 29, 2014 9:34 am

Hi, thanks for the beta.

I've installed it and have attempted to set it up. When I first opened the HTTP Switcher it was pre populated with url information and I began to test. Before I could get it to work it reported an error with the assigned port and now that error is persisting no matter what port I try to listen on. As you can see on the attached image I've changed the port to a free on at 10097 but still have that error.

Any Ideas?

- I haven't had a chance to test the sender module yet but will report back when I get a chance.
Attachments
Capture.PNG
Capture.PNG (241 KiB) Viewed 23413 times
bretzle
 
Posts: 25
Joined: Fri Jun 21, 2013 2:37 pm

Re: Enable/disable motion detection through api / command?

Postby bretzle » Tue Apr 29, 2014 9:40 am

Actually, just let me play for a bit. I've put in my own commands and I'm getting a response in the browser....
bretzle
 
Posts: 25
Joined: Fri Jun 21, 2013 2:37 pm

Re: Enable/disable motion detection through api / command?

Postby bretzle » Tue Apr 29, 2014 10:33 am

Ok Disregard that. It seems to be working. I'm testing the sender now
bretzle
 
Posts: 25
Joined: Fri Jun 21, 2013 2:37 pm

Re: Enable/disable motion detection through api / command?

Postby bretzle » Tue Apr 29, 2014 11:06 am

HTTP Request Sender doesn't seem to be working on Linux64. I'm not sure if it's the sending method as the HTTP Request Sender config window is returning "connection was tested successfully" for both POST and GET methods. I don't believe that my OS supports these methods though, I've been working with curl.

I have the sender modules setup like this: Camera -> Marking -> Scheduler -> HTTP Request Sender. It's sending a request to a HTTP Switcher running on the same server. I've ignored the extra parameters and have entered the full HTTP request into the "hostname or ip address" field.

Can you see any problems with this setup? I can write a script to run independent from Xeoma as a work-around for the time being.
bretzle
 
Posts: 25
Joined: Fri Jun 21, 2013 2:37 pm

Re: Enable/disable motion detection through api / command?

Postby Admin_J » Wed Apr 30, 2014 7:21 am

bretzle Wrote:HTTP Request Sender doesn't seem to be working on Linux64.


Hello!

How would you expect the module to work? Would you expect it to send commans regularly, at certain intervals? Could you please describe a situation in which you are planning to use it?
Admin_J
 
Posts: 111
Joined: Tue Aug 13, 2013 12:19 pm

Re: Enable/disable motion detection through api / command?

Postby bretzle » Wed Apr 30, 2014 9:14 am

Hi,

I don't think it would be the intended use but I was trying to get scheduler to activate the sender once a day. So it is set up as a direct connection from scheduler to the sender.

The application runners are performing a simlar task by calling a script which in turn sends a http request via curl.

Capture.jpg
Capture.jpg (197.31 KiB) Viewed 23389 times


As you can also see the HTTP Switcher is turning motion email alerts on and off. This seems to be working.

As a feature request, would it be possible to see in the UI when a module is switched off or on, similar to how a module is greyed out when deactivated.

Cheers.
bretzle
 
Posts: 25
Joined: Fri Jun 21, 2013 2:37 pm

Re: Enable/disable motion detection through api / command?

Postby Admin_J » Wed Apr 30, 2014 9:48 am

In your screenshot the Scheduler which is connected to HTTP Sender is turned off. When you tested it, was it on?
Admin_J
 
Posts: 111
Joined: Tue Aug 13, 2013 12:19 pm

Re: Enable/disable motion detection through api / command?

Postby bretzle » Wed Apr 30, 2014 9:56 am

Yes it was on when I was testing it.
bretzle
 
Posts: 25
Joined: Fri Jun 21, 2013 2:37 pm

Next

Return to Xeoma - General discussion

Who is online

Users browsing this forum: No registered users and 5 guests

cron