cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

properties for remote thing not updating

rrichardson
5-Regular Member

properties for remote thing not updating

Hello,

I have completed the rasberry pi to Thingworx exercise.  The mashup accurately displays the cpu voltage and temperature of the pi and updates those values in the mashup (i.e voltage stays the same, but I put a fan to the pi and can see the values for the temperature dropping in the mashup).  I added an additional property which counts how many times a motion sensor detects movement.  It's a simple python program that stores the value in a file.  I use io.open to add the value to the property I create in my Lua script.  However, this value does not get updated in my Mashup:

The led to the left is the concern.  The guage works and updates the value as it is changes.  I only see an update to the left most guage when I save the properties listing in the new composer (i.e. without making any changes to the properties), close out the PiThing in the browsing panel, and reopen the properties for it.

I was thinking I could update the config for the lua script, but all of these properties are configured in the same lua script.

2 REPLIES 2
mgoel
17-Peridot
(To:rrichardson)

Hi Reginald Richardson

Could you please share your io.open and Lua script code which you are using to update mentioned property. Also, confirm is the property type of left led is Persistent or not?

Regards,

Mohit Goel

rrichardson
5-Regular Member
(To:mgoel)

Hello,

 

I ended up getting this to work correctly.  I moved the task of obtaining the counter value and assigning it to a property below all the other property assignments in the lua script.  It began updating right after.  Go figure...

 

This can be marked as closed.

 

Thanks

Top Tags