Giter VIP home page Giter VIP logo

beacons's Introduction

beacons

Some experiments on the detection of iBeacons

Using 5 Kontakt beacons

Download and install the following App first

https://github.com/dave31415/BeaconScanner

That scans for iBeacons and logg them to a file

This repo requires tailer and Flask.

sudo pip install tailer

sudo pip install Flask

and numpy and matplotlib

Make a PARAMS file (which is in the .gitignore)

cp PARAMS_DEFAULT PARAMS

and edit that file as needed.

You may need to create a file 'api.key' if you are running the server on a remote machine such as on AWS. Also keep in .gitignore

Now, lets run the logger!

python logger.py

This will print out the url which is by default http://localhost:7979 Don't visit this url immediately.

This app will now be waiting for REST calls from the publisher and the BeaconScanner App will be logging data to your logfile. Now we will start the publisher which will "tail" that logfile annd send new data to the webapp which will store the data in SQLLite and make charts. Start this with

python publish.py

or specify the logfile and url specifically, e.g.

python publisher.py /path/to/log http://ec2.myserver.aws.com

This will connect the circuit. Wait a few seconds for some data to build up and then visit the url with your browser. You should see a webpage with a chart at the top and some information and a table of the data below.

alt tag

beacons's People

Watchers

David Johnston avatar Mike Vartanian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.