Skip to main content
12-Amethyst
March 13, 2024
Solved

Using additional libraries in thingworx

  • March 13, 2024
  • 2 replies
  • 1422 views

Is it possible to use external javascript libraries in thingworx. 
I would like to make use of the influxdb2 client specifically so that I do not have to re-invent the wheel on services and queries to our local influx data base. 

 

 

Best answer by Surya_Tiwari

Hi @NiKlaus  Look at he below reference article.

https://www.ptc.com/en/support/article/CS342798

2 replies

16-Pearl
March 14, 2024

Hi @NiKlaus  Look at he below reference article.

https://www.ptc.com/en/support/article/CS342798

14-Alexandrite
March 14, 2024

As you are looking to use JS for InfluxDB, you might be interested in backend, extension rather than mashup widget? For that purpose, you need to create a JAVA based ThingWorx extension. Probably you can wrap your java extension around the JS.

19-Tanzanite
March 14, 2024

Using the InfluxDB Java Client as a ThingWorx Extension is the preferred way here (but note we use that library already for our Persistence Provider implementation so you just need to reference it, not include it in the extension).

We do not usually embed client-side (browser) complicated libraries that are used to interact with third party systems - that interaction is purely done from the ThingWorx server side.