Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
angular2-iot
Advanced tools
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.
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.
CHIP is a tiny 9$ computer that has enough computing power to run Angular 2. It also has WiFi and Bluetooth built-in, which makes it an ideal IoT platform. There is a version of the Blink Example 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), and the run the following commands:
git clone https://github.com/urish/angular2-iot
cd angular2-iot
npm install
npm install chip-io
npm run example:build
npm run example:chip
The on-board Status LED should start blinking.
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.
FAQs
IoT support for Angular 2
We found that angular2-iot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.