Skip to main content
1-Visitor
February 16, 2021
Question

thingworx flow install mathjs

  • February 16, 2021
  • 9 replies
  • 3614 views

Hi,

 

   

I am trying to install within nodejs module the mathjs library to be able to use the unit converter. I have a problem to install an external library. I followed the guide on the portal but i can't install the module and whitelist it.

 

At first, I install mathjs into ThingworxFlow folder

 

 

cd C:\<PROGRAM FILES>\ThingworxFlow
npm install mathjs

 

 

I run the command to download the settings file

 

 

flow-deploy settings download -f ‘.\settings.json' -t "https://<url>:443/Thingworx" -u 'Administrator' -p ‘pass' -c devtools -s default -l debug

 

 

I edit the whitelistExternal with "mathjs" and then upload

 

 

flow-deploy settings upload -f ‘.\settings.json' -t "https://<url>:443/Thingworx" -u 'Administrator' -p ‘pass' -c devtools -s default -l debug

 

 

mmancin_0-1613513001377.png

but from flow keeps telling me that it is not whitelisted. What can I do?

 

mmancin_1-1613513034142.png

 

 

9 replies

Support
February 18, 2021

Hi @mmancin.

 

Please provide a link to the guide you are referring to and provide the version of ThingWorx/Flow you are running.

 

Did you get any errors when you ran the commands?  We can see in the statements you provided, you're using smart quotes in some cases, which could be causing an issue:

 

 

 

Regards.

 

--Sharon

 

mmancin1-VisitorAuthor
1-Visitor
February 23, 2021

Hi, i follow this guide

 

https://support.ptc.com/help/thingworx/platform/r9/it/index.html#page/ThingWorx/Help/Integration_Orchestration/ConnectorDevelopmentSDK/DeployingConnectors.html

 

About smart quotes I think are copy/paste error on this forum because the command correctly run into powershell.

Support
February 23, 2021

Hi @mmancin.

 

And what version of ThingWorx and ThingWorx Flow are you running?

 

Regards.

 

--Sharon