Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/processing-dynamic-view/data b/processing-dynamic-view/data
- deleted file mode 100644
- index 13de30f..0000000
- --- a/processing-dynamic-view/data
- +++ /dev/null
- @@ -1 +0,0 @@
- -3000
- diff --git a/processing-dynamic-view/data b/processing-dynamic-view/data
- new file mode 120000
- index 0000000..f6a2c55
- --- /dev/null
- +++ b/processing-dynamic-view/data
- @@ -0,0 +1 @@
- +/sys/bus/i2c/drivers/bmp085/3-0077/pressure0_input
- \ No newline at end of file
- diff --git a/processing-dynamic-view/index.html b/processing-dynamic-view/index.html
- index f896d75..1f94591 100644
- --- a/processing-dynamic-view/index.html
- +++ b/processing-dynamic-view/index.html
- @@ -78,8 +78,8 @@ socket.on('rangeHigh', function(rangeLow) {
- window.scaleY = window.height / (window.rangeHigh - window.rangeLow);
- });
- socket.on('data', function(data) {
- - document.getElementById("output").innerHTML=""+data;
- - var myData = parseFloat(data);
- + document.getElementById("output").innerHTML=""+parseFloat(data)/100;
- + var myData = parseFloat(data) / 100;
- for(var i=0; i<graphDataSize-1; i++) {
- window.graphData[i] = window.graphData[i+1];
- }
- diff --git a/processing-dynamic-view/rangeHigh b/processing-dynamic-view/rangeHigh
- index 5caff40..d878b32 100644
- --- a/processing-dynamic-view/rangeHigh
- +++ b/processing-dynamic-view/rangeHigh
- @@ -1 +1 @@
- -10000
- +1100
- diff --git a/processing-dynamic-view/rangeLow b/processing-dynamic-view/rangeLow
- index f599e28..4b02a19 100644
- --- a/processing-dynamic-view/rangeLow
- +++ b/processing-dynamic-view/rangeLow
- @@ -1 +1 @@
- -10
- +900
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement