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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Raspberry Pi 4 doesn't update on Thingworx

MattPat
14-Alexandrite

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
14-Alexandrite
(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