Software
News
10/15/2013
05:29 PM
Connect Directly
LinkedIn
Twitter
Google+
RSS
E-Mail
50%
50%

Google Glass Connects With JavaScript

New WearScript code library allows developers to use JavaScript to more easily create apps for Google Glass.

Developing Google Glass applications just became significantly easier. A group of doctoral students in computer science, working under the project name OpenShades, has released WearScript, a code library that allows developers to write Glass apps in JavaScript.

For the past few months, developers have had other options. Google offers the Mirror API to create cloud-based applications that can communicate with Glass in a limited way. The more full-featured Glass Development Kit (GDK), which will let developers create Glassware using Android code, has not yet been released, but developers have been getting by with incomplete device access through the Android SDK and NDK.

Google only began reviewing third-party Glass apps for inclusion on users' My Glass pages about a week ago. And the company requires that submitted apps adhere to its terms of service and developer policies. As a result, there are only a handful of Glass apps available.

[ Will Apple's next iPad break new ground, or just be another incremental upgrade? Read Apple's Next iPad: Gateway To Mobile Revolution. ]

Brandyn White, a PhD candidate, faculty assistant at the University of Maryland and part of the OpenShades team, said that Glass development needs to be simple and fast, and should be better suited for making personally relevant applications. "[G]oing through the standard Android app development [process] takes too long for exploring a new idea," he said in a Google+ post.

"For many of the cool hacks people are doing on Glass, they would be much easier to write using something like WearScript," said White in an email. "We are putting significant effort into making the scripts easy to share. We regularly pass them around while we're working, [and] it takes a few seconds to try them out. There is a place for WearScript, Mirror, Android SDK/NDK, and eventually the GDK. All we're focused on now is making WearScript a great platform to hack on and show off what Glass can do."

WearScript lets developers write JavaScript code that interacts with Glass hardware. It can display the HTML5 Canvas element, images and text on the Glass screen. It can trigger events based on location, illumination or other sensor-based criteria. And it can process text converted from a Glass user's speech.

In a video posted to YouTube, White demonstrates how WearScript can be used to create a shopping list that shows up in Glass when he walks into a grocery store wearing the device. The app can tell when he has arrived by monitoring his GPS coordinates and the light level change that occurs when entering the store from outside.

The future of Google Glass looks brighter when it's taken beyond Google's control.

Comment  | 
Print  | 
More Insights
Comments
Oldest First  |  Newest First  |  Threaded View
David F. Carr
50%
50%
David F. Carr,
User Rank: Author
10/16/2013 | 3:59:34 PM
re: Google Glass Connects With JavaScript
JavaScript developers are going to be humming "Future's So Bright, Got to Wear Shades" http://www.youtube.com/watch?v...
Google in the Enterprise Survey
Google in the Enterprise Survey
There's no doubt Google has made headway into businesses: Just 28 percent discourage or ban use of its productivity ­products, and 69 percent cite Google Apps' good or excellent ­mobility. But progress could still stall: 59 percent of nonusers ­distrust the security of Google's cloud. Its data privacy is an open question, and 37 percent worry about integration.
Register for InformationWeek Newsletters
White Papers
Current Issue
InformationWeek Must Reads Oct. 21, 2014
InformationWeek's new Must Reads is a compendium of our best recent coverage of digital strategy. Learn why you should learn to embrace DevOps, how to avoid roadblocks for digital projects, what the five steps to API management are, and more.
Video
Slideshows
Twitter Feed
InformationWeek Radio
Archived InformationWeek Radio
A roundup of the top stories and trends on InformationWeek.com
Sponsored Live Streaming Video
Everything You've Been Told About Mobility Is Wrong
Attend this video symposium with Sean Wisdom, Global Director of Mobility Solutions, and learn about how you can harness powerful new products to mobilize your business potential.