Page 1 of 1

Taking pictures with url jpg

Posted: Mon Mar 14, 2016 12:32 am
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

Re: Taking pictures with url jpg

Posted: Mon Mar 14, 2016 1:20 am
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:\"

Re: Taking pictures with url jpg

Posted: Mon Mar 14, 2016 1:47 am
by Nisange
It works.
Thank you ;-)