Creating a card

We will create a card that will show us the latest value from one of our devices posting data to the Time Series service.

To create a card, you should run a POST query via POSTMAN. The POST query should be linked to the following URL: https://predix-views.run.aws-usw02-pr.ice.predix.io/api/cards. Its headers should be as shown here:

Content-Type:application/jsonAuthorization:Bearer LONG_TOKENPredix-Zone-Id:b3e07566-273f-4d1e-85ce-a5d4b2632a27

The body of the query should contain the following:

[{    "title": "Current value",    "slug": "device-card",    "attributes": {        "name": "sensor1:variable1",        "device": "/device/raspberry"    }}]

To get the LONG_TOKEN for authorization, use the uaac context command described in the Developing your ...

Get Industrial Internet Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.