-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 99736cb
Showing
57 changed files
with
5,920 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cert/* | ||
coverage/* | ||
docs/* | ||
node_modules/* | ||
nodes/icons/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"mocha":true, | ||
"jquery": true | ||
}, | ||
"globals": { | ||
"RED": true | ||
}, | ||
"extends": [ | ||
"airbnb-base" | ||
], | ||
"plugins": [ | ||
"progress", | ||
"html", | ||
"json" | ||
|
||
], | ||
"rules": { | ||
"progress/activate": [1, { | ||
"printEvery": 0, | ||
"showSlowStats": true, | ||
"maxSlowFiles":5, | ||
"fullPath": false | ||
}], | ||
"prefer-destructuring": "off", | ||
"no-plusplus": "off", | ||
"no-global-require": "off", | ||
"no-prototype-builtins": "off", | ||
"no-multiple-empty-lines": "off", | ||
"max-len": [2, {"code": 140, "ignoreUrls": true}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
### NetBeans ### | ||
nbproject/ | ||
nbproject/private/ | ||
build/ | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
.nb-gradle/ | ||
|
||
### NODE ### | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
### NetBeans ### | ||
nbproject/ | ||
nbproject/private/ | ||
build/ | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
.nb-gradle/ | ||
|
||
### NODE ### | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# custom rules | ||
docs/ | ||
package-lock.json | ||
.npmignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## 0.1.0 - 2021-06-26 | ||
### Added | ||
- Implemented TSL connection. | ||
- Add Template ID in configuration node | ||
- Review Redirect command | ||
|
||
### Removed from old [Blynk legacy library](https://github.com/gablau/node-red-contrib-blynk-ws) | ||
- Connection throws WebSocket | ||
- Removed unsupported node - * Notify *, * Email *, * Bridge *, * Table * | ||
- Removed Proxy in configuration node | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017-2019 Gabriele Lauricella | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
# node-red-contrib-blynk-iot | ||
![Information Panel](./docs/img/node-red-blynk.png)\ | ||
NEW Blynk IoT Platform library implementation for [Node-RED](https://nodered.org/) | ||
|
||
[![npm version](https://img.shields.io/npm/v/node-red-contrib-blynk-iot.svg)](https://www.npmjs.com/package/node-red-contrib-blynk-iot) | ||
[![Npm download](https://img.shields.io/npm/dm/node-red-contrib-blynk-iot.svg)](https://www.npmjs.com/package/node-red-contrib-blynk-iot) | ||
[![GitHub stars](https://img.shields.io/github/stars/gablau/node-red-contrib-blynk-iot.svg)](https://github.com/gablau/node-red-contrib-blynk-iot/stargazers) | ||
[![GitHub issues](https://img.shields.io/github/issues/gablau/node-red-contrib-blynk-iot.svg)](https://github.com/gablau/node-red-contrib-blynk-iot/issues) | ||
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/gablau/node-red-contrib-blynk-iot/blob/master/LICENSE) | ||
|
||
[![NPM](https://nodei.co/npm/node-red-contrib-blynk-iot.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/node-red-contrib-blynk-iot) | ||
|
||
__________ | ||
|
||
## Warning: FOR TESTING ONLY | ||
## This library is in beta, it is not stable yet!! | ||
## Do not use for production | ||
__________ | ||
|
||
## Node-RED <-> Blynk IoT Platform | ||
This library supports both secure TLS connection to new Blynk IoT Platform cloud server. | ||
|
||
For Blynk cloud server, you can use **blynk.cloud** as the server url. | ||
|
||
**Local server is not yet supported.** | ||
|
||
**Do not work on old Blynk 0.1 legacy platform** | ||
|
||
If you installed Node Red globally use this command to install | ||
```npm install --global node-red-contrib-blynk-iot``` | ||
|
||
### Supported events, commands and widgets | ||
|
||
**Events:** read, write, app (connected/disconected)\ | ||
**Commands:** write, sync (virtual/all), set property\ | ||
**Widgets:** LCD, zeRGBa, styled button, image gallery | ||
|
||
### Changelog | ||
|
||
See the [changelog](CHANGELOG.md) for all the details of each releases | ||
|
||
### Node-RED palette | ||
|
||
![Available Nodes](./docs/img/blynk-palette.png) | ||
|
||
### Blynk App Settings | ||
|
||
Use Raspberry PI as hardware to access 256 virtual pins or Generic Board for 32. | ||
|
||
### How to use | ||
|
||
Set your blynk server url, Auth Token and Template ID in configuration node | ||
|
||
![Information Panel](./docs/img/readme-config-connection.png) | ||
|
||
See **help** panel on every nodes | ||
|
||
![Information Panel](./docs/img/readme-info-panel.png) | ||
|
||
### Debug | ||
|
||
Use the verbose `-v` flag when starting Node-RED to get more information | ||
or use `node-red-log` and enable log on Configuration Node as needed | ||
|
||
![Log settings](./docs/img/readme-config-advanced.png) | ||
|
||
|
||
### Compatibility | ||
|
||
This library is not retrocompatible and cannot replace **node-red-contrib-blynk-ws**. | ||
|
||
The new Blynk IoT platform does not allow migration from the old Blynk 0.1 (legacy), so neither does this library. | ||
|
||
__________ | ||
|
||
|
||
## What is Blynk? | ||
Blynk provides **iOS** and **Android** apps to control any hardware **over the Internet** or **directly using Bluetooth**. | ||
You can easily build graphic interfaces for all your projects by simply dragging and dropping widgets, **right on your smartphone**. | ||
Blynk is **the most popular IoT platform** used by design studios, makers, educators, and equipment vendors all over the world. | ||
|
||
## Download | ||
|
||
**Blynk [Arduino Library](https://github.com/blynkkk/blynk-library/releases/latest)** | ||
|
||
**Blynk App: | ||
[<img src="https://cdn.rawgit.com/simple-icons/simple-icons/develop/icons/googleplay.svg" width="18" height="18" /> Google Play](https://play.google.com/store/apps/details?id=cc.blynk) | | ||
[<img src="https://cdn.rawgit.com/simple-icons/simple-icons/develop/icons/apple.svg" width="18" height="18" /> App Store](https://itunes.apple.com/us/app/blynk-control-arduino-raspberry/id808760481?ls=1&mt=8)** | ||
|
||
Optionally you can install **Blynk [Local Server](https://github.com/blynkkk/blynk-server)** and run everything locally. However, **Blynk Cloud is free** for anyone who is using Blynk for personal (non-commercial) use. | ||
|
||
## Documentation | ||
|
||
[Full Blynk Documentation](http://docs.blynk.cc/#blynk-firmware) - a complete guide on Blynk features | ||
|
||
[Community (Forum)](http://community.blynk.cc) - join a 500,000 Blynk community to ask questions and share ideas | ||
|
||
[Help Center](http://help.blynk.cc) - helpful articles on various Blynk aspects | ||
|
||
[Code Examples Browser](http://examples.blynk.cc) - browse examples to explore Blynk possibilities | ||
|
||
[Official Website](https://blynk.io) | ||
|
||
Social: [Webpage](http://www.blynk.io) / [Facebook](http://www.fb.com/blynkapp) / [Twitter](https://twitter.com/blynk_app) / [Youtube](https://www.youtube.com/blynk) / [Instagram](https://www.instagram.com/blynk.iot/) / [LinkedIn](https://www.linkedin.com/company/b-l-y-n-k/) | ||
|
||
## Quickstart: Arduino + Ethernet shield | ||
|
||
* Download the Blynk app ([App Store](https://itunes.apple.com/us/app/blynk-control-arduino-raspberry/id808760481?ls=1&mt=8), [Google Play](https://play.google.com/store/apps/details?id=cc.blynk)) | ||
* Get the Auth Token from the app | ||
* Import this library to Arduino IDE. Guide [here](http://arduino.cc/en/guide/libraries) | ||
* In Arduino IDE, select File -> Examples -> Blynk -> Boards_Ethernet -> Arduino_Ethernet | ||
* Update Auth Token in the sketch and upload it to Arduino | ||
* Connect your Arduino with Ethernet shield to the internet | ||
|
||
Please find examples on how to use different types of connections (transports) and how to do make something great with Blynk. | ||
You can easily apply any type of board/connection to all examples. | ||
|
||
__________ | ||
|
||
## Official implementations | ||
* [C++, Arduino](https://github.com/blynkkk/blynk-library) | ||
* [Python, MicroPython](https://github.com/blynkkk/lib-python) | ||
|
||
## Libraries by community | ||
* [Node.js, Espruino, Browsers](https://github.com/vshymanskyy/blynk-library-js) | ||
* [Python, MicroPython](https://github.com/vshymanskyy/blynk-library-python) | ||
* [Particle](https://github.com/vshymanskyy/blynk-library-spark) | ||
* [Lua, OpenWrt, NodeMCU](https://github.com/vshymanskyy/blynk-library-lua) | ||
* [OpenWrt packages](https://github.com/vshymanskyy/blynk-library-openwrt) | ||
* [MBED](https://developer.mbed.org/users/vshymanskyy/code/Blynk/) | ||
* [Node-RED](https://www.npmjs.com/package/node-red-contrib-blynk-iot) **This library!** | ||
* [LabVIEW](https://github.com/juncaofish/NI-LabVIEWInterfaceforBlynk) | ||
* [C#](https://github.com/sverrefroy/BlynkLibrary) | ||
|
||
## Attributions | ||
|
||
The **node-red-contrib-blynk-iot** was born as a fork of [**node-red-contrib-blynk-ws**](https://github.com/gablau/node-red-contrib-blynk-ws) to support new Blynk IoT Platform | ||
|
||
## License | ||
This project is released under The MIT License (MIT) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.