cosmino-digitaltwin-change-status 0.0.2
A Cosmino Node-RED custom node for changing stauts.
Cosmino AG Workcenter Change Status Node
This npm package provides a convenient way to change the status of a workcenter in the Cosmino AG DigitalTwin Simulation system. It simplifies the process of updating the status of a workcenter, allowing users to easily integrate this functionality into their Node-red applications. Configuration parameter's UID and Status Type is required. UID can be empty and Status type can be undefined if passed from external nodes like this way msg.payload = { "newStatus":"Waiting", "uid": "ID12"}
Parameters passed from external nodes will be overwritten by config parameter.
Installation
To install the package, use npm:
npm install cosmino-digitaltwin-change-status
Usage
To use this package, follow these steps:
The uid parameter is the unique identifier of the workcenter, and the statusType parameter is the type of status to update.
Parameters passed from external nodes will be overwritten by the configuration parameters. Make config parameters Status type "undefined" if passed from external nodes. If you want to use external parameters, you can pass them through the msg.payload object like this:
msg.payload = {
newStatus: 'Waiting',
uid: 'ID12',
};
Configuration Options
- uid (required): The unique identifier of the workcenter.
- statusType (required): The type of status to update.
Contributing
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request on the GitHub repository.
License
This package is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of this license.