Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

what are your ideas on grabbing an ip webcams jpg image (which is updated every few seconds) and automatically posting it via wordpress. What would be the best approach?

Basically I would like to grab a jpg image, create a new post and create a post image from the webcam jpg found at a certain URL so you get a number of image-posts.

Thanks, Andreas

share|improve this question
    
You'll need Flash. See this page –  onetrickpony Jul 3 '11 at 22:15
    
I am talking about an ip cam. There is no local access but an URL where I can grab the jpg from. –  Andreas Ostheimer Jul 3 '11 at 22:19
    
then it's even easier, just request the data from that URL using wp's http apis and store it in a image file... –  onetrickpony Jul 3 '11 at 22:25
add comment

1 Answer

If you're adding a post every few seconds, then you'd really spam your database. Adding an attachment (which is some type of post), is not really different, but more appreciated. Take a look at these functions.

Just my 2 cents: I'd just display it according to the url, not download, save and add a post with lots of unnecessary data. If you need to save it, you're better off with simply saving it in some custom folder and not use the wp engine at this point. You could create date and/or time based folders and use the folder name as img caption or such.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.