Skip to content

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gablau committed Jul 26, 2019
1 parent 2fc2f67 commit e32f4d3
Show file tree
Hide file tree
Showing 38 changed files with 5,246 additions and 3,722 deletions.
25 changes: 25 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"env": {
"browser": true,
"node": true,
"mocha":true,
"jquery": true
},
"globals": {
"RED": true
},
"extends": [
"airbnb-base"
],
"plugins": [
"html",
"json"
],
"rules": {
"prefer-destructuring": "off",
"no-plusplus": "off",
"no-global-require": "off",
"no-prototype-builtins": "off",
"max-len": [2, {"code": 140, "ignoreUrls": true}]
}
}
18 changes: 16 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.0.0] - 2019-07-27
### Added
- Utf-8 support in blynk message
- ESLint to increase code quality and discover problems
- Adopted the Airbnb javascript code style

### Changed
- Refactoring and adjusted all the source code to the new standard
- Various code improvements

### Fixed
- Regexp validation for uth token - See [Issue #13](https://github.com/gablau/node-red-contrib-blynk-ws/issues/13)

## [0.9.2] - 2019-05-04
### Changed
- Updated images in readme
Expand All @@ -19,7 +32,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- No automatic reconnect on connection lost

## [0.9.0] - 2019-03-19
### Add
### Added
- Node - *Image Gallery* - Implemented "url" and "urls" property [NOTE: url and urls property are supported only in beta app]
- Node - *Set Property* - Implemented "url" and "urls" property [NOTE: url and urls property are supported only in beta app]

Expand Down Expand Up @@ -168,7 +181,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Heartbeat once 10 seconds
- Max virtual pin allowed 128

[Unreleased]: https://github.com/gablau/node-red-contrib-blynk-ws/compare/0.9.2...HEAD
[Unreleased]: https://github.com/gablau/node-red-contrib-blynk-ws/compare/1.0.0...HEAD
[1.0.0]: https://github.com/gablau/node-red-contrib-blynk-ws/compare/0.9.2...1.0.0
[0.9.2]: https://github.com/gablau/node-red-contrib-blynk-ws/compare/0.9.1...0.9.2
[0.9.1]: https://github.com/gablau/node-red-contrib-blynk-ws/compare/0.9.0...0.9.1
[0.9.0]: https://github.com/gablau/node-red-contrib-blynk-ws/compare/0.8.0...0.9.0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Optionally you can install **Blynk [Local Server](https://github.com/blynkkk/bly

[Official Website](https://blynk.io)

Social: [Webpage](http://www.blynk.io) / [Facebook](http://www.fb.com/blynkapp) / [Twitter](http://twitter.com/blynk_app) / [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/)
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

Expand All @@ -118,7 +118,7 @@ __________

## Libraries by community
* [Node.js, Espruino, Browsers](https://github.com/vshymanskyy/blynk-library-js)
* [Python](https://github.com/vshymanskyy/blynk-library-python)
* [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)
Expand Down
110 changes: 56 additions & 54 deletions libs/blynk-enum.js
Original file line number Diff line number Diff line change
@@ -1,54 +1,56 @@
/* blynk enum */

var MsgType = {
RSP : 0,

//app commands
LOGIN : 29,
PING : 6,

//HARDWARE commands
TWEET : 12,
EMAIL : 13,
NOTIFY : 14,
BRIDGE : 15,
HW_SYNC : 16,
INTERNAL : 17,
SMS : 18,
PROPERTY : 19,
HW : 20,

REDIRECT : 41,
DEBUG_PRINT : 55,
EVENT_LOG : 64,

};

var MsgStatus = {
OK : 200,
QUOTA_LIMIT_EXCEPTION : 1,
ILLEGAL_COMMAND : 2,
NOT_REGISTERED : 3, //user
ALREADY_REGISTERED : 4, //user
NOT_AUTHENTICATED : 5, //user
NOT_ALLOWED : 6, //user
DEVICE_NOT_IN_NETWORK : 7,
NO_ACTIVE_DASHBOARD : 8,
INVALID_TOKEN : 9,
ILLEGAL_COMMAND_BODY : 11,
//GET_GRAPH_DATA_EXCEPTION : 12,
NOTIFICATION_INVALID_BODY : 13,
NOTIFICATION_NOT_AUTHORIZED : 14,
NOTIFICATION_ERROR : 15,
//reserved
//BLYNK_TIMEOUT : 16,
NO_DATA_EXCEPTION : 17,
//DEVICE_WENT_OFFLINE : 18, //removed
SERVER_EXCEPTION : 19,
//NOT_SUPPORTED_VERSION : 20, //removed
ENERGY_LIMIT : 21,
FACEBOOK_USER_LOGIN_WITH_PASS : 22,
};

exports.MsgType = MsgType;
exports.MsgStatus = MsgStatus;
/* blynk enum */

const MsgType = {
RSP: 0,

// app commands
LOGIN: 29,
PING: 6,

// HARDWARE commands
TWEET: 12,
EMAIL: 13,
NOTIFY: 14,
BRIDGE: 15,
HW_SYNC: 16,
INTERNAL: 17,
SMS: 18,
PROPERTY: 19,
HW: 20,

REDIRECT: 41,
DEBUG_PRINT: 55,
EVENT_LOG: 64,

};

const MsgStatus = {
OK: 200,
QUOTA_LIMIT_EXCEPTION: 1,
ILLEGAL_COMMAND: 2,
NOT_REGISTERED: 3, // user
ALREADY_REGISTERED: 4, // user
NOT_AUTHENTICATED: 5, // user
NOT_ALLOWED: 6, // user
DEVICE_NOT_IN_NETWORK: 7,
NO_ACTIVE_DASHBOARD: 8,
INVALID_TOKEN: 9,
ILLEGAL_COMMAND_BODY: 11,
// GET_GRAPH_DATA_EXCEPTION : 12,
NOTIFICATION_INVALID_BODY: 13,
NOTIFICATION_NOT_AUTHORIZED: 14,
NOTIFICATION_ERROR: 15,
// reserved
// BLYNK_TIMEOUT : 16,
NO_DATA_EXCEPTION: 17,
// DEVICE_WENT_OFFLINE : 18, //removed
SERVER_EXCEPTION: 19,
// NOT_SUPPORTED_VERSION : 20, //removed
ENERGY_LIMIT: 21,
FACEBOOK_USER_LOGIN_WITH_PASS: 22,
};

module.exports = {
MsgType,
MsgStatus,
};
Loading

0 comments on commit e32f4d3

Please sign in to comment.