Author Topic: Receive HTTP Notification When IP Camera is Triggered  (Read 6949 times)

d0t

  • Newbie
  • *
  • Posts: 14
    • View Profile
Receive HTTP Notification When IP Camera is Triggered
« on: March 18, 2008, 11:37:11 pm »
I have a Panasonic BL-C131a IP camera, which is now working well with LinuxMCE and the motion wrapper.  This camera, and many others, has a feature to 'Send Notification When Triggered', which can be sent via email or HTTP (some Axis cameras have TCP notifications).  This particular camera has on-board motion and thermal sensing capabilities, and allows you to send different notifications for different 'triggers'.

I am very interested in interfacing this camera with LinuxMCE using HTTP notifications, which would reduce the load and power consumption on the core (not to mention the network!).  Basically the IPCam could hit a particular URL on the core when it detects motion or thermal events, passing the type of event to LMCE in a parameter, which instructs the core to record from the camera for a designated amount of time.  This should also eliminate false positives in the security system when someone is PTZing the camera directly.  It also eliminates the complexities of using the motion wrapper, and could allow lower spec cores to monitor many intelligent IP cameras.

While I am able program, I'm by no means a software engineer :)  As I'm also new to LinuxMCE, naturally I have a few questions before I attempt this feat:

-Are there already facilities in LMCE to receive HTTP notifications, and turn them into MessageSend commands to the DCERouter?
-If not, what is the cleanest way to approach implementing this (without hacking something together)?
-Would anyone else be interested in using this feature?
-Is anyone willing to help out with development?

Regards,
.
« Last Edit: March 18, 2008, 11:41:57 pm by d0t »

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Receive HTTP Notification When IP Camera is Triggered
« Reply #1 on: March 19, 2008, 12:43:21 am »
I don't know of any generic way (but hey, I still have to explore big parts of the code). Basically you want a cgi that does the MessageSend for you. Should be pretty straight forward.

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Receive HTTP Notification When IP Camera is Triggered
« Reply #2 on: March 19, 2008, 12:49:37 am »
you may want to look at that thread for the MessageSend parameters: http://forum.linuxmce.org/index.php?topic=2631.15
rock your home - http://www.agocontrol.com home automation

d0t

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Receive HTTP Notification When IP Camera is Triggered
« Reply #3 on: March 21, 2008, 05:01:06 am »
Thanks for the suggestions Hari, cgi should do the trick ;)

.