1 function updateObserverStatus() {
3 console.log("fetching observer status url " + url);
7 success: function(newData) {
9 if (newData.health==":-)") {
10 html = '<span style="margin-left: 16px;" title="last observer run time = ' + Math.floor(newData.last_duration) + ' seconds"><img src="/static/img/green-cloud.gif" width=16 height=16></span>';
12 html = '<span style="margin-left: 16px;" title="observer is offline"><img src="/static/img/red-cloud.gif"></span>';
14 $("#observer-status").html(html);
15 setTimeout(function() { updateObserverStatus(); }, 60000);
18 setTimeout(function() { updateObserverStatus(); }, 60000);
23 $( document ).ready(function() {
24 updateObserverStatus();