node-red-contrib-gps
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,23 +0,8 @@ | ||
module.exports = function (RED) { | ||
var CryptoJS = require("crypto-js"); | ||
function configuratorNode(n) { | ||
RED.nodes.createNode(this, n); | ||
this.name = n.name; | ||
this.phone = n.phone; | ||
this.password = n.password; | ||
this.md5Pass = '' | ||
this.access_token = '' | ||
this.expires_in = 0 | ||
this.time = 0 | ||
var node = this; | ||
if (n.password) { | ||
this.md5Pass = CryptoJS.MD5(this.password).toString() | ||
}else { | ||
node.status({fill:"red", shape:"ring", text: "不存在,请检查密码"}); | ||
} | ||
module.exports = (RED) => { | ||
RED.nodes.registerType('gpsoo-configurator', class { | ||
constructor (config) { | ||
RED.nodes.createNode(this, config) | ||
Object.assign(this, config) | ||
} | ||
RED.nodes.registerType("gpsoo-configurator", configuratorNode); | ||
} | ||
}) | ||
} |
{ | ||
"name": "node-red-contrib-gps", | ||
"version": "1.0.1", | ||
"description": "汽车在线 node red 节点", | ||
"main": "xxx.js", | ||
"version": "1.0.2", | ||
"description": "汽车在线和万物在线 ,可以获取设备的gps位置和逆地理位置解析", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/smarthomefans/smarthomefans-nodes.git" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com:smarthomefans/node-red-contrib-gps.git" | ||
}, | ||
"keywords": [ | ||
"node-red", | ||
"gps" | ||
"node-red" | ||
], | ||
"node-red": { | ||
"nodes": { | ||
"gpsoo-login": "login.js", | ||
"gpsoo-configurator": "configurator.js", | ||
"gpsoo-monitor": "monitor.js", | ||
"gpsoo-address": "address.js" | ||
"gpsoo": "gpsoo.js", | ||
"configurator": "configurator.js" | ||
} | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/smarthomefans/smarthomefans-nodes/issues" | ||
}, | ||
"author": "yaming116", | ||
@@ -30,3 +30,10 @@ "license": "MIT", | ||
"crypto-js": "^3.1.9-1" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "^10.0.1", | ||
"eslint": "^5.16.0", | ||
"eslint-utils": "^1.4.2", | ||
"eslint-config-vue": "^2.0.2", | ||
"eslint-plugin-vue": "^5.2.2" | ||
} | ||
} |
# node-red-contrib-gps | ||
汽车在线节点 | ||
汽车在线和万物在线节点, 主要包含监控机车位置和地理位置逆解析 | ||
@@ -8,3 +8,3 @@ | ||
**Requires Node.js v6.0 or newer** | ||
**Requires Node.js v8.0 or newer** | ||
@@ -19,3 +19,2 @@ Either install from the Node-RED palette manager, or: | ||
* **gpsoo-login** 用于登陆汽车在线,目前`access_token`有效期为2小时,所以要定时获取 | ||
* **gpsoo-monitor** 用于获取设备信息,默认`msg.payload.data`是第一个设备信息,详细设备可以从`msg.payload.dataArray`获取 | ||
@@ -36,2 +35,1 @@ * **gpsoo-address** 通过经纬度反向获取地址信息,输入参数经纬度 | ||
MIT © 2018 yaming116 | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
212
0
22679
5
13
33
1