Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/urish/angular2-iot
Internet of Things directives for Angular 2 (Led, Button, etc.)
https://github.com/urish/angular2-iot
Last synced: 4 months ago
JSON representation
Internet of Things directives for Angular 2 (Led, Button, etc.)
- Host: GitHub
- URL: https://github.com/urish/angular2-iot
- Owner: urish
- Archived: true
- Created: 2016-04-12T14:41:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-06T21:50:23.000Z (over 7 years ago)
- Last Synced: 2024-05-22T04:31:49.258Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 264 KB
- Stars: 95
- Watchers: 12
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-angular-components - angular2-iot - Internet of Things directives for Angular 2 (Led, Button, etc.). (Uncategorized / Uncategorized)
- awesome-angular-components - angular2-iot - Internet of Things directives for Angular 2 (Led, Button, etc.). (Uncategorized / Uncategorized)
README
[![Build Status](https://travis-ci.org/urish/angular-iot.svg?branch=master)](https://travis-ci.org/urish/angular-iot)
# Angular IoT
> IoT support for AngularAngular IoT is an experimental technology that allows you to program physical hardware (buttons, LEDs, etc.)
using Angular. It provides a set of directives, such as `` and `` 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](https://github.com/urish/ng2-simon) for an example.Behind the scenes, it uses a combination of [angular-universal](https://github.com/angular/universal) for running
the application inside Node.js, and the [johnny-five](https://github.com/rwaldron/johnny-five) library for
interfacing with the hardware.# Building & Running the Blink example
## Arduino
The [Blink Example](https://github.com/urish/angular-iot/blob/master/examples/blink.ts) will blink the built-in
LED on an Adruino board that is connected to your PC. You will need to upload the
[StandardFirmata firmware](https://github.com/firmata/arduino) to your Arduino board first.git clone https://github.com/urish/angular-iot
cd angular-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.## C.H.I.P. (9$ computer)
[CHIP](https://www.getchip.com) is a tiny 9$ computer that has enough computing power to run Angular.
It also has WiFi and Bluetooth built-in, which makes it an ideal IoT platform. There is a version of the [Blink
Example](examples/blink-chip.ts) that runs on CHIP. In order to run it, make sure you have Node 6.x installed on
your CHIP (you can install it via [nvm](https://github.com/creationix/nvm)), and the run the following commands:git clone https://github.com/urish/angular-iot
cd angular-iot
npm install
npm install chip-io
npm run example:build
npm run example:chipThe on-board Status LED should start blinking.
# Presentation (April 2016)
[![angular-iot Talk](presentation.png)](https://skillsmatter.com/skillscasts/7934-javascript-from-the-world-wide-web-to-the-world-of-iot#video)
Check out [ng2-simon](https://github.com/urish/ng2-simon) for a complete example of using angular-iot for powering a game
that can be run both inside the web browser and on real hardware.# License
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](/LICENSE)