Use Tuner on Predix Edge
Procedure
-
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.
-
If you want to use tuner securely:
-
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
-
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
-
Generate a bearer token.
-
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