Skip to main content
10-Marble
May 28, 2024
Solved

Use Thingworx API to store data in InfluxDB

  • May 28, 2024
  • 3 replies
  • 1877 views

hello,

 

I have Thingworx platform in my work place that uses Kepserver layer to collect data from machines , store it in MSSQL DB and then use Thingworx web application to visualize data. 

 

I have the idea of using Grafana as visualization tool instead thingworx mash ups (more convenient to business) . What is the architecture suited to this need? I'm thinking about using API calls to populate an influxDB and then querry this DB in Grafana. 

 

Any ideas on this ? 

 

Thanks 

Best answer by pshashipreetham

Hi @Lo_ry96,

 

I have done this before for another use case. Below are the steps:

  1. Add Influx as the Secondary Persistence Provider in Thingworx
  2. Create a value stream, while the creation of a Value stream selects the Secondary Persistence Provider instead of "ThingworxPersistenceProvider":
    pshashipreetham_0-1717093968453.png
  3. Then assign the value stream you have created to a Thing
  4. Create the Properties and check the log while creating the Property
  5. Once the Log is checked, when data comes to the property it gets stored in the Influx DB

Thanks,

3 replies

24-Ruby III
May 28, 2024
Lo_ry9610-MarbleAuthor
10-Marble
May 30, 2024

Hi thanks for shared info. Any ressources/ides on how to perform GET requests to fetch data from Thingworx? i'm turning around since a while as i'm starter to Thingworx platform so any guidance is appreciated 

 

Many thanks 

24-Ruby III
May 30, 2024
Community Moderator
May 30, 2024

Hello @Lo_ry96

 

It looks like you have a response from a community member. If any of these replies helped you solve your question please mark the reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Community Moderation Team.

pshashipreetham
18-Opal
18-Opal
May 30, 2024

Hi @Lo_ry96,

 

I have done this before for another use case. Below are the steps:

  1. Add Influx as the Secondary Persistence Provider in Thingworx
  2. Create a value stream, while the creation of a Value stream selects the Secondary Persistence Provider instead of "ThingworxPersistenceProvider":
    pshashipreetham_0-1717093968453.png
  3. Then assign the value stream you have created to a Thing
  4. Create the Properties and check the log while creating the Property
  5. Once the Log is checked, when data comes to the property it gets stored in the Influx DB

Thanks,