Skip to main content
12-Amethyst
Mar 13, 2024 1:28 PM UTC
Solved

Using additional libraries in thingworx

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. 

 

 

16-Pearl
Mar 14, 2024 1:48 AM UTC

Hi @NiKlaus  Look at he below reference article.

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

3 replies

16-Pearl
Mar 14, 2024 1:48 AM UTC

Hi @NiKlaus  Look at he below reference article.

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

Translate
14-Alexandrite
Mar 14, 2024 2:41 AM UTC

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.

Translate
19-Tanzanite
Mar 14, 2024 1:13 PM UTC

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.

Translate