Creating a Google Glass Wakanda App
JavaScript CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Glass Solution
Glass
.gitattributes
.gitignore
.gitmodules
README.md
init.d-wakanda

README.md

##Wakanda and Google Glass##

Connecting Google Glass and Wakanda

Goal:

  • Be able to share pictures with strangers you meet through GoogleGlass

Done:

  • Wakanda supporting Oath2 handshake with Google to give Wakanda approval to use Google APIs.
  • Oauth2 with refresh token support
  • The ability for Wakanda to send timeline cards

Todo:

-Lyle

###Install###

  • Clone this repo to a local machine or server
  • Use the Google Code API Console to create and API Project
    • It will need Google Mirror API access and Google+ API access
    • If running locally simply use "http://127.0.0.1:8081/login" for the redirect URL
  • Copy ./Glass/Modules/GoogleOAuthSecret_example.js to ./Glass/Modules/GoogleOAuthSecret.js
    • And update those settings to match the stuff from your Google API Project
  • Start Wakanda 6 or later poiting to this solution.

###Installing Wakanda via Debion Package Install####

You can download the Linux All-in-One64bit Installer via command line:

(example build - get it from wakanda.org/downloads )
wget http://download.wakanda.org/StabilizationChannel/v6/Linux/145594/wakanda_6.0-145594_amd64.deb

And then install it via debion package manager (with root privlages)

dpkg -i wakanda_6.0-145594_amd64.deb

This should create a new wakanda user. And create the path /opt/wakanda

You can also use inet.d to run wakanda as a service

/etc/init.d/wakanda start
/etc/init.d/wakanda stop

You can take a look at my init.d for glass.wakanda.org.

Notes for Managing Server - My Server Version

I normally log in as root. But wakanda is running as user wakanda so

sudo su wakanda

The soultion is held in

/opt/wakanda/GlassWakanda

nginx in the front + SSL

For hosting glass.wakanda.org I am using SSL and the nginx web server in front. Here is my config file:

server {
  listen 80;
  location / {
	proxy_pass	http://localhost:8081;
  }
}
server {
  listen 443;
  server_name glass.wakanda.org;
  ssl on;
  ssl_certificate /etc/nginx/ssl/ssl-bundle.crt;
  ssl_certificate_key /etc/nginx/ssl/server.key;
  ssl_protocols SSLv3 TLSv1;
  #Disables all weak ciphers
  ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;

  location / {
	proxy_pass	http://localhost:8081;
  }
}
server {
  listen 8000;
  server_name glass.wakanda.org;
  ssl on;
  ssl_certificate /etc/nginx/ssl/ssl-bundle.crt;
  ssl_certificate_key /etc/nginx/ssl/server.key;
  ssl_protocols SSLv3 TLSv1;
  #Disables all weak ciphers
  ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;

  location / {
        proxy_pass      http://localhost:8080;
  }
}