google.charts.load('current', {'packages':['line']});
google.charts.setOnLoadCallback(get_data);

function get_data(){
    var data = [[0,   4.2,  6.2,  3.4],
    [1,  37.8, 80.8, 41.8],
    [2,  30.9, 69.5, 32.4],
    [3,  25.4,   57, 25.7],
    [4,  11.7, 18.8, 10.5],
    [5,  11.9, 17.6, 10.4],
    [6,   8.8, 13.6,  7.7],
    [7,   7.6, 12.3,  9.6],
    [8,  12.3, 29.2, 10.6],
    [9,  16.9, 42.9, 14.8],
    [10, 12.8, 30.9, 11.6],
    [11,  5.3,  7.9,  4.7],
    [12,  6.6,  8.4,  5.2],
    [13,  4.8,  6.3,  3.6],
    [14,  4.8,  6.3,  3.6],
    [15,  4.8,  6.3,  3.6],
    [16,  4.8,  6.3,  3.6],
    [17,  4.8,  6.3,  3.6],
    [18,  4.8,  6.3,  3.6],
    [19,  4.8,  6.3,  3.6],
    [20,  4.8,  6.3,  3.6],
    [21,  4.8,  6.3,  3.6],
    [22,  4.8,  6.3,  3.6],
    [23,  4.8,  6.3,  3.6]];
    //do magic.h

    draw_chart(data);
}

function draw_chart(data_array) {

    var data = new google.visualization.DataTable();
    data.addColumn('number', 'Time (hours)');
    data.addColumn('number', 'Weather');
    data.addColumn('number', 'RaspberryTAU');
    data.addColumn('number', 'Titus');

    data.addRows(data_array);

    var options = {
        chart: {
            title: 'Temperature',
            subtitle: 'in degrees celsius'
        },
        //vAxis.minorGridlines.units:
        width: 1500,
        height: 500
    };

    var chart = new google.charts.Line(document.getElementById('chart_div'));

    chart.draw(data, options);

    setTimeout(get_data, 300000); //5 minutes
}

@@ -79,19 +79,20 @@
 allback(
-get
+load
 _data);%0A
@@ -101,19 +101,20 @@
 unction 
-get
+load
 _data()%7B
@@ -130,697 +130,1005 @@
 data
- = %5B%5B0,   4.2,  6.2,  3.4%5D,%0A    %5B1,  37.8, 80.8, 41.8%5D,%0A    %5B2,  30.9, 69.5, 32.4%5D,%0A    %5B3,  25.4,   57, 25.7%5D,%0A    %5B4,  11.7, 18.8, 10.5%5D,%0A    %5B5,  11.9, 17.6, 10.4%5D,%0A    %5B6,   8.8, 13.6,  7.7%5D,%0A    %5B7,   7.6, 12.3,  9.6%5D,%0A    %5B8,  12.3, 29.2, 10.6%5D,%0A    %5B9,  16.9, 42.9, 14.8%5D,%0A    %5B10, 12.8, 30.9, 11.6%5D,%0A    %5B11,  5.3,  7.9,  4.7%5D,%0A    %5B12,  6.6,  8.4,  5.2%5D,%0A    %5B13,  4.8,  6.3,  3.6%5D,%0A    %5B14,  4.8,  6.3,  3.6%5D,%0A    %5B15,  4.8,  6.3,  3.6%5D,%0A    %5B16,  4.8,  6.3,  3.6%5D,%0A    %5B17,  4.8,  6.3,  3.6%5D,%0A    %5B18,  4.8,  6.3,  3.6%5D,%0A    %5B19,  4.8,  6.3,  3.6%5D,%0A    %5B20,  4.8,  6.3,  3.6%5D,%0A    %5B21,  4.8,  6.3,  3.6%5D,%0A    %5B22,  4.8,  6.3,  3.6%5D,%0A    %5B23,  4.8,  6.3,  3.6%5D%5D;%0A    //do magic.h
+_file = %22TODO: NEED A LINK HERE%22;%0A    var http_request = new XMLHttpRequest();%0A    try%7B%0A        // Opera 8.0+, Firefox, Chrome, Safari%0A        http_request = new XMLHttpRequest();%0A    %7Dcatch (e)%7B%0A        // Internet Explorer Browsers%0A        try%7B%0A            http_request = new ActiveXObject(%22Msxml2.XMLHTTP%22);%0A%0A        %7Dcatch (e) %7B%0A%0A            try%7B%0A                http_request = new ActiveXObject(%22Microsoft.XMLHTTP%22);%0A            %7Dcatch (e)%7B%0A                // Something went wrong%0A                alert(%22Your browser broke!%22);%0A                return false;%0A            %7D%0A%0A        %7D%0A    %7D%0A%0A    http_request.onreadystatechange = function ()%7B%0A        if (http_request.readyState == 4)%7B%0A            // Javascript function JSON.parse to parse JSON data%0A            var jsonObj = JSON.parse(http_request.responseText);%0A            parse_data(jsonObj);%0A        %7D%0A    %7D%0A    http_request.open(%22GET%22, data_file, true);%0A    http_request.send();%0A%7D%0A%0Afunction parse_data(jsonObj)%7B%0A    //TODO; DO MAGIC HERE
 %0A%0A  
@@ -1180,25 +1180,24 @@
 ta_array) %7B%0A
-%0A
     var data
@@ -1779,19 +1779,20 @@
 Timeout(
-get
+load
 _data, 3

add base implementation of AJAX functionatily