cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

How can I run InfluxQL in ThingWorx to query data?

eyli
12-Amethyst

How can I run InfluxQL in ThingWorx to query data?

Dear all,

I am having an issue that the Thing's QueryPropertyHistory function does not return data if no data in the specified time period. But InfluxDB itself has the fill(previous) which can find the most recent value. So to resolve my issue, I have to run the InfluxDB to query data to ThingWorx. May I know if anyone know how to run InfluxQL in ThingWorx?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

In short, you will need to query data separately via the ContentLoader snippets (POST etc) to be able to construct a custom HTTP request that's using the fill parameter.

It's a simple task and the InfluxDB query capabilities are listed here: https://docs.influxdata.com/influxdb/v1.8/guides/query_data/

 

View solution in original post

2 REPLIES 2

In short, you will need to query data separately via the ContentLoader snippets (POST etc) to be able to construct a custom HTTP request that's using the fill parameter.

It's a simple task and the InfluxDB query capabilities are listed here: https://docs.influxdata.com/influxdb/v1.8/guides/query_data/

 

eyli
12-Amethyst
(To:VladimirRosu)

Thanks a lot for your help.

Top Tags