npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-predix-timeseries

v0.0.8

Published

A set of Node-RED nodes for GE Predix Timeseries

Downloads

12

Readme

node-red-contrib-predix-timeseries

These are Node-RED nodes that interface with the Timeseries microservices on General Electric's Predix platform specifically for the functions of data ingestion and data query. The nodes simplify the process of data ingestion and data query without requiring users to develop an actual application on the Predix platform. For more information on Predix, please refer to Predix resource.

For more information of these nodes, please refer to the tutorial on http://developers.sensetecnic.com

For a quick way to setup the Timeseries microservice on Predix, please refer to predix-timeseries-setup-guide.

Pre-requesites

To run these nodes, you need to have a running Predix Timeseries service on the GE's Predix platform. Please refer to predix-timeseries-setup-guide.

Install

Run the follwing command in the root directory of your Node-RED install. Usually this is ~/.node-red .

    npm install node-red-contrib-predix-timeseries

Usage

Timeseries Ingest node: Write data to timeseries

To setup the Timeseries ingest node, first setup the Timeseries client configuration by entering the information of your timeseries instance, such as the UAA url, Client ID, Client secret and the Predix-Zone-Id. If you are not sure where to obtain these values, please refer to the predix-timeseries-setup-guide. For a better understanding of the timeseries data structure, please refer to the predix timeseries document.

The current default ws url is wss://gateway-predix-data-services.run.aws-usw02-pr.ice.predix.io/v1/stream/messages, if you have a different ws url, please feel free to contact the author of this node.

If you have entered all correct information and deploy, you should see the node showing "Connected".

Once the node is connected, user is able send data in the incoming message. The fields include:

  1. msg.payload.messageId: the ID of this data ingestion message
  2. msg.payload.body: main part of the data ingestion message, which include three fields:
    • name: the tag names for timeseries
    • datapoints: the datapoints in array form, which include timestamp, measurement and quality
    • attributes(optional): attributes are key/value pairs used to store data associated with a tag

For detail usage of the node, please refer to the tutorial on http://developers.sensetecnic.com

Timeseries Query node: Query data from timeseries

To setup the Timeseries ingest node, first setup the Timeseries client configuration by entering the information of your timeseries instance, such as the UAA url, Client ID, Client secret and the Predix-Zone-Id. If you are not sure where to obtain these values, please refer to the predix-timeseries-setup-guide. For a better understanding of the timeseries data structure, please refer to the predix timeseries document.

The current default API base url is https://time-series-store-predix.run.aws-usw02-pr.ice.predix.io/v1/, if you have a different url, please feel free to contact the author of this node.

Once you have all the correct information and deploy the flow, you should see the node showing "Authenticated".

The data query node has a drop down menu with 4 options. They are referring to four API endpoints of the Preix timeseries data services.

  • Get all available aggregations
  • Query datapoints
  • Query for current value
  • Get all tags

For sample codes on the query command and node setup, please refer to our tutorial on http://developers.sensetecnic.com