mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
re-categorise Geohash node as location
This commit is contained in:
parent
5f78aa10ad
commit
c128184d6a
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('geohash',{
|
RED.nodes.registerType('geohash',{
|
||||||
category: 'function',
|
category: 'location',
|
||||||
color:"#DEBD5C",
|
color:"#DEBD5C",
|
||||||
defaults: {
|
defaults: {
|
||||||
name: {value:""}
|
name: {value:""}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-geohash",
|
"name" : "node-red-node-geohash",
|
||||||
"version" : "0.0.1",
|
"version" : "0.0.2",
|
||||||
"description" : "A Node-RED node to encode and decode lat,lon pairs to a geohash.",
|
"description" : "A Node-RED node to encode and decode lat,lon pairs to a geohash.",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"ngeohash" : "0.6.0"
|
"ngeohash" : "0.6.0"
|
||||||
|
@ -32,11 +32,17 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
else { msg.payload = msg.payload.toString(); }
|
else { msg.payload = msg.payload.toString(); }
|
||||||
if (node.pushkey) {
|
if (node.pushkey) {
|
||||||
try {
|
nma({
|
||||||
nma(node.pushkey, "Node-RED", titl, msg.payload, 0 );
|
"apikey": node.pushkey,
|
||||||
} catch (e) {
|
"application": "Node-RED",
|
||||||
node.warn("NMA error: "+ e);
|
"event": titl,
|
||||||
}
|
"description": msg.payload,
|
||||||
|
"priority": 0
|
||||||
|
}, function (error) {
|
||||||
|
if (error) {
|
||||||
|
node.warn("NMA error: " + error);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
node.warn("NMA credentials not set.");
|
node.warn("NMA credentials not set.");
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-nma",
|
"name" : "node-red-node-nma",
|
||||||
"version" : "0.0.1",
|
"version" : "0.0.2",
|
||||||
"description" : "A Node-RED node to send alerts via Notify-My-Android",
|
"description" : "A Node-RED node to send alerts via Notify-My-Android",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"nma" : "0.1.8"
|
"nma" : "0.2.2"
|
||||||
},
|
},
|
||||||
"repository" : {
|
"repository" : {
|
||||||
"type":"git",
|
"type":"git",
|
||||||
@ -20,5 +20,9 @@
|
|||||||
"name": "Dave Conway-Jones",
|
"name": "Dave Conway-Jones",
|
||||||
"email": "ceejay@vnet.ibm.com",
|
"email": "ceejay@vnet.ibm.com",
|
||||||
"url": "http://nodered.org"
|
"url": "http://nodered.org"
|
||||||
}
|
},
|
||||||
|
"contributors": [{
|
||||||
|
"name": "Edwin Hermans",
|
||||||
|
"email": "edwin@madtech.cx"
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user