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">
|
||||
RED.nodes.registerType('geohash',{
|
||||
category: 'function',
|
||||
category: 'location',
|
||||
color:"#DEBD5C",
|
||||
defaults: {
|
||||
name: {value:""}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"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.",
|
||||
"dependencies" : {
|
||||
"ngeohash" : "0.6.0"
|
||||
|
@ -32,11 +32,17 @@ module.exports = function(RED) {
|
||||
}
|
||||
else { msg.payload = msg.payload.toString(); }
|
||||
if (node.pushkey) {
|
||||
try {
|
||||
nma(node.pushkey, "Node-RED", titl, msg.payload, 0 );
|
||||
} catch (e) {
|
||||
node.warn("NMA error: "+ e);
|
||||
}
|
||||
nma({
|
||||
"apikey": node.pushkey,
|
||||
"application": "Node-RED",
|
||||
"event": titl,
|
||||
"description": msg.payload,
|
||||
"priority": 0
|
||||
}, function (error) {
|
||||
if (error) {
|
||||
node.warn("NMA error: " + error);
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
node.warn("NMA credentials not set.");
|
||||
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
"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",
|
||||
"dependencies" : {
|
||||
"nma" : "0.1.8"
|
||||
"nma" : "0.2.2"
|
||||
},
|
||||
"repository" : {
|
||||
"type":"git",
|
||||
@ -20,5 +20,9 @@
|
||||
"name": "Dave Conway-Jones",
|
||||
"email": "ceejay@vnet.ibm.com",
|
||||
"url": "http://nodered.org"
|
||||
}
|
||||
},
|
||||
"contributors": [{
|
||||
"name": "Edwin Hermans",
|
||||
"email": "edwin@madtech.cx"
|
||||
}]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user