Google Glass Connects With JavaScript - InformationWeek
IoT
IoT
Software
News
10/15/2013
05:29 PM
Connect Directly
Google+
LinkedIn
Twitter
RSS
E-Mail
50%
50%
RELATED EVENTS
Open Source Security for Containers in a DevOps World
Dec 07, 2017
Managing container infrastructure in a production environment is challenged by problems of scale. ...Read More>>

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.

We welcome your comments on this topic on our social media channels, or [contact us directly] with questions about the site.
Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest 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...
2017 State of IT Report
2017 State of IT Report
In today's technology-driven world, "innovation" has become a basic expectation. IT leaders are tasked with making technical magic, improving customer experience, and boosting the bottom line -- yet often without any increase to the IT budget. How are organizations striking the balance between new initiatives and cost control? Download our report to learn about the biggest challenges and how savvy IT executives are overcoming them.
Register for InformationWeek Newsletters
White Papers
Current Issue
Digital Transformation Myths & Truths
Transformation is on every IT organization's to-do list, but effectively transforming IT means a major shift in technology as well as business models and culture. In this IT Trend Report, we examine some of the misconceptions of digital transformation and look at steps you can take to succeed technically and culturally.
Video
Slideshows
Twitter Feed
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.
Flash Poll