Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-gps

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-gps - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

.editorconfig

29

configurator.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc