GithubHelp home page GithubHelp logo

antoninobonanno / android-beacon-museum Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 8.14 MB

This is a simple project for Android (Java) that simulates moving a user inside a museum. Each Beacon detected represents a room in a museum, where there are several paintings inside. The Android application detects nearby beacons and collects information about the beacons by contacting a server.

License: GNU General Public License v3.0

Java 89.56% JavaScript 10.44%
altbeacon android beacon android-9

android-beacon-museum's Introduction

Android Beacon Museum

This is a simple project for Android (Java) that simulates moving a user inside a museum. Each Beacon detected represents a room in a museum, where there are several paintings inside.

The Android application detects nearby beacons and collects information about the beacons by contacting a server. A notification will be sent when the application is paused and detects a new beacon.

The server is written in Node.js and we have used MongoDB for the database.

The android application has been tested with iBeacon type but has been configured to support all types of beacons (iBeacon, AltBeacon, Eddystone or RuuviTag).

Installation

Setup MONGODB

> mongoimport --db beacon-museum --collection artworks --file Artworks.json --jsonArray (for upload json)

Download Artworks.json

  • MONGO shell

    > use beacon-museum

    > db.artworks.updateMany({},{'$set' : {'Beacon_id': "0"}});

    > db.artworks.createIndex({"Beacon_id":1});

  • Association of beacons with artwork

    > db.artworks.update({'_id': id_artworks }, {'$set' : {'Beacon_id': "beacon_id" }});

    Our beacons: beacon_id_1 = -1496743469 - beacon_id_2 = 443575690

    NOTE: beacon_id is the integer hash of the beacon and not UUID because we noticed that the two beacons had the same UUID but different 'major' and 'minor'.

Setup Server

  • Inside the Server folder

    > npm install

    > npm start

Setup App Android

  • Change the server URL inside the file BeaconResultsActivity.java
  • Build and run the app

Authors

Bonanno Antonino, Biuso Mario

android-beacon-museum's People

Contributors

antoninobonanno avatar dependabot[bot] avatar mariobiuso avatar

Stargazers

 avatar

Watchers

 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.