View from House

UCAM 247 Snapshot HTTP periodic sending

UCAM 247 has some very good IP cameras.

UCAM 247 Cameras
UCAM 247 Cameras

I have been using them now for months and they have proven to be very reliable.

Others seem to agree on Amazon.co.uk.  The Wisdom of the Crowd,  unlike elections in bad economic times, seems to be a worthwhile guide here.

One of my cameras posts every minute to wunderground, taking sometimes very nice impressions.

View from House
View from House UCAM247
View from UCAM247
View from UCAM247
Sunset View UCAM247
Sunset View UCAM247
Live Weather Picture
Live (on page load) UCAM247 Weather Picture with data from weather station N23DQ 2.1.3 OS: 3.0.9

While I want to retain this profile, I also want to add some extra info with overlaying graphics from my N23DQ 2.1.3 OS: 3.0.9.

As I don’t like opening FTP on my servers, but need a decent always on unix machine to run the overlay script, I needed one of the other sending functions. I could have mailed it, but then I don’t want to open up mail either. Since http (80), is already open I hoped to achieve the parallel sending via http. FTP goes to wunderground.

Options on UCAM247
Options on UCAM247

The UCAMs can also send via “Snapshot HTTP periodic sending”, but this is not really documented and I could not figure out what was in the curl POST request, which the UCAM247 sends, exactly.

Most documentation seems to be directed at the casual user.

UCAM 247 Snapshot HTTP Periodic Sending
UCAM 247 Snapshot HTTP Periodic Sending

By using the log on the camera (http://192.168.1.xxx/debug/syslogd.txt).

Nov  7 00:06:37 (none) user.debug syslog: curl -s -F "photo=@/var/taskmgr/dada.jpg" -o /var/tmp/httpclient.tmp --url "http://www.yyy.zzz/bka/doesnyexist.jsp" -v --stderr /var/tmp/stderr29088

I found that the field name is ‘photo’ and it can now be used with the various image reception scripts on the web.

For example for php.
http://ryansechrest.com/2012/07/send-and-receive-binary-files-using-php-and-curl/