Giter Site home page Giter Site logo

uglass's Introduction

Uber client for Google Glass

This is Glassware for Uber. Right now it supports login, profile displaying, and carrying out full ongoing ride lifecycle, i.e. ride request is not implemented. You'll need to register as an Uber developer to run the application. I haven't checked it outside the sandbox yet, but I suppose that developer account will actually work. Please read docs on Privileged scopes.

Building

Project consist of 3 modules:

  • glass - Google Glass application
  • mobile - companion application for mobile device where login is performed
  • shared - a shared module with couple lines of code

Build steps

  • Clone the repo and open it in Android Studio. Most likely you'll need to install Glass Development Kit add-on.
  • Register as an Uber developer
  • Register Android application and obtain UBER_CLIENT_ID and UBER_REDIRECT_URI (that one can be http://127.0.0.1 for testing). Don't forget about signing fingerprints!
  • Enable all the scopes but history related and request_receipt
  • Put UBER_CLIENT_ID and UBER_REDIRECT_URI to the 'uber.properties' in the root of the project.
  • Build and deploy both executables

Running

For a number of reasons, Uber Android library is not suitable for Glass (and does not link, anyway), so there is a companion app for performing Uber auth procedure.
For the same reason generic Java API SDK is used on the Glass.
So, the access token is obtained on the phone and then passed to the Glass wia Bluetooth connection.

  • Launch the companion application on the phone paired with your Glass, and login to Uber
  • If you've got a bottom sheet popup with login error on Uber authorization screen, do not tap close. Just tap outside the window, scroll the text up, and press 'Accept'
  • Launch Glass application and tap to start listening for the token
  • Press 'Send' on the phone
  • Glass will (hopefully) receive the token and login into your account

Now you can start a (test) ride in Uber dev console. Tap on profile card to check for ongoing trips. If there are any, you'll be redirected to Ride LiveCard.

This is how it looks like in sandbox

Future plans

  • Test the app on real ride outside the sandbox
  • Implement ride request

uglass's People

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.