Recently active
Having trouble remembering how to get into Flow? How about make /Flow the URL? Since the Flow environment uses NGINX to front-end the various components that make up Flow, there is a very sophisticated set of rewrites and proxy_pass directives in the NGINX configuration. All you have to do is add another 'location' fragment to the vhost-flow.conf file that will push /Flow over to /Thingworx/Composer/apps/flow: location /Flow { rewrite ^/Flow$ $proxy_scheme://$server_host/Thingworx/Composer/apps/flow permanent; } On Linux, the file should be at /etc/nginx/conf.d/vhost-flow.conf On Windows, the file should be at c:\Program Files\nginx-[version]\conf\conf.d\vhost-flow.conf Test the updated config file with (nginx may not exist in your normal path): nginx -t Restart the NGINX service: Linux (one of these will work depending upon your Linux version): systemctl restart nginx service
Hi All I am having an issue connecting to the Azure IoT Hub from ThingWorx 8.4. - The Connector and Thingworx are on the same server - The attached azure-iot.conf file was configured using direction from PTC Using this link When run the azure-iot.bat file from cmd i get the following error. Any help with this issue is much appreciated! Thanks! 14:06:16.812 [NettyClient-NIO-5] ERROR c.t.s.i.t.netty.NettyBytesChannel - Error while establishing websocket connection on channel com.thingworx.sdk.impl.transport.netty.NettyBytesChannel$2@6069b8ae.java.net.ConnectException: Connection refused: no further information: localhost/127.0.0.1:8080at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:224)at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:289)at io.netty.channe
I've tried (as admin) changing permissions on ExportImportSubsytem, CollectionFunctions and ExportFile. None of these enables the "From File" or "To File" options in the Import/Export menu: they're still greyed out for the (non-admin) user.Also, if I ever manage to allow the non-admin user to export entities, can I assume that they will only be able to export entities that they already have permission to see?
I have a stream containing "alarms" the source field is the name of the equipment who generated the alarm, like MACHINE1 MACHINE2 .... I need to query entries for all records with two or more source names (not just one) I Use QueryStreamEntriesWithData, keeping source parameter as undefined and using a query with the "IN" syntax, like {source IN array_of_elements} (where each element is a machine name). This query works ... but it is slow if I have millions of rows and searching for many months (I also use time range obviously, and limit result to 2000 records). is the source field indexed ? is this query executed at the database or thingworx layer ? is there a faster way ?
I followed this 2 topics-How to convert JSON to an InfoTable in ThingWorxhttps://www.ptc.com/en/support/article?n=CS179012-About Convert JSON file to Infotablehttps://community.ptc.com/t5/ThingWorx-Developers/About-Convert-JSON-file-to-Infotable/td-p/508236I do-I read the how to about make service to GetJSON from snippet.-I try to create Datashape like JSON format i need to call.I don't know- Where to make GetJSON service execute? Does I have to create the thing first to use service?- how to test result?I think I need start to finish guideline about thisCan anyone show me this how toThankyou
Hey ptc community, for some testing I need to simulate some data. I was told that I can use the Keepserver for this. I found the options but I don´t know how I can connect the Keepserver to my local Thingworx and start to simulate data there. I found this to start a simulation: https://community.ptc.com/t5/ThingWorx-Developers/How-do-I-simulate-random-tag-values-against-a-device-in-kepware/td-p/545582And I created a simulator, but how can I make a connection?Maybe someone did it before and can help me with my problem?Thanks
Hi Developers, I'm working on a TWX architecture for a use case as shown below. There are manufacturing plants across different geographical locations. In each plant there are multiple machines and each machine has its own FTP server, where after 10000 recordings are collected from the machine, a csv file with these recordings are generated in the local FTP server. There is only read access to these FTP servers and no static ip is provided. The objective is to provide a cloud based architecture for data visualization of the csv file data. I need help on the following to get me started on the initial architecture: Since static ip can't be given for individual FTP servers, what is the best possible architecture for the use case. With one TWX cloud instance will it be possible to collect data from the FTP servers across different locations or do we need a separate TWX instance for each location. Any help will be much appreciated. &
I want to do some changes to the result which I get from calling the GetPropertyValues() on any Thing. it will be helpful if I get the object structure it methods to manipulate the result value and extract the data which i want.
Hi Everyone, I need to create a Kanban board using thingworx composer. Can someone help me the way I can achieve it or suggest any widget that is available in thingworx. Use Case Requirement : Need to show the remaining quantity of material used in a bin/box from total quantity. Thanks in Advance.
Hi, Is there any way to read many topics using MQTT extension? When I'm using extension for one single topic eg: topic/device_one/readings/temperature everything works fine, but i also need all readouts using topic: topic/+/readings/+ wich should give me all the topics. But extension lets me map only payload (eg: JSON) but what about multiple topics? Is there any way to retrive this in ThingWorx? Much thanks for any help.
I have created example widget provided from ptc developer site and i would like to add a Style property to it and I have gone through documentation of ptc and was not quite getting along so could any one suggest any way. this is IDE code (taken from widget creation in ptc developer page) TW.IDE.Widgets.simplewidget = function () { this.widgetIconUrl = function() { return "../Common/extensions/MyAwesomeExtension/ui/simplewidget/SimpleWidget.ide.png"; }; this.widgetProperties = function () { return { name : "SimpleWidget", description : "A simple example of Widget creation.", category : ["Common"], properties : { DisplayText: { baseType: "STRING", defaultValue: "Hello, Awesome User!", isBindingTarget: true } } } }; this.renderHtml = function () { var mytext = this.getProperty('SimpleWidget Property'); var config = { text: mytext } var widgetTemplate = _.template( '<div class="widget-content widget-simplewidget">' + '<span class="DisplayText"><
Hello Sir/Ma'am, I have been using Thingworx for learning purpose and i am towards my first step. My nodemcu and thingworx portal is working absolutely fine when not integrated. But the data from nodemcu is not updated on thingworx portal to the thing EnvStrobe properties.
Hi, just upgrade to thingworx 8.5, I created a new master page, contains layout widget, every time reload the composer, the master will prompt me message " Your mashup uses deprecated widgets. Replace them now with new widgets? This action is irreversible. ", I selected 'Yes' , but reload again the message still show up. Please help.
Hello, I am trying to create a Factory visualization application on webgl with PlayCanvas/Threejs/Babylonjs . How can I directly import that WebGL content into ThingWorx Studio or Composer or Thingview Webgl. Can you help me out with the approach of how to achieve this. Also I am developing Unity WebGL for the same, If its possible to do the same with Unity without using Rest API, calling data from server and directly using my project into ThingWorx pipeline. Thank you.
I'm getting up to speed on all the great new stuff in 8.5, and have found that since the JavaScript engine was upgraded to Rhino 1.7.11, there's some awesome new JavaScript ES6 functionality available. I have tested arrow functions, filter, map, and reduce. Compose does not look like it is supported. If you're not familiar with this functionality, I highly recommend reading up on them. Filter, map, and reduce are incredibly useful for working with arrays. They can save you a lot of annoying logic. Here's some resources that I've found helpful for learning: JavaScript Functional Programming - map, filter and reduce Arrow Functions: Fat and Concise Syntax in Javascript If you really want to dive into ES6, Wes Bos has incredible tutorial sessions that are worth every penny: Wes Bos: ES6 for Everyone! Have you played around with ES6 functionality in ThingWorx 8.5 yet?
Hi, Is there a way for reading the text and then narrating it by clicking any button in ThingWorx. Thanks and regards, Aditya Kumar
Hello! I've got a bit of an unusual problem which probably has a very simple fix to it. I've successfully established a POST request from a React platform onto a ThingWorx service I was trying to run. Said POST request returns all the data I wanted without any problems, however the timestamp coming with that data is unusable... Here is the service being run in ThingWorx: // result: INFOTABLE dataShape: ""var result = me.QueryPropertyHistory({oldestFirst: undefined /* BOOLEAN */,maxItems: undefined /* NUMBER */,endDate: EndDate /* DATETIME */,query: undefined /* QUERY */,startDate: StartDate /* DATETIME */});result = result.ToJSON(); StartDate and EndDate are not required to make the POST call and have a default value of "". I tried setting one of them to the appropriate "YYYY-MM-DD HH-mm-ss-SSS" format but it was ignored and the entire database is still being queried. Here is an example of the returns I am getting (on the React Platform): {"Valu
Hi, I launched version 2.1.0 of the ThingWorx GitBackup Extension on Github, in the following repository: https://github.com/vrosu/thingworx-gitbackup-extension This release contains a few UI fixes and experimental support for proxy. "The GitBackup extension is updated on a best-effort basis and accepts community fixes, that are best done through GitHub. Please report any troubles via GitHub's Issue system. Important notice: As you might be aware, we have just launched ThingWorx 8.5 and with it a new solution called Solution Central, which is a brand-new cloud-based service to help you package, store, deploy, and manage your ThingWorx applications. This service is supported by PTC and it contains features that seem to be similar to the GitBackup extension, but they are not. They are different type of tools: Git is a source versioning tool, while Solution Central is an artifact repository. When deploying applications between ThingWorx
I'm creating a custom Widget extension that basically just wraps a Javascript library, and it works like this: 1. Create a <canvas> element with a certain ID/class/whatever 2. Attach the library to that <canvas> element 3. Do stuff after that I'm currently creating the <canvas> element like so: this.renderHtml = function() { return ( '<div class="widget-content"><canvas id="' + this.getProperty("Id") + '"></canvas></div>' ); } However, this doesn't work when the Widget is in a Collection Item, since all the mashups within the collection have the exact same ID for the widgets within. The result is that none but the first widget actually display or function. How do I go about making it so my widget can be used within a Collection widget, is there some way to get an ID that is unique to the collection item?
I have 2 VMs VM1. MS Window Server 2016 with ThingWorx Manufacturing Apps and KepserverEX 6.6 VM2. MS Window 7 with RSLogix 5000 and SoftLogix. These 2 VM can ping each other. In VM.2, I create a PLC program, download into SoftLogix and simulate some data. In VM.1, I configure the tag in KepserverEx and check the data in OPC Client already. In ThingWorx Manufacturing Apps, I add new machine and try to configure the KPI. But in the configuration and setup, when I browse into PLC tag. I cannot see the tag I just add into KepserverEX. I found just the simulate tag, not tag from SoftLogix. RSLogix5000 and SoftLogix KepserverEX OPC Client ThingWorx Manufacturing Apps : Controls advisor Cannot find Tag in Kepserver that added from Softlogix Find Just Simulated Tag in Kepserver. I try to change from Kepserver to Industrial Connectivity, but the result is the same. I'm newbee in this platfrom. please give me a
We don’t know how to develop the following in a mashup. We have a multiple choice drop down list with different items that represent a Thing on the platform and we’ll like to call a single service that gets iteratively all the data for each of the selected items to represent them on a time series chart widget. Currently, we’ve developed one service for each of the selected items and we call them one by one, but we understand this is not the way to do it. We’ve developed 4 different services and this way we can visualize data for a maximum of 4 different Things selected on the list, but we have 70 different item to select for. Thanks in advance,
Hi, In thingworx, how can I set a value to a property tag based on the input using services? Thanks, Shalini V.
Hello! I'm running a very simple QueryPropertyHistory Service to obtain the logged values that are defined on the very Thing on which the service is defined. So normally something like this should work? // result: INFOTABLE dataShape: ""var result = me.QueryPropertyHistory({oldestFirst: undefined /* BOOLEAN */,maxItems: undefined /* NUMBER */,endDate: undefined /* DATETIME */,query: undefined /* QUERY */,startDate: undefined /* DATETIME */}); I set up my service to run on Mashup load just to test it out and I get this error (in the console log): Error executing service. Message ::null - See Script Error Log for more details There are no additional details provided in the Error Log, it's actually completely blank. Does anyone know how to properly query all the properties present on the same Thing as the service it is being ran on? Any help will be much appreciated. Cheers! 🙂
Hi, we have several Developers working with local Thingworx instances. The make Mashups, Things, Services etc complete locally. When they are ready we make a Extension with a metadata.xml file and zip it to import it in Thingworx. This works perfectly in the last time. But currently there comes the message "Import requires platform restart." while trying to import.Why does it need to restart the platform? There are no jar files or something else in the extension. Just Entities/ and some Things, Mashups, etc (only xml files). Thanks!
var week = me.GetWeekNumber({ date: when }); // Copied from Stack Overflow, didn't test its correctnessvar month = when.getMonth(); // Zero-basedvar year = when.getFullYear();var correctmonth = month +1;var query = me.CreateValuesWithData({ values: {value: value,Kategory: Kategory,Department:Department,Line: Line,SKU : SKU,KPI_Details: KPI_Details,Target: Target,Other_Target : Other_Target,Other_value : Other_Value,week: week,month: correctmonth,year: year} });query.id = me.ID;var params = {sourceType: undefined /* STRING */,values: query /* INFOTABLE*/,location: undefined /* LOCATION */,source: undefined /* STRING */,tags: undefined /* TAGS */};if(me.ID !== query.id){stop();}var result = me.AddDataTableEntry(params); when I refresh the page, it will auto increment one more empty row in the grid widget. how to fix this problem?
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.