Montpelier

This webcam looks up the north branch of the Winiooski river from my window. Some times I forget to relaunch the process that updates the images, but it generally refreshes every 15 seconds or so. And some times it is just dark.

#block-tuna_custom-tuna_custom_block_webcam { display: none; }

function refresh_image() {
$('.webcam').fadeOut('slow', function () {
// get current hours minutes and seconds
var newDate = new Date( );
var newTime = newDate.getHours() + "-" + newDate.getMinutes() + "-" + newDate.getSeconds();
// append string on to image to force refresh
$('.webcam').attr('src', '/sites/24b6.net/files/webcam.jpg?time='+ newTime);
// now show the webcam image
$(this).fadeIn('slow');
});
}

// Run jQuery stuff
$(document).ready( function () {
// runs the webcam refresh
setInterval('refresh_image()', 15000);
});