Forcam Force as Data Source for Peakboard
How to use Forcam as a data source for Peakboard.
To connect to Forcam, the Force Bridge API, a so-called REST API, is used. Calls can be made via this API, which return certain information. A documentation of the Force Bridge API can be found here.
In the swagger tool of the API you can explore the individual calls of the REST API. You get access to this from Forcam itself.
Once you have found the desired query in the swagger tool, you can copy the request URL and use it in the Peakboard Designer.
To do this, create a new JSON Data Source in the Peakboard Designer (1).
Give the data source a name (2) and a reload interval (3). For [Source Type] select [URL] (4) and in the [Base Url] field paste the request URL copied from the swagger tool (5).
After inserting the URL, it will be automatically split into the base URL and the URL path for the specific query. This way you can use the base URL in multiple JSON data sources as an existing connection.
To access the REST API of Forcam, you need an OAuth authentication. You select this in the drop-down [Authentication Type] (6). If you click on the button [Request New Token] (7), a mask opens automatically, in which you select FORCE Bridge in the drop-down menu [Presets] (8).
This will auto-fill some standard fields. Now you only have to insert the URL of the Forcam API in the Access Token URL (9). This corresponds to the base URL of the queries. Additionally you have to enter the [Client ID] and the [Client Secret] provided by Forcam in the corresponding fields (10). Then you can request a token via the [Request Token] button (11).
After the OAuth authentication has been completed successfully, you can already load data from the REST API via the [Load Data] button(12). To specify which data from the result should be displayed, you can use [Path] (13) to define the path that should be used in the JSON response.
In this video it is explained again how the Forcam connection is established in the Peakboard Designer.