Permalink
Browse files

5x less samples, narrower graph canvas, tuning tips from joe walnes a…

…pplied
  • Loading branch information...
1 parent c875a3a commit db8f9015d8199af1b8ebfbbf965a36fe636b23ad @eastein committed Oct 2, 2012
Showing with 20 additions and 6 deletions.
  1. +19 −5 interface.html
  2. +1 −1 web.py
View
@@ -37,7 +37,18 @@
success: function(data) {
trace_set = data.data;
for (var tracetype in trace_set) {
- var tl = new SmoothieChart({ millisPerPixel: 4000, grid: { strokeStyle: '#555555', lineWidth: 1, millisPerLine: 300000, verticalSections: 4 }});
+ var tl = new SmoothieChart({
+ millisPerPixel: 5000,
+ grid: {
+ strokeStyle: '#555555',
+ lineWidth: 1,
+ millisPerLine: 300000,
+ verticalSections: 4
+ },
+ fps: 0.2,
+ interpolation: 'line',
+ scaleSmoothing: 1.0
+ });
traces = trace_set[tracetype];
for (var id in traces) {
setup_traces(tl, tracetype, traces[id], id);
@@ -92,16 +103,19 @@
<h1>Chillmon</h1>
<h4>Temps</h4>
- <canvas id="temps" width="900" height="200"></canvas>
+ <canvas id="temps" width="720" height="200"></canvas>
<h4>PID States</h4>
- <canvas id="pidstate" width="900" height="200"></canvas>
+ <canvas id="pidstate" width="720" height="200"></canvas>
<h4>Constants</h4>
- <canvas id="constants" width="900" height="200"></canvas>
+ <canvas id="constants" width="720" height="200"></canvas>
<h4>Errors</h4>
- <canvas id="errors" width="900" height="200"></canvas>
+ <canvas id="errors" width="720" height="200"></canvas>
+
+ <h4>Physical</h4>
+ <canvas id="physical" width="720" height="200"></canvas>
</body>
</html>
View
2 web.py
@@ -63,7 +63,7 @@ def run(self) :
samples.append((long(time.time() * 1000), msg))
self.samples = samples[-self.sample_cap:]
- time.sleep(1.0)
+ time.sleep(5.0)
class JSHandler(tornado.web.RequestHandler):
def get(self, fn):

0 comments on commit db8f901

Please sign in to comment.