Either use the Menu - Manage palette option, or run the following command in your Node-RED user directory - typically ~/.node-red
# Using npm
npm install --save @gautric/node-red-ipinfo
# Using yarn
yarn add @gautric/node-red-ipinfo
-
Node
input
:msg.payload
, Where retrieve the IP adress from the messageoutput
:msg.payload
, Where put the result into the node-red imagename
: Name of the instance nodeconfig
:IPInfo Config
-
IPInfo Config
name
: Name of the instance node configurationtoken
: Your Token for calling IPInfo servicetimeout
:1000
ms, Timeout of the requestcacheEnabled
:true
/false
, Enable or disable cache to improve perf and reduce costmaxitem
:5000
, number max of item into the cachettl
:24 * 1000 * 60 * 60
ms, Time To Leave of the item inside the cache