node-red-contrib-gps
Advanced tools
Comparing version 1.0.2 to 1.0.4
13
gpsoo.js
@@ -20,7 +20,14 @@ const GpsApi = require('./lib/GpsApi') | ||
data.payload = {} | ||
data.payload.status = 1 | ||
data.payload.dataArray = d | ||
const objData = {} | ||
if (d && d.length > 0) { | ||
data.payload.data = d[0] | ||
d.forEach(element => { | ||
objData[element.imei] = element | ||
}) | ||
} | ||
data.objData = objData | ||
node.status({ text: `获取成功:${data._msgid}` }) | ||
@@ -41,3 +48,3 @@ node.send([data, null]) | ||
// captureImage | ||
// monitor 监控 | ||
// address 地理位置逆解析 | ||
RED.nodes.registerType('gpsoo-address', class { | ||
@@ -60,3 +67,3 @@ constructor (config) { | ||
// monitor | ||
// address | ||
const d = await bd.address(data.longitude, data.latitude) | ||
@@ -63,0 +70,0 @@ data.payload = {} |
{ | ||
"name": "node-red-contrib-gps", | ||
"version": "1.0.2", | ||
"version": "1.0.4", | ||
"description": "汽车在线和万物在线 ,可以获取设备的gps位置和逆地理位置解析", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
23395
218
0