Code Monkey home page Code Monkey logo

trojan's Introduction

columbus-trojan

This is the Android app for Columbus. It lives on users' Android phones and collects data every three minutes. Data is uploaded only on Wi-Fi.

The app collects the following data:

  • Image (front-facing camera)
  • 10-second sound clip (microphone)
  • Location (mobile triangulation)

The image and sound files are uploaded to an Amazon S3 bucket. When all of the above data has been collected, the app submits a JSON string to the backend server, similar to the following:

{
    "timestamp": 12345,
    "account_id": "[email protected]",
    "location": {
        "lat": 200,
        "lon": 1
    },
    "audio_url": "[email protected]/12345/audio.aac",
    "image_url": "[email protected]/12345/image.jpg"
}

audio_url and image_url - S3 key to the media assets

The app will only use the network if the phone is connected to Wi-Fi. If there is no Wi-Fi connection at the time of data collection, the upload job will be queued for later until Wi-Fi is available.

Libraries used:

  • loopj HTTP library
  • Google GSON library
  • AWS Android SDK

trojan's People

Contributors

duncanleo 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.