IP Info is a Node-RED node that provides detailed IP address information using the IPInfo.io service. This node allows you to easily retrieve geolocation, network, and other relevant details about an IP address within your Node-RED flows.
- Retrieve comprehensive IP address information
- Configurable caching to improve performance
- Customizable timeout settings
- Easy integration with Node-RED flows
- Node-RED
- IPInfo.io account (free tier available)
You can install the node using one of the following methods:
- Open Node-RED
- Go to Menu > Manage palette
- Search for
@gautric/node-red-ipinfo - Click Install
# Using npm
cd ~/.node-red
npm install --save @gautric/node-red-ipinfo
# Using yarn
cd ~/.node-red
yarn add @gautric/node-red-ipinfoinput: Specifies where to retrieve the IP address from the message (msg.payload)output: Defines where to put the result in the Node-RED flow (msg.payload)name: Custom name for the node instance
name: Name of the node configuration instancetoken: Your IPInfo API Token- Sign up at IPInfo.io to get your token
timeout: Request timeout in milliseconds (default:1000ms)cacheEnabled: Enable/disable caching (default:true)- Improves performance and reduces API calls
maxitem: Maximum number of items in the cache (default:5000)ttl: Time To Live (TTL) for cached items in milliseconds (default:24 * 1000 * 60 * 60ms)
- Drag the IP Info node into your flow
- Configure the node with your IPInfo token
- Connect input and output nodes as needed
Contributions are welcome! Please feel free to:
- Report bugs
- Suggest features
- Submit pull requests
If this project helps you, consider:
- Starring the repository
- Buying the developer a coffee
This project is licensed under the MIT License. See the LICENSE file for details.