Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.
/ angular-iot Public archive

Internet of Things directives for Angular 2 (Led, Button, etc.)

urish/angular-iot

Repository files navigation

Build Status

Angular 2 IoT

IoT support for Angular 2

Angular 2 IoT is an experimental technology that allows you to program physical hardware (buttons, LEDs, etc.) using Angular 2. It provides a set of directives, such as <iot-button> and <iot-led> that let you interface with the hardware. It is even possible to create an application that renders both a Web interface and an IoT (hardware) interface with a single code base. See ng2-simon for an example.

Behind the scenes, it uses a combination of angular-universal for running the application inside Node.js, and the johnny-five library for interfacing with the hardware.

Building & Running the Blink example

The Blink Example will blink the built-in LED on an Adruino board that is connected to your PC. You will need to upload the StandardFirmata firmware to your Arduino board first.

git clone https://github.com/urish/angular2-iot
cd angular2-iot
npm install
npm run example:build
npm run example:run

Note: The example program will try to detect the serial port that the Arduino is connected to automatically. You can manually specify the port name by setting the SERIAL_PORT environment variable prior to running the example.

Presentation (April 2016)

angular2-iot Talk

Check out ng2-simon for a complete example of using angular2-iot for powering a game that can be run both inside the web browser and on real hardware.

License

MIT License

About

Internet of Things directives for Angular 2 (Led, Button, etc.)

Resources

Stars

Watchers

Forks

Packages

No packages published