Use Tuner on Predix Edge

Procedure

  1. Create a JSON file with the required details. For a sample file, refer to JSON File Content Example.
    Important: The file name must begin with historian.
  2. If you want to use tuner securely:
    1. Generate a bearer token.
      Tip: To generate a token, you can use POSTMAN or run the following command in an Ubuntu machine: curl -u <username>:<password> -d 'grant_type=client_credentials' https://<predix uaa instance>/bearer/token
    2. Run the following command: curl -H 'Authorization:Bearer <token>' -F 'uploadFile=@<absolute path of the JSON file>' http://<IP address of the Predix Edge device:9000/upload
      – curl -H 'Authorization:Bearer h390ufwehqef39vwnf4wehwef09rf' -F 'uploadFile=@ C:\workstation\historian-config.json' http://10.181.212.287:9000/upload
  3. If you do not want to use tuner securely, run the following command: curl -F 'uploadFile=@<absolute path of the JSON file>' http://<IP address of the Predix Edge device:9000/upload
    – curl -F 'uploadFile=@ C:\workstation\historian-config.json' http://10.181.212.287:9000/upload