MindSphere CLI: mdsp upload-timeseries Command


mdsp upload-timeseries


mdsp upload-timeseries --help

Alternative form:

mc upload-timeseries

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


parse .csv file with timeseriesdata and upload the timeseries data to MindSphere


Parameter list:

Usage: mc upload-timeseries|uts [options]

parse .csv file with timeseriesdata and upload the timeseries data to MindSphere

  -c, --config        config file with agent configuration (default: "agentconfig.json")
  -r, --cert [privatekey]          required for agents with RSA_3072 profile. create with: openssl genrsa -out private.key 3072
  -f, --file   csv file containing the timeseries data to upload to MindSphere
  -s, --size                 max records per http post (default: "200")
  -n, --no-validation              switch validation off (only if you are sure that the timeseries upload works)
  -y, --retry              retry attempts before giving up (default: "3")
  -v, --verbose                    verbose output
  -h, --help                       display help for command


Here are some examples of how to use the mdsp upload-timeseries command:


    mdsp ts -f timeseries.csv 					 upload timeseries from the csv file to MindSphere 
    mdsp upload-timeseries --file timeseries.csv  --size 100  	 use http post size of 100 records 

  Data Format: (use your own data point ids from MindSphere)

  timestamp, dataPointId, qualityCode, value
  2022-11-06T01:51:14.192Z, DP-Temperature ,0, 20.34
  2022-11-06T01:51:15.192Z, DP-Humidity, 0, 70
  2022-11-06T01:51:16.192Z, DP-Pressure, 0, 1012.3

  Make sure that the timestamp is in ISO format. The headers and the casing (timestamp, dataPointId) are important.
  The values must correspond with data types configured in MindSphere (in example: DP-Humidity must be an integer)


    You have to configure the data source and data mappings in MindSphere asset manager before you can upload the data
    See also: https://documentation.mindsphere.io/resources/html/asset-manager/en-US/116404525451.html

See MindSphere API documentation for more information about MindSphere APIs.

The content of the community tools and libraries documentation pages is licensed under the MIT License.
Siemens API Notice applies.
Back to top