Last active
February 12, 2018 07:42
-
-
Save eklimcz-zz/50df07bee6b6e67133e5 to your computer and use it in GitHub Desktop.
Beacon Client render
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var socket = io('http://localhost/client'); | |
var linearScale = d3.scale.linear() | |
.domain([0, 20]) | |
.range([20, 1000]); | |
socket.on('connected', function(msg) { | |
console.log('connected to server'); | |
}); | |
socket.on('message', function(msg) { | |
var yVal = filter(linearScale(msg.accuracy)); | |
TweenLite.to(user, 2, { | |
y: yVal, | |
ease: 'easeOutExpo' | |
}); | |
}); | |
}); |
Hello,
I am interesting on this Raspberry Pi indoor positioning, but I'm newbie of node.js etc, can you help to combine those code for me ? I have installed them in Raspberry Pi 2B and Ubuntu, just don't know how to run them.
Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for posting your article on medium . Can you also include the full HTML?