Controlling (enable/disable) IP WEbCAMS (Foscam) w/ AD2PI

General Discussion

Re: Controlling (enable/disable) IP WEbCAMS (Foscam) w/ AD2

Postby kevin » Mon Jul 27, 2015 10:13 pm

OK, well I will work on a Custom "GET" Notification type that will satisfy your need here... it's on my todo list, but I don't have an ETA. The fact that it does POST tells me the script doesn't parse the values in the request from a POST, only a URL QueryString seems to work for these cameras.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Controlling (enable/disable) IP WEbCAMS (Foscam) w/ AD2

Postby kevin » Tue Jul 28, 2015 11:20 am

Hey Wilson,

I have added the GET method to the custom notification form. You will structure it just like the photo you posted to this thread, except you will choose the GET method instead of the POST method, and of course URLENCODED

You will need to update your code and restart:

cd /opt/alarmdecoder-webapp
git pull origin dev

restart gunicorn
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Controlling (enable/disable) IP WEbCAMS (Foscam) w/ AD2

Postby wilsonb » Tue Jul 28, 2015 12:03 pm

Thank you so much..
Successfully pulled in the DEV updates and see the GET option in Custom - Notification

Will try it and give feedback..

Cheers
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

Re: Controlling (enable/disable) IP WEbCAMS (Foscam) w/ AD2

Postby wilsonb » Tue Jul 28, 2015 12:57 pm

Thank you so much.
GET got things working. (For some reason Web communication is VERY slow). Clicking on a settings option and screen refreshses, it takes 20 + sec.


Was able create arm/disarm notifications to trigger 1 camera successfully.

It took a while.. 30 Key and values. In this case,
A future request would be to maybe copy a Notification to another, so there are only few things to change/edit.

Also, it didn't matter , it still worked, but I noticed the order changed after saving and going back to Notification.
Last edited by wilsonb on Tue Jul 28, 2015 12:59 pm, edited 1 time in total.
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

Re: Controlling (enable/disable) IP WEbCAMS (Foscam) w/ AD2

Postby kevin » Tue Jul 28, 2015 12:59 pm

That probably is not going to happen, sorry. I'll add it to the non-priority list of things, but can't promise anything. But, that's why this is open source. You're free to implement that and contribute to the project if you desire.

Glad that it works out for you!


Order of parameters NEVER matters in this case, so don't worry about that :)
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 13 guests

cron