-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Milestone
Description
It could be very useful if a user could easily configure fanuc-driver to collect one or more parameters (using rdparam) from machine.
It’d be nice if the user could:
- provide a name for this dynamic collector;
- provide a structure of the returned data:
- this would be more useful when multiple parameters would be watched in a single collector;
- order of
parameter_iditems anddata_typeitems must match; - in
format, one would use$1to get the value of the first (0th) parameter value,$2the second one, etc;
- when
formatis not defined:- for single parameter,
fanuc-driverwould return{$collector_name: $1}; - for multiple parameters,
fanuc-driverwould return{$collector_name: [$1, $2, ...]};
- for single parameter,
For example, the configuration could look something like this:
# Single parameter: configuration
some_collector_name:
parameter_id: 1234
data_type: string # 'string' | 'number' | 'boolean' and possibly some others
# Multiple parameters: configuration
another_collector_name:
parameter_id:
- 1234
- 4321
data_type: # 'string' | 'number' | 'boolean' and possibly some others
- string
- number
format: '{"some_name": $1, "another_name": $2}'Example of the returned data:
// Single parameter
{
some_collector_name: 'some_value'
}
// Multiple parameters
{
another_collector_name: {
some_name: 'some_value',
another_name: 4543
}
}Metadata
Metadata
Assignees
Labels
No labels