Recently active
Hi, I have used the Connect to Raspberry Pi Guide and now i have a working connectivity between TW and RPI. I have also attached a PIR motion detector sensor to the RPI. The thing is i would like to get data real time from the Raspberry pi, right now i can only make it refreshing the Lua script once every 0.5 seconds. But in order to get movement in real time i would need something different. this is the code i used in python. i was not able to make a loop there as i need a return statement to send it to Lua so Lua can send it to TW #Librariesimport RPi.GPIO as GPIOimport time#GPIO Mode (BOARD / BCM)GPIO.setmode(GPIO.BOARD)#set GPIO PinsGPIO_ECHO = 8#set GPIO direction (IN / OUT)GPIO.setup(GPIO_ECHO, GPIO.IN)def distance():# set Trigger after 0.01ms to LOWtime.sleep(0.00001) StartTime = time.time()StopTime = time.time()# save StartTimewhile GPIO.input(GPIO_ECHO) == 0:StartTime = time.time()# save time of arrivalwhile GPIO.input(GPIO_ECHO) == 1:StopTime
Hi team, suddenly Thingworx stopped running getting below error. Failed to load FlxCore library. Ensure it's in PATH (Windows) or LD_LIBRARY_PATH(other platforms) or set with the VM arg, -Djava.library.path. Error message : com.flexnet.licensing.DllEntryPoint.entry([B)I even we set the setenv.sh to CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=/usr/share/tomcat8.5/8.5.13/webapps/Thingworx/WEB-INF/extensions" please get back soon.
Hi, I want to create classes in the JavaScript services but when I try to declare a class in the service I get the following message. 'class' is available in ES (use 'esversion:') or Mozilla JS extension (use moz) Can someone please guide me that how I can create classes in a JavaScript service ? Thanks
Hi @unknown , I am try get data from thingworx with HTTP POST request (JavaScript/HTML). But i am get an error like below, Access to XMLHttpRequest at 'http://localhost:8080/Thingworx/Things?appKey=c0f49d05-d5a2-4d73-857e-4bc6ef7f89bf' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. I have updated "web.xml" file also enabled "Allow Request Method Switch" and "Allow Application key as URL Parameter". Still i am facing the same issue. Can i have a solution.? Thanks.
In our application we changed the design which resulted in a new master mashup and some new mashup names. Some users apparently have old urls stored in their favorites or use the autocomplete from the browsers URL instead of logging in via the formlogin page. Doing so they receive an error Could not load "<oldmaster>". Reason: 404 - Entity Not Found : <oldmaster> Is there any way to redirect them to the login page or do something that makes more sense to the user (like showing a error message they understand)? I've found a _rewrite.config in the root webapp (I suppose thingworx put it there and I just need to remove the underscore to have tomcat pick it up), so maybe I need to go down that route? I would prefer something with standard ThingWorx functionality if possible.
With a fresh install using the textual installer using all defaults. if I run $ catalina.sh stop $ catalina.sh start I get the error: *** CRITICAL ERROR ON STARTUP: Improper value found for model provider configuration password, system cannot start without valid password *** Web Application STATE is being set to ERROR! *** If I destroy the VM and reinstall, foundation runs fine after the install. But any attempt to restart will not start. The config for h2 (created by the installer) contains "PersistenceProviderPackageConfigs": { "H2PersistenceProviderPackage": { "ConnectionInformation": { "password": "\u003caddsecurepassword\u003e", "username": "twadmin" } } }, (This is after finishing up the install of the analytics server, so it would really suck to have to start all over again)
Please see the attached. Not sure why the "CustomerExists" validator keeps triggering the "EditCustomerThing" service. This service gets triggered regardless of whether the output is true or false. It is only supposed to trigger when the output is false.
It's been challenging, in the absence of OOTB Software Content Management (SCM) system within ThingWorx, to track, maintain code changes in different entities or to roll back in case of any entity is wrongly edited or removed.Though there's possibility to some extent to compare the differences i.e. when importing back the entities from the Source Control repository in ThingworxStorage. However this approach itself has it's own limitations.Note : This is not an official document, rather more of a trick to help workaround this challenge.I'll be using following components in this blog to help setup a workable environment.GitVSCodeThingWorx Scheduler ThingFirst two components i.e. Git & VSCode is something I preferred to use due to their ease and my familiarity. However, you are free to choose your own versioning platform and IDE to review the branches, commits, diff, etc. or simply use GIT Bash to review the branches and all related changes to the code.This blog divides into following
Hi All, I currently try to use "ImagingFunctions" from Imaging Tools Extension, but i have some problems 1) I can't input image parameter. I try these two ways but none of them work image: "/Thingworx/MediaEntities/DogJPG" /* IMAGE */image: "C:\Users\Desktop\Thingworx8\ManU.jpg" /* IMAGE */ 2) What is the meaning of these parameters? Thanks!
Hello, i am trying to get the data from my PIR motion sensor to the remote PiThing i created in the Quickstart guide. i added this code in the PiTemplate.lua properties.PIR = { baseType="NUMBER", pushType="ALWAYS", value=0 }local sensorCmd = io.popen("python etc/custom/templates/11.py")s = sensorCmd:read("*a") properties.PIR.value = s and i tried with 2 types (with and without a loop) of python code (the code works fine if i am trying it from terminal only in the raspberry Pi, does not work in TW) that i attached. the other sensors as in the guide work just fine, only with this one i am not getting any data, event though the remote thing sees it as a property can anyone please help?
Hi, I am using the Thingworx 8 Foundation Trial with Analytics Server. I am attempting to go through the guide "Build a Predictive Analytics Model'. Everything is working fine until I get to the point where I view the model. The model is created successfully but then I select view Thingworx just gets stuck in a loop processing something behind the scenes. I checked the logs and there is nothing indicating there is a problem. Has anyone successfully completed this guide that could offer some tips? Screenshots attached. What I am expecting is some form of graph showing how accurate the model is. Thanks, Martyn.
I have a datetimepicker widget on a mashup (TWX 8.4.1), and I'd like to limit the available range that a user can choose from. For example, my user should only be able to choose a calendar date within the past 7 days. By default, it seems that the widget has no time limits. Anyone done this before?
All - I wanted to share a hard learned lesson when using the Utilization Subsystem to track statistics on the executed services on the platform. The Utilization Subsystem has 4 settings on its configuration tab, and we had all 4 set to TRUE: We found that when we had the last setting set to TRUE, then our TempDB file for MS SQL Server was growing very quickly (40 - 50GB every 24hrs). Our server was running out of disk space daily and when we restarted the server, we got all the TempDB space back and everything ran fine for another day. We wrote an app that monitors the TempDB size on our SQL server and you can clearly see when we changed setting "Enable Statistics Persistence" to FALSE and the growth speed of the TempDB database slowed drastically. Wanted to share with anyone else using the Utilization Statistics in 8.3 and above.
Hello all, I am using the new collection widget in Thingworx 8.4.0 to display 4 mashups of different colors. I have this widget in its own mashup that is contained within a master. On the master, I am able to edit two text boxes, height and width. When I have changed one of those values I press the "update" button and updated the row in the DataTable associated with the collection widget. This then changes the height and width values of each mashup in the collection widget, however it does not update even though I call the service again that initially loads the data into the collection widget. When I refresh the mashup that contains the collection widget, you can see the changes from the new Width or Height values. I attempted to run an expression with location.reload(); on the embedded widget, however that reloads the entire mashup and I only want to update the collection widget. However, I have discovered that if you open a mashup within a master and use the debug view's "Reload" but
Hi, I have a device that is using the REST API to update its properties on the Thingworx. I would like to have a service call on the Thing instance to make the device reboot. Can the device poll the Thingworx platform for any pending reboot service request and reboot itself? Thanks
Hello, I have a problem with "FileName" variable from "FileUpload" wiget. I am trying to connect this variable with a string variable from one thing, but the file name of user don´t show in the string variable. Do you know if "fileUpload" widget is working in Thingworx 8.4? Could you help me with that? "RepositoryName" is showing correctly in "Repository" but "FileName" not. Thank you in advance, BR Luis
Hi, I have a drop down list with two values(eg. serial no,order no.) and have two text box(textbox1,textbox2). What i want is ,when you select a one value(serial no.) from drop down list your textbox1 must be visible and when you select order no. from drop down your textbox1 must become invisible and textbox 2 must be visible.(textbox1-serial no , textbox2- order no) and vice versa. How can i do this? Please help me. Thanks and regards, Sheetal Sable
Hello everyone, I'm a newbie working with Thingworx platform. Currently, I have some concerns about the EMS and Lua script. I already knew about the benefit when we use the EMS to connect the remote thing. But the REST API, SDK and LUA script make my confusion: - When I use EMS standalone, I can Read/Write data from Thingworx Platform through the REST API of EMS. So, the workflow I prefer is read data from sensor -> Use PUT request to send data to Thingworx via EMS. It is practice for me because I can use only one script (in any languages programming) to read data and send it to Thingworx. I saw some examples concern about Andruino and other microprocessors, so I think that is is a good choice to send data via REST API because they can access to Wifi but they can't program with LUA or SDK. That is why I concern about the LUA script. The LUA script is just an optional in Thingworx or it required to connect all the remote things ? - By the way, it is similar with the REST
What I've done: - thing created - in thing: -- property created: temperature NUMBER -- service created: getTemperature(): var result = me.temperature; output NUMERIC -- service created: increaseTemperature(): me.temperature++; -- service created: decreaseTemperature(): me.temperature--; - mashup created - in mashup: -- added gauge widget -- added label -- added button: "plus" -- added button: "minus" -- added entities: all 3 services from thing -- connected button Plus click event with increaseTemperature() -- connected button Minus click with decreaseTemperature() -- connected gauge data with getTemperature() -- connected label text with getTemperature() Now I try to view my mashup Buttons Plus and Minus work well. I see in the model that my value changes correctly. But Gauge and Label don't work. Gauge doesn't show Arrow. Label doesn't show value. What I'm doing wrong? I've make even a third button "refresh", and I've connected the click event with
Hi, is there a way to switch off the scrollbar on a collection widget (when it is not required). I have a number of instances where I use the collection widget and there is only one row, so no requirement to scroll. However, whenever you hover over the widget the scrollbar appears whether or not scrolling is required. In the Thingworx version we have there is the option to change the scrollbar to only appear when hovering, but not a way to hide it that I can see. Thanks, K
Our Use Case: The plc is connected to Scada, and we want to take the data from SCADA to thingworx through Kepware. 1. How can I take the data from SCADA to kepware. 2. What are the provisions to take the data from SCADA to kepware.
Hey guys, I've been trying to create routes in Google Maps so I created an InfoTable with some latitudes and longitudes to connect these points as a route. I created a Thing named Route with a property InfoTable based on a Data Shape that has 2 Field Definitions: Index and Location. After that, I added the latitudes/longitudes into this Infotable and, with the GetPropertyValues service, I connected the Infotable property with the RouteData (and Data to show the locations I added) GoogleMaps Widget property (and enabled ShowRoute). However, when I ran the Mashup, it showed this image I am uploading, tracing a line, not a polyline. Could someone help me with creating actual routes and not lines?
Hi All, I have a query regarding how to store the Form data into a Table from a mashup. I have a particular scenario where I have a mashup with a Data Entry form in it. Upon filling the fields in the form, the user should have the option to save and submit the data. The data has to saved in an infotable dynamically. I will provide a screenshot of how the form data looks like.. Kindly provide a solution to my query. Thank you so much in advance. Best Regards, Airin
Hi I want to get gateway name from which remote things are binded/connected . Is there any service in Thingworx composer which can be used ? I am using two types of gateway :- IndustrialGateway , SDKGateway Regards Rahul
Hello, I did SDK tutorial. I have some error with FileTransfer example and Simplethingclient.I have no issue with ExampleClient and Tunnel Example and I am stuck on the following error. How could I try to solve it ?I don't know how to solve them. I have already retry configuration of eclipse three times with different project but no progress 😕I am able to connect to the hosted thingworx server because I receve this message :> [main] INFO c.t.s.simplething.SimpleThingClient - ****************Connected to ThingWorx Server****************However, I have for the two example the same kind of error :(SimpleThingClient example ) > com.thingworx.common.exceptions.GenericHTTPException: Unable to dispatch [ uri = /Things/SimpleThing_1/Services/CreateNewThing/]: Unable to Invoke Service CreateNewThing on SimpleThing_1 : Execution error in service script [CreateNewThing] :: Entity [EntityServices] does not existat com.thingworx.communications.client.BaseClient.invokeServic
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.