30 Oktober 2010

Cara memantau Merapi dari Komputer (Live Streaming)

Caranya :
Copy paste kode berikut ini di gedit (pemakai Ubuntu) atau notepad (pemakai Win), terus simpan sebagai .html, (misal: merapi.html atau yang lain diikuti .html) terus buka dengan browser. Anda sudah bisa memantau perkembangan puncak merapi langsung dari komputer (harus dengan akses internet).


<html xmlns="http://www.w3.org/1999/xhtml">


<head>


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<title>Webcam Merapi</title>


<script>


<!--



/*


Auto Refresh Page with Time script


By JavaScript Kit (javascriptkit.com)


Over 200+ free scripts here!


*/



//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59


var limit="0:15"



if (document.images){


var parselimit=limit.split(":")


parselimit=parselimit[0]*60+parselimit[1]*1


}


function beginrefresh(){


if (!document.images)


return


if (parselimit==1)


window.location.reload()


else{


parselimit-=1


curmin=Math.floor(parselimit/60)


cursec=parselimit%60


if (curmin!=0)


curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"


else


curtime=cursec+" seconds left until page refresh!"


window.status=curtime


setTimeout("beginrefresh()",1000)


}


}



window.onload=beginrefresh


//-->


</script>


</head>



<body>


<div align="center"><img src="http://merapi.bgl.esdm.go.id/view.php?id=1" />



</div>


</body>


</html>

Gambar akan berubah setiap 15 detik. penampakannya kalau siang hari, kalau malam gelap.


Buat Seismografnya:

<html xmlns="http://www.w3.org/1999/xhtml">


<head>


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<title>Seismograf Merapi</title>


<script>


<!--




/*


Auto Refresh Page with Time script


By JavaScript Kit (javascriptkit.com)


Over 200+ free scripts here!


*/



//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59


var limit="1:00"




if (document.images){


var parselimit=limit.split(":")


parselimit=parselimit[0]*60+parselimit[1]*1


}


function beginrefresh(){


if (!document.images)


return


if (parselimit==1)


window.location.reload()


else{


parselimit-=1


curmin=Math.floor(parselimit/60)


cursec=parselimit%60


if (curmin!=0)


curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"


else


curtime=cursec+" seconds left until page refresh!"


window.status=curtime


setTimeout("beginrefresh()",1000)


}


}



window.onload=beginrefresh


//-->


</script>


</head>




<body>


<div align="center"><img src="http://merapi.bgl.esdm.go.id/view.php?id=18" />



</div>


</body>


</html>