The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
Industrial IoT Open Source Tools and Libraries

Demo applications, libraries and SDKs as well as useful connectivity tools which are maintained and released as open source software.

mdsp aggregates Command¶

Syntax:

mdsp aggregates

Help:

mdsp aggregates --help

Alternative form:

mc aggregates

(The CLI was using mc as default command name in older versions)

Description¶

list timeseries aggregates *

Usage¶

Parameter list:

Usage: mdsp aggregates|ag [options]

list timeseries aggregates *

Options:
 -i, --assetid Insights Hub asset id
 -n, --aspectname Insights Hub aspect name
 -f, --from begining of the time range to read (default: "2022-11-05T01:51:16.065Z")
 -t, --to end of the time range to read
 -r, --intervalvalue interval duration for the aggregates in interval units
 -u, --intervalunit interval duration unit [minute |hour |day |week | month]
 -s, --select comma separated list of variable names
 -d, --download [download] download aggregates to specified file
 -a, --all show all aggregates not just average, min, max, sum and sd
 -l, --local use localtime in aggregate list
 -c, --count number of aggregates in response
 -h, --formatted write JSON strings with indentation
 -p, --passkey passkey
 -y, --retry retry attempts before giving up (default: "3")
 -v, --verbose verbose output
 --help display help for command

Examples¶

Here are some examples of how to use the mdsp aggregates command:

 Examples:

 mdsp aggregates --asssetid 1234567..ef --aspectname Environment list recent aggregates for aspect Environment
 mdsp aggregates --asssetid 1234567..ef --aspectname Environment --select Temperature 
 list recent temperature aggregates 
 mdsp aggregates --asssetid 1234567..ef --aspectname Environment --select Temperature --all 
 list all recent temperature aggregates
 mdsp aggregates --asssetid 1234567..ef --aspectname Environment --intervalunit hour --intervalvalue 2 
 list all recent temperatre aggregates over every 2 hours

 Important:

 see https://documentation.mindsphere.io/MindSphere/apis/iot-iottsaggregates/api-iottsaggregates-samples-v4.html for documentation about the aggregate parameters

See Insights Hub API documentation for more information about Insights Hub APIs.