Google Glass Connects With JavaScript - InformationWeek

InformationWeek is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

IoT
IoT
Software
News
10/15/2013
05:29 PM
Connect Directly
Google+
LinkedIn
Twitter
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.

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...
Slideshows
Data Science: How the Pandemic Has Affected 10 Popular Jobs
Cynthia Harvey, Freelance Journalist, InformationWeek,  9/9/2020
Commentary
The Growing Security Priority for DevOps and Cloud Migration
Joao-Pierre S. Ruth, Senior Writer,  9/3/2020
Commentary
Dark Side of AI: How to Make Artificial Intelligence Trustworthy
Guest Commentary, Guest Commentary,  9/15/2020
White Papers
Register for InformationWeek Newsletters
2020 State of DevOps Report
2020 State of DevOps Report
Download this report today to learn more about the key tools and technologies being utilized, and how organizations deal with the cultural and process changes that DevOps brings. The report also examines the barriers organizations face, as well as the rewards from DevOps including faster application delivery, higher quality products, and quicker recovery from errors in production.
Video
Current Issue
IT Automation Transforms Network Management
In this special report we will examine the layers of automation and orchestration in IT operations, and how they can provide high availability and greater scale for modern applications and business demands.
Slideshows
Flash Poll