Esse commit está contido em:
squonkbadger
2016-08-18 00:39:21 +03:00
commit 7265246e65
2 arquivos alterados com 4 adições e 4 exclusões
+2 -2
Ver Arquivo
@@ -93,10 +93,10 @@ if __name__ == '__main__':
log.startLogging(sys.stdout)
factory = WebSocketClientFactory("ws://127.0.0.1:1912/api/samples")
factory = WebSocketClientFactory("ws://tassi.fi:1912/api/samples")
factory.protocol = MyClientProtocol
reactor.connectTCP("127.0.0.1", 1912, factory)
reactor.connectTCP("tassi.fi", 1912, factory)
reactor.callInThread(read_samples)
reactor.run()
+2 -2
Ver Arquivo
@@ -468,7 +468,7 @@ function createSampleChart(samples, channel) {
var x = [];
var y = [];
$.each(samples, function(index, sample) {
x[index] = sample.order_number * 0.004;
x[index] = sample.order_number;
y[index] = sample.channel_data[channel];
});
var data = [{
@@ -480,7 +480,7 @@ function createSampleChart(samples, channel) {
var layout = {
title: 'Channel'+(channel+1),
xaxis: {
title: 'Time (seconds)'
title: 'Order number'
},
yaxis: {
title: 'Voltage',