{"size": 944, "ext": "js", "max_stars_repo_path": "static/js/demo.js", "max_stars_repo_name": "akaeme/home_dashboard", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "static/js/demo.js", "max_issues_repo_name": "akaeme/home_dashboard", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "static/js/demo.js", "max_forks_repo_name": "akaeme/home_dashboard", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.9777777778, "max_line_length": 75, "alphanum_fraction": 0.4713983051}
var g1, g2;
window.onload = function(){
    g1 = new JustGage({
      id: "g1",
      value: 0,
      min: 0,
      max: 45,
      label: "Celsius",
      levelColors: [
          "#F2B2F4",
          "#99C7FC",
          "#9FF2A1",
          "#F7D274",
          "#EF7A7A"
        ],
      gaugeWidthScale: 0.3
    });
    g2 = new JustGage({
      id: "g2",
      value: 0,
      min: 0,
      max: 100,
      label: "Percent",
      levelColors: [
          "#DBCFB0",
          "#BFC8AD",
          "#90B494",
          "#718F94",
          "#545775"
        ],
      gaugeWidthScale: 0.3
    });
};
var socket = io.connect('http://' + document.domain + ':' + location.port);
socket.on('connect', function() {
    console.log('Sent message');
    socket.emit('start', 'Connected')
    //socket.send('User has connected!');
});
socket.on('values', function(data) {
    g1.refresh(data['temperature']);
    g2.refresh(data['humidity']);
});

