Version 28 of JeeMon

Updated 2015-03-25 17:06:12 by Jorge

JM Nov-16-2011 Some links for jcw's technical weblog, Tcl related in a very interesting way...
an inspiring site, to learn, to experiment, to share...

Main Link: http://jeelabs.org

Inside JeeMon 2009/04/14<link>
Sensor data coming in 2009/08/25<link>
An OOK Scope 2010/04/13 <link>
Improved OOK Scope 2010/04/17 <link>
Oven temperature plot 2010/05/14 <link>
Playing with indentation 2011/09/09 <link>
RFM12B Command Calculator2011/09/18 <link>
Hacking around in software2011/09/24 <link>
JeeMon? JeeBus? JeeRev? 2011/11/22<link>
What’s in the yellow box? 2011/11/23<link>
JeeRev sits under the hood2011/11/24<link>
JeeMon for early birds 2011/11/25<link>

Playing with JeeMon

As I don't have any hardware to collect data, I had to replace the following part on /examples/graph-demo/main.tcl, in order to get the flot chart displayed:

Instead of this:

 variable js {
  var options = {
    lines: { show: true },
    points: { show: true },
    xaxis: { mode: "time" },
    legend: { position: "nw", margin: 3 },
    shadowSize: 0,
    grid: { borderWidth: 1, borderColor: "#bbbbbb" },
    series: {
      lines: { lineWidth: 1 },
      points: { radius: 0.5 },
    }
  };
  $.getJSON('data.json', function(data) {
    $.plot($("#placeholder"), data, options);
  });
 }

I used this:

 variable js {
  var options = {
    lines: { show: true },
    points: { show: true },
    xaxis: { mode: "time" },
    legend: { position: "nw", margin: 3 },
    shadowSize: 0,
    grid: { borderWidth: 1, borderColor: "#bbbbbb" },
    series: {
      lines: { lineWidth: 1 },
      points: { radius: 0.5 },
    }
  };

  $(function () {
    var d1 = [];
    for (var i = 0; i < 14; i += 0.5)
        d1.push([i, Math.sin(i)]);

    var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];

    // a null signifies separate line segments
    var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];

    $.plot($("#placeholder"), [ d1, d2, d3 ],options);
  });

 }