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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Raspberry Pi 4 doesn't update on Thingworx

MattPat
12-Amethyst

Raspberry Pi 4 doesn't update on Thingworx

Hi,

I followed this guide but I have error in PiTemplate, it doesn't update CPU Temp and doesn't show frequency and volt in mashup. I found similar topic but I think it works only on Raspberry 3. It happens on this line of code:

 

s = s/1000000

 

Error from terminal: 

 

[INFO ] 2020-07-23 08:19:12,567 PiThing: Attempting to GetPropertySubscriptions from server failed. code: 500, result: 
[ERROR] 2020-07-23 08:19:12,591 luaScriptProxy::execute: [-1241516976] Error executing script PiThing, Error = Error: ...oads/microserver/etc/custom/templates/PiTemplate.lua:39: attempt to perform arithmetic on local 's' (a nil value)
[ERROR] 2020-07-23 08:19:12,591 luaScriptProxy::app_unlock: [-1241516976] Attempt to unlock app_mutex while not holding it.L= 0x20a808
[INFO ] 2020-07-23 08:19:13,26 PiThing: Received notification that property bindings have been updated on server.

 

 

1 REPLY 1
MattPat
12-Amethyst
(To:MattPat)

I found a solution for update CPU temp and for code 500. User created on Thingworx should has permissions for read and write. More info here.

Now I need help with error in PiTemplate. 

Thanks in advance

Announcements

Top Tags