Prerequisites
- Have a Heex CLI
- Have a USER_SECRET_KEY. Should be accessible in your personnal space on the heex cloud platform. If you already logged-in you don’t need to add the Api-Key in your command line.
Usage
Subcommand | Description |
---|---|
get | Retrieve signal details for the given signal id. |
list | Retrieve signal list for the provided filters. |
update | Update an existing signal. |
create | Creates a new signal. |
create-template-file | Creates an empty template file that can be used as input for the create or update command. |
delete | Delete a signal with a given ID. |
How to get signal details
You can get the details of a signal if you provide a signal-id, see example below: Available options:--api-key
: Add your user api secret_key which can be found on the cloud [required].--signal-id
: ID of the involved signal [required].--output-file
: The result will be saved into this provided filepath. The output format is json, so please provide a filepath with that format: /path/to/file.json--json-output
: Disables all logging (except errors), and your command shall only output the result in a json format. Not compatible with ‘—output-file’ option.
How to get signal list
You can get list of all available signals in a given workspace. Several filters are available to narrow down the results. Available options:--api-key
: Add your user api secret_key which can be found on the cloud [required].--system-id
: ID of the involved system.--trigger-id
: ID of the involved trigger.--datasource-id
: ID of the involved datasource. Multiple can be given: e.g.--datasource-id 1 --datasource-id 2 --datasource-id 3
--signal-id
: ID of the involved signal. Multiple can be given: e.g.--signal-id 1 --signal-id 2 --signal-id 3
--signal-name
: Name of the signal to retrieve details for.--datasource-name
: Name of the datasource to retrieve details for.--owner-id
: Owner ID of the signal to retrieve details for.--output-file
: The result will be saved into this provided filepath. The output format is json, so please provide a filepath with that format: /path/to/file.json--json-output
: Disables all logging (except errors), and your command shall only output the result in a json format. Not compatible with ‘—output-file’ option.
--output-file
flag. If the provided path doesn’t exist, it will be created. See example below where several filters can be used at the same time:
How to create signals
There are 2 possible ways to create a new signal, either by providing a json file with the signal details or by providing the details directly in the command line. When using a file you can create multiple signals, otherwise you can create only one signal at the time. Available options:--api-key
: Add your user api secret_key which can be found on the cloud [required].--datasource-id
: ID of the involved datasource.--signal-name
: Signal name to create.--signal-type
: Signal type.--signal-unit
: Signal unit.--ros-topic-type
: Type of ros topic. Format should be topic_name/signal>subsignal>…etc, for example /imu>angular_velocity>x--input-file
: Full path to the input file to use, it has to be a .json file, example : /path/to/input.json Check out ’./heex signal create-template-file’ to get an example of configuration file that can be given.--output-file
: The result will be saved into this provided filepath. The output format is json, so please provide a filepath with that format: /path/to/file.json--json-output
: Disables all logging (except errors), and your command shall only output the result in a json format. Not compatible with ‘—output-file’ option.
Usage:
--folder-path
is provided, the template will be saved in the current directory.
Usage:
name
, type
and datasource_id
are required fields, other fields can be removed. To see possible values for type
and unit
you can use the --help
flag.
How to update a signal
Same as for the creation, there are 2 possible ways to update a signal, by providing details in the command line or by using a json file. Either way, you can update only one signal at a time. Flags to update a signal are the same as for the creation, with the addition of--signal-id
to specify the signal to update, which is required.
If you want to update a signal using a json file, you can generate a template file using command below:
Usage:
How to delete a signal
To be able to delete a signal you need to provide asignal-id
. If the signal is linked to any trigger, it is not possible to delete: you need to unlink it from the trigger(s) first and then try again.
Available options:
--api-key
: Add your user api secret_key which can be found on the cloud [required].--signal-id
: ID of the involved signal [required].