Taking pictures with url jpg

Questions? Suggestions? Need help? Talk about anything related to Yawcam...
Post Reply
Nisange
Posts: 5
Joined: Tue Feb 23, 2016 11:00 pm

Taking pictures with url jpg

Post by Nisange »

Hello,
I would like to take a picture every hour of this webcam (http://infoclimat.org/alsavosges/webcam ... /photo.jpg).
Is it possible ?
When I add an IP camera, I get an error "Could not connect to the device!"

Image

Image
z3r0c00l12
Moderator
Posts: 1210
Joined: Wed Jan 14, 2009 3:50 am

Re: Taking pictures with url jpg

Post by z3r0c00l12 »

It's not possible using Yawcam.

The webcam link they posted is essentially just a picture that they update every so often.

You'd have to run a little script to do that.

Here's a short untested example in Powershell:

Code: Select all

$Client = New-Object "System.Net.WebClient"
While ($True) {
    $Target = "http://infoclimat.org/alsavosges/webcamgrandballon/photo.jpg"
    $Destination = "C:\$(Get-Date -uFormat "%Y-%m-%d_%H.%M.%S").jpg"
    $Client.DownloadFile($Target,$Destination)
    Sleep (60*60) #60 seconds * 60 minutes = 1 hour
}
you may want to change the destination path as right now I set it to "C:\"
Nisange
Posts: 5
Joined: Tue Feb 23, 2016 11:00 pm

Re: Taking pictures with url jpg

Post by Nisange »

It works.
Thank you ;-)
Post Reply