FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
2 weeks ago
Hello,
I need to add/edit recipes from outside the HMI developed with WebIQ. I saw that in webiq we can do this via websocket. The problem is that when adding the recipe via websocket it adds only Metadata and not Items which are the variables that we need to write.
How can we solve this? Is there another way to write recipes from the outside of the HMI? Or to directly manage the recipe files?
2 weeks ago - last edited 2 weeks ago
You can connect from any system with any programming language that supports websocket connections to the WebIQ server API (which is the same that any WebIQ HMI and WebIQ Designer also uses). It is fully documented here: https://www.smart-hmi.com/user/download/deliver/docs/documentation-dev-connect-apidoc-version-2.15.x...
An example written in NodeJS can be downloaded here: https://www.smart-hmi.com/user/download/deliver/xmp/Additional%20Software/webiq-server-api-example-n...
You should not edit any undocumented files in any way as they can change without notice at any time.
a week ago
Hello @webiq-sk, thank you for your reply. Specifically for the recipe.add request, it seems not possible to specify "item variable" which are the variable exchanged with PLC, but only Metadata:
Is this correct?
a week ago
This is stored with a recipe version, so after creating the recipe you can set the item values with the version: https://www.smart-hmi.com/user/download/deliver/docs/documentation-dev-connect-apidoc-version-2.15.x...
Whenever a recipe is modified, a new version will be created automatically.