Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hello folks,
I have an EMS running on a docker container with ubuntu. With the help of the Lua script two parameters are read (CPU frequency and temperature) and then shared as remote properties with Thingworx.
Then i added a value stream to display the historical data (queryPropertyHistory).My problem is that no history exists. I am also not sure if the values are really updated. The timestamp is always the same (timestamp= start-time Lua service). When I press "save" on the remote thing, the remote properties are reset and after a short wait, new values appear. However, the timestamp remains the same.
I found a post in the forum where another user had a similar problem. (Raspberry-Pi-EMS-Value-Stream/td-p/603659) After editing my utils.lua as described in the post, I get at least a new timestamp/line after "saving the Thing" on the queryPropertyHistory.
I need a correct ValueStream with all historical data.
Attached is my template.lua-file, the lua.log and a screenshot of queryPropertyHistory.
Solved! Go to Solution.
Hello folks,
my values are updated periodically and are also displayed on queryPropertyHistory-Service.
I have changed the settings of the remote properties in Thingworx. At Push Type from "Pushed based on value change" to "Always pushed".
Hello,
the problem still exists. I have now set the log to "info" and added an additional log command for the variables (eg. log.info("cpu_temp: ", s) ) in Template.lua.
Attached is the new log. The variables seem to be assigned as desired.
The queryPropertyHistory service still contains no new entries. However, I could see that even after a restart of the lua-service a new timestamp with the associated values is added.
Best regards
Marc
Hello folks,
my values are updated periodically and are also displayed on queryPropertyHistory-Service.
I have changed the settings of the remote properties in Thingworx. At Push Type from "Pushed based on value change" to "Always pushed".