Beyond Web,javascript applications in the Internet of Things

Source: Internet
Author: User
Tags install node

Introduction

Patrick Catanzariti, a Web development engineer, recently published in SitePoint, "JavaScript Beyond the Web in 2014", which describes the application of JavaScript in the Internet of things, which is very interesting. As a hobbyist and practitioner of JavaScript, I have translated it here, readers. By the way, just last week, our team's latest masterpiece "The True JavaScript control set"----The new generation of JavaScript control Wijmo 5 is officially released .

Objective

JavaScript has grown very fast in the last decade, and with the advent of technologies such as Ajax,node.js, JavaScript has become a top citizen in programming languages, and JavaScript can be seen in Web applications, mobile applications, and Web servers. In another area: the Internet of Things (things), the smart home area, JavaScript is also widely used. The most exciting thing is that you can use JavaScript to control your mobile phone, switch lights, robots, and so on.

Last year I wrote an article, "JavaScript Beyond the Web", which describes the application of JavaScript within the IoT. A year has passed and a lot of new technologies and smart devices are emerging, and then we'll look back at the applications of JavaScript on these smart devices, and perhaps you'll find more.

In the past few months, smart devices with JavaScript interactivity have grown. With the JavaScript API documentation published by smart device vendors and the propulsion of Community technology, we can really see that more and more devices are having JavaScript interactivity.

Smart Home ProductsNinja Sphere

Ninja Sphere is the next generation of smart home controllers from the Australian Ninja blocks team, which can incorporate a wide variety of electronic devices into the Internet of things and control them all. The Ninja sphere is able to remotely manipulate connected devices, gesture control, and view the location of your device. Currently Ninja sphere can support including devices with Bluetooth,ble,wi-fi,zigbee connectivity.

JavaScript interaction Capabilities

JavaScript developers can develop Ninja Sphere applications through the Ninja Sphere node. JS Library, and even through JavaScript you can write device drivers and device definitions in Ninja Sphere. This is undoubtedly the dream of JavaScript developers.

Leap Motion

Leap Motion is a very fun gadget that can be used to control devices and applications via gestures. It senses the natural movement of the hands in the air and precisely tracks the movements of the hands and fingers. And the movements of the fingers.

in the V2 version they improve the stability of finger tracking and can now even track each hand bone on the finger individually. Another exciting feature is the V2 version: Virtual reality, bringing your hands into the virtual 3D world. See more:Leap Motion + virtual reality. Leap Motion provides JavaScript developers with a JavaScript SDK, as well as detailed documentation and a number of examples, moreLeap Motion JavaScript Framework. Pebble Watch

I personally was a very fanaticalPebble Watchenthusiasts, before Apple Watch and Google wear appear, Prebble watch is a truly smart watch, easy to use, but incredibly functional and supports both iOS and Android platforms. Using the E-paper display, even in direct sunlight is easy to read, power consumption is also very low, need to rush once a week. JavaScript interaction Capabilities

Pebblekit JavaScript Framework: This framework allows developers to get data from the cloud, get physical location information for the device, and so on, and build a very good user experience app for Pebble Watch. Watch-side app development requires some C code, but without a lot of C-code programming experience, you can start with the official example and build a very powerful watch application with JavaScript. The following articles describe how to write a pebble watch app with javascript:

    • Pebble Watch Development with Javascript–pebble watch JavaScript programming Primer.

    • Advanced Pebble Watch configuration– How to configure the Pebble JavaScript watch app.

    • Pebble.js–pebble's official JavaScript framework, currently a beta version, will be released in the coming months.

Oculus Rift

Virtual reality helmet Oculus Rift let us come closer than ever to virtual reality, and this year they released the new machine: "Crescent Bay", and the latest development Kit: the Developer Kit 2. At the same time Oculus and Samsung jointly released the mobile virtual reality headset gear VR, which can be used in conjunction with Samsung mobile phones to achieve virtual reality interactive effect.

JavaScript interaction CapabilitiesOculusbridge: A desktop application that contains a JavaScript library that allows developers to build Oculus Rift Web experiences based on Three.js, support windows and Max OSX, and can 28,safari in Chrome 6 and more than 22 versions of Firefox work. It does not mention IE browser, I can not be missing whether it supports IE. Vr.js: A chrome and Firefox plugin that can operate the Oculus Rift virtual reality helmet, but it requires a NPAPI interface, and Google Chrome has abandoned its support for this standard and recommends using Oculusbridge instead. Babylon.js and IE11: If you are using Windows and IE 11, you canBabyloN.jsCreate a one-dimensional environment that can build Oculus Rift virtual reality experiences. Cylon

Cylon.js is a JavaScript framework for robotics and IoT development. Cylon.js allows developers to use the same API to manipulate different devices, and the list of these devices is growing, including leap motion,pebble watches, Arduinos and Raspberry PiS and more.

Arduino YUN

The Arduino YUN is the latest new column of the Arduino release wireless offering, incorporating the Arduino architecture and Linux systems, which the Arduino wants to integrate Linux's powerful features and Arduino ease of use.

JavaScript interaction Capabilities

    • Installing node. js on the Arduino YUN: For JavaScript developers, Linux means that you can install node. js onto the Arduino and then execute the JavaScript code.

    • Cylon.js module: Support for Arduino Yun Cylon modules.

Spark OS

Spark OS is a cloud-based, Internet of things operating system. The team also owns Spark Core,spark Core, a fully Arduino-compatible WiFi Development board that enables engineers to develop any hardware device that is connected to the network. The Spark OS Cloud service allows you to send instructions to the spark core device.

JavaScript interaction Capabilities

    • Official Spark JavaScript SDK: The official JavaScript SDK.

    • SPARK-II: The IO library used to interact with spark devices.

    • Sparky: A very simple node. JS Library.

    • Cylon.js module: Support for Spark OS Cylon modules.

Tessel

Tessel is a very similar board to the Arduino and Spark Core, but Tessel can run JavaScript code directly, and is designed almost exclusively for JavaScript developers. It is fully compatible with the various package packages based on node. JS and can make good use of many of the resources available.

JavaScript interaction Capabilities

    • Official Tessel Docs: official documentation, very many examples.

    • Cylon.js module: Support for Tessel Cylon modules.

Espruino

Espruino is a microprocessor-based JavaScript interpreter that is the world's first JavaScript microcontroller for beginners or expert gamers to execute your JavaScript in real time.

JavaScript interaction Capabilities

    • Official Espruino docs: official documentation.

    • Node-espruino: A third-party node library that can be used to interact with Espruino through node. js.

Intel Galileo

Intel Galileo is an Arduino development board with the x86 architecture introduced by Intel, and like the Arduino Yun, Galileo runs Linux on the board.

JavaScript interaction Capabilities

    • The "bigger" Linux image with node. JS: An article from Sparkfun that describes how Intel Galileo uses the SD card to boot Linux.

    • Intel Galileo Programming with JavaScript and node. js: Very good reference articles about Intel Galileo,javascript and node. js.

    • Cylon: Support for the Cylon module of Intel Galileo.

    • Galileo-io module for Johnny-five:javascript IO interaction modules.

Google Cardboard

This year's Google I/O conference is the most interesting topic: Google Cardboard. A virtual reality of the paper tray, although its appearance is not very small, but after the complete assembly, cardboard can take advantage of the user's smartphone and built-in a pair of lenses, to provide users with virtual reality experience. The official article is mainly about how to develop native andriod, but JavaScript can also make a virtual reality experience in Chrome.

JavaScript interaction Capabilities
    • Cardboard Chrome experiments: Contains a number of demo programs, as well as code examples.

Myo Armband

Cool gesture arm Ring Myo armband allows the user to wear on the forearm of the arm, can control the computer through the action command, through the movement and the EEG activity detection, Myo armband can identify the user's gesture activity.

JavaScript interaction Capabilities
    • Myojs: An unofficial MYO armband Javascript framework.

Nest

The Nest team now has two smart devices, an intelligent thermostat (Nest thermostat) and a smoke alarm (Nest Protect). This year they launched the Nest developer program and unveiled the Nest API. Although there is no documentation for the JavaScript API, there are two sample programs for the JavaScript operation Nest API.

JavaScript interaction Capabilities

    • Official sample JS for the Nest thermostat: an example of an intelligent temperature control organ.

    • Official sample JS for the Nest Protect: An official example of a smoke alarm.

    • Cylon.js module: Supports the Nest Cylon module.

Conclusion

As you can see, a large number of smart devices with JavaScript interactivity are growing fast, limited to the length of this article only lists the devices above. JavaScript developers have a lot to do in the internet of things, so let's start with your device!

Beyond Web,javascript applications in the Internet of Things

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.