Skip to content

Instantly share code, notes, and snippets.

@eklimcz-zz
Last active February 12, 2018 07:42
Show Gist options
  • Save eklimcz-zz/50df07bee6b6e67133e5 to your computer and use it in GitHub Desktop.
Save eklimcz-zz/50df07bee6b6e67133e5 to your computer and use it in GitHub Desktop.
Beacon Client render
$(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'
});
});
});
@adam704a
Copy link

adam704a commented Mar 3, 2016

Thanks for posting your article on medium . Can you also include the full HTML?

@leiw324
Copy link

leiw324 commented Feb 12, 2018

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