This is a node-red node that smoothly integrates with the Cumulocity platform to fetch device measurement data.
run npm -g install node-red-contrib-c8y-measuremts
Fetches measurement data & can limit the data based on deviceId & dateRange
- cumulocity instance name
- tenant name
- deviceId: limits measurement data to 1 specific device
- startDate, endDate: returns measurement data for only a target date range
- pageSize: Defines maximum number of records to return
This node is the first in a series of nodes designed to integrate with the Cumulocity IoT platform. The long-term goal is to create a complete library of node-red nodes that can pair with Cumulocity (analogous to the AWS & Salesforce node-red libraries).
Optional pagination of results is coming next: This will give users to option to have the node run continuously until all measurements are returned. This will also include the ability to add a max timeout.
I also want to make it easier to have environment variables stored easily in your NodeRed flow. Parameters like tenant name, usernames, & credentials should all be stored in one location (vs. hard-coded into each node), so that they can be changed, managed, & protected more easily. Once I have that figured out, I'll update this node to be compatible with that.