Recently active
Hi Been scratching my head long enough. Can anyone offer guidance on the following error - Thank you pi@raspberrypi:~/microserver $ sudo ./wsems [FORCE] 2020-12-22 14:52:28,215 ./wsems: Initializing EMS .... [FORCE] 2020-12-22 14:52:28,215 main: Using config file /home/pi/microserver/etc/config.json [INFO ] 2020-12-22 14:52:28,215 ./wsems: Creating the WsEms proxy. [INFO ] 2020-12-22 14:52:28,215 ./wsems: Starting HTTP Server. [WARN ] 2020-12-22 14:52:28,215 Main: Encryption is disabled on HTTP Server. [WARN ] 2020-12-22 14:52:28,215 Main: TLS Hostname Validation Is Disabled [WARN ] 2020-12-22 14:52:28,215 Main: Authentication is disabled on the HTTP Server. [INFO ] 2020-12-22 14:52:28,216 ./wsems: Initializing the ThingWorx REST interface. [FORCE] 2020-12-22 14:52:28,216 httpServer: starting http server port=8080 [INFO ] 2020-12-22 14:52:28,216 wsEmsProxy::initialize: FIPS is disabled. [INFO ] 2020-12-22 14:52:28,216 wsEmsProxy::initialize: Encryption is enabled on Web Socket connecti
Create a new Thing using the Scheduler Thing Template. The Scheduler Thing will fire a ScheduledEvent Event when the configured schedule is fired. The event is automatically present and does not need to be added manually. Configuration The Scheduler Configuration is quite straightforward and allows for an exact setup of schedule based on units of time, e.g. seconds, minutes, hours, days of week etc. It can be accessed via the Thing's Entity Configuration Configuration allows for Changing the runAsUser context - in which the Events will be handled. The user will need visibility and permission on e.g. executing Services or depending Things, which are required to run the Service triggered by the Event. Changing the Schedule - in which time the Events will be fired (by default every minute). The schedule is displayed in CRON String notation and can be changed and viewed in detail by clicking on "More". The CRON String will be generated automatically based on the inputs
hii, i want to show the time by using timers and schedulers. For eg. 1) i have one program which starts from 10am to 11am. So, if there are 1hr or half an hour or 15 min remaining to start the program how i show it by using timers and schedulers? 2) when the program is started i want to show or display "ON". 3) When the program is end i want to show or display "OFF". please suggest the procedure or solution for the same. please refer the below screenshot for an example
Hi, I have two questions, 1. I am using Thingworx 9.0, I want to show live CCTV streaming on thingworx mashup how can I do that? Please send me any architecture diagram to connect CCTV camera to thingworx. Does anyone know how to work? Much appreciated. 2. I have sensor data in the hex format which in the attachment file, I want to convert it into a readable format. I have tried with some javascript program which is given below but it is giving me the wrong result please check attachment for output. please suggest var hex1 = HextData.toString(); var str = ''; for (var n = 0; n < hex1.length; n += 3) { str += String.fromCharCode(parseInt(hex1.substr(n, 6), 16)); } var result = str; Does anyone know how to work? Much appreciated.
Hi guys! I have a Thing (an Asset from Apps view, and a Thing that inherits from PTC.ISA95.PhysicalAssetThingTemplate Thing Template from ThingWorx view) that has Infotable properties (VTQ datashape) and I'd like to display them (just the number field) in Apps built in timeseries charts. I came up with two approaches: 1) Duplicate the Infotable properties as Number properties and make Apps consume that Number properties. Which seems a bad approach since it duplicates data. 2) Customize Apps. As far as I know, OOTB Apps only support Number and Boolean base types for display so I'd have to customize the Apps in the places where timeseries are displayed which are Asset Advisor.Monitored Properties and Trending and Troubleshooting. * Asset Advisor.Monitored Properties, According to documentation I should overwrite the GetMonitoredProperties (inherited from PTC.SCA.SCO.MonitoredPropertiesThingShape) but this service only returns Number and Bool
Hello, I'm trying to write a service that allows me to push a Kepware configuration (in .json format) to a chosen Kepware server. When I try to push the configuration using the "PushConfigToEdge" built in service, I get "Configuration Transfer from ThingWorx Platform failed. | Reason = 'Access Denied'" on the Kepware interface. I've also tried using the built in push/pull interface from the Thing -> Configuration Files page, but I get the same result.What am I doing wrong? Below you can find the source code I'm using at the moment.Thanks in advance. var fileNameExt = fileName + ".json"; var tempString = jsonString; tempString = "'" + jsonString + "'"; tempString = JSON.stringify(tempString); pause(10000); var tempObj = JSON.parse(tempString); pause(10000); Things["SystemRepository"].SaveText({ path: '/' + fileNameExt /* STRING */, content: tempObj /* STRING */ }); Things[gatewayName].PushConfigToEdge({ sourceFileName: fileNameExt /* STRING */,
Hi, I am looking to sequence the rows by dragging the entire row to another place. How to make it in thingworx? Thank you
Hi, I'm working on some application in TWX where I would like to have filter in mashup. Currently it is working like= Search_string is found in infotable (e.g. BCD in ABCDE string) But, our users will also use local language string like e.g. BČD (in slovak language). How could I achieve that I can only use search string like BCD and I will get a result from BČD? Original table: Header ABČ XYZ Table with search string = ABC Header ABČ My current settings for filter in Service: "filters":[{"type": "LIKE","fieldName": "Class","value": "%"+search_string+"%"}, Thanks
Hi all, Following up on something that we noted in our documentation a while back, we are planning to deprecate the ability to update the request method via the Allow Request Method Switch in the Platform Subsystem. Although this setting is the disabled by default in ThingWorx, and leaving it off is strongly recommended to prevent cross-site request forgery (CSRF) attacks, it is still possible to enable it. We allowed for this option because of concerns about backwards compatibility, but now that several major versions have passed we are planning to make the default setting mandatory in a future release of ThingWorx (likely by the end of calendar year 2021). Removing the ability to Allow Request Method Switch will further enhance the security of the ThingWorx platform. Please see the relevant portion of the Help Center for details, and chime in on this post of you have any concerns. Best, Walter Haydock ThingWorx Product Management
Hi Everyone, I'm trying to write a service that can bind properties in my thing to data in an edge device. here's my code: // get all properties from the thing propertyDefs = Things[assetThing].GetPropertyDefinitions({ category: undefined /* STRING */, type: undefined /* BASETYPENAME */, dataShape: undefined /* DATASHAPENAME */ }); numberOfProperties = propertyDefs.getRowCount(); var params = { infoTableName: "PropertiesToAdd" /* STRING */, dataShapeName: "PropertyNamesForBindings" /* DATASHAPENAME */ }; var allProperties = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params); for each(var property in propertyDefs.rows){ // Only add properties starting with "Fan" if (property.name.substr(0,3) == "Fan"){ var newRow = new Object(); newRow.name = property.name; newRow.description = "";//property.description; allProperties.AddRow(newRow); } } // loop through properties, and add source to each property. sourceNamePrefix = edgeChannelName + "."
Hi, I found a bug in the Fieldset-Widget. Nested fieldset inherit title of the parent fieldset. Scenario: I put three fieldsets inside of a other fieldset. The parent fieldset gets his title from a service. The first child fieldset gets its title from a other service. The second has a static string as title and the last child fieldset has a translated title (via [[translationToken]]). All fieldset now gets the same title (on runtime) from the parent fieldset. This bugs only occurs if the parent fieldset get the title via binding. Tested TWX versions: - ThingWorx 8.5.2-b90 - Thingworx 9.0.0-b9557
Hi, I have dynamic JavaScript service , like : let result = Things[thingName][serviceName](serviceParam); How can I get the base type of the result for such a dynamic service ? Regards, Sean
Hi All, We are calling Thingworx API from a AWS SNS topic when messages arrive at the topic. Currently we are using the APPKey in the REST API call from the SNS endpoint configuration. Is it possible to encrypt the APPKey and send it as an encrypted version in the endpoint configuration in the SNS. For security purpose we have restricted to specific users only but still that poses a danger if the Appkey is exposed somehow.
Hi Team, Suppose I have a below network:- A(Parent) B (Child of A) C(Child of B) where A ,B and C are ThingNames of ThingWorx Composer which is displaying on a tree widget in a mashup. Let say things A,B and C has common property as 'displayName' and I want to show the hierarchy as per displayName, then how would I achieve this to show a network on a tree widget in Mashup. For e.g., the result should be like:- displayNameofA displayNameOfB displayNameOfC (instead of ThingNames) In short, I want to add some property in a network hierarchy instead of ThingName (or any other alternative instead of thingname) Thanks in advance.
Hi , I am unable to add and delete row from grid advanced in Thingworx. i have a property in thing with base type infotable and i added few rows . i have Grid in Mashup which connects as below.... and grid properties as..below attached i haven't created any service (tell me if its needed). table i am seeing like in attached file thanks
Hi All, I am using Postman (calling RESt API) to create things and network. I was successful in doing so. Now I am trying to build the hierarchy in the network for the things that are created. I have used API key for authentication, and in the body tab I am using POST and providing the below URL where TestNetwork is my network - http://XXX.XXX.XXX.XXX:8080/Thingworx/Networks/TestNetwork/Services/AddConnection I have selected "raw" in the radio button type as JSON I have used the below code - { "from" : "SomeTestThing", "to" : "SomeTestThing1" , "connectionType" : "Contains" } But I got error 500 - internal server error I also tried with Javascript var params = { from: "SomeTestThing" , to: "SomeTestThing1" , connectionType:
Good morning, We are trying to use PrescriptiveMicroserver to get a goal for some tags. However we only have option to maximize or minimize the goal, is it possible to set the goal value? For example 800? And use the model to get this 800 value?
The catalina log has been closed. I have Tomcat 9.0.37 and Java 11.0.9 in my local machine. Also let me know how to set JAVA_OPTS using bat file as I am unable to locate "setenv.bat" file under Tomcat directory. Kindly help.
How can we run a Predictive model Python code in Thingworx Analytics?
Hi everyone, I'm trying to build a "dashboard creator" with Thingworx. In particular I have to bind data to widget at runtime. I followed the guide Customizable and Responsive UI https://developer.thingworx.com/en/resources/guides/customizable-responsive-ui/en/resources/guides/c... which I found very useful, in this guide the widgets change their data depending on the element of the list that is selected. My question is: Is it possible to associate the data, just like in this guide, by selecting the thing for the binding from a list, but keeping the selection for each widget and not changing the binding of the entire dashboard? What I would like to achieve is, for example, the association 'thing of the list' and widget by dragging. Can anyone give me a suggestion on how to do this thing? Thank you, Giorgia
I used the guides "Connect Raspberry Pi to ThingWorx" and "Setup a Raspberry Pi as an IoT Device". After setting up the EMS and connecting to TW i wanted to collect data with the Raspi UART pins / or UDP(same problem) so i could use the data for my property values. For this i used the lua package manager luarocks to install the modules 'periphery' and 'socket': sudo apt-get update sudo apt-get install luarocks --package manager for Lua modules sudo luarocks install luasocket (Web-Socket for UDP/TCPIP) sudo luarocks install lua-periphery (Raspi GPIO access) The data transfer script i created works fine on its own but when i want to implement it in my PiTemplate i get an error. At first the script of the PiThing: The serial connection starts at --Sensor Values; UART and ends with serial:close require "shapes.swupdate" module ("templates.200903_Paeslack_SimKI_TT", thingworx.template.extend) properties.cpu_temper
I'm trying to do a Python rest API call for the Thingworx service 'AddStreamEntry'. But i'm facing issues while passing the infotable in payload. val = {"rows": [{"PropertyName": "NP", "ThingName": "Coffee3", "Date": "2020-11-27T10:00:00"}], "dataShape": {"fieldDefinitions": {"PropertyName": {"name": "PropertyName", "aspects": {}, "description": "", "baseType": "STRING", "ordinal": 0}, "ThingName": {"name": "ThingName", "aspects": {}, "description": "", "baseType": "STRING", "ordinal": 0}, "Date": {"name": "Date", "aspects": {}, "description": "", "baseType": "DATETIME", "ordinal": 0}}}} url = '*****/services/AddStreamEntryNP'payload = {'values': val} getreq = requests.post(url,data=payload, headers=headers)print(getreq) Thingworx Java code : result = me.AddStreamEntry({sourceType: 'Python' /* STRING */,values: values /* INFOTABLE */,location: loc /* LOCATION */,source: 'Python' /* STRING */,tags: undefined /* TAGS */,timestamp: timestamp /* DATETIME */}); But gett
Hi, I have installed and configured Azure IoT Hub connector 3.0.1 in Thingworx version 8.5.1. I have added JSON parameters list to IoT Hub device Thing and bind the properties Remotely, Data is getting updated to properties. Where I can see the complete IoT Hub JSON data instead of Parameter wise in Thingworx .Could anyone help me on this? Regards, Latha
Hi, I'm trying to build a widget using the Visual SDK on Thingworx 9.I've already downloaded the required packages from the PTC Software Download page: MED-61347-CD-090_F000_WEB-Component-SDK-Utility.zip ThingWorx_Web_Component_Widget.zip In the official tutorial the steps are 4: Open a command prompt, then change the current directory to the location on your system where you extracted the SDK utility: cd twx-wc-sdk-utility Run the following command to install the utility: npm link Change your directory to the simple-el-widget/ folder that you created earlier (previously downloaded and unzipped😞 cd simple-el-widget In the widget folder, run the following command to create the extension: mub An extension ZIP file is created and placed in the dist/ folder of your working directory. You are now ready to import the extension. But the mub command gives me back this error: Starting series of gulp tasks for the wrapping... exec
Trying to follow the Mars Project with the interactive Dashboard where an image is background, seems only be possible with the legacy responsive Design. Has anyone a tutorial / example - how to set images in a layer behind other widgets like labels and gauges. When I am setting the image as background it is not responsive anymore and gets stripped away when the size of the window changes. Goal: Set the image and add other widgets on top that has fixed positions like in the Mars Project example (where the passengers and weather warnings are displayed as labels on top of the image). Looking for a way how this is done in ThingWorx 9 (in 8 it is quite straight foward) - Currently running on ThingWorx 9.0.2-b136. - Thank you!
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.