twinsphere Viewer Documentation
The twinsphere AAS viewer is a mobile-first designed web viewer for asset administration shells.
It is able to scan a QR-Code on a physical asset containing its globalAssetId, do the lookup of its digital twin by an AAS Discovery Service and get the twin's endpoints by querying an AAS Registry Service. It then gets the shell and all its referenced submodels and displays their data nicely to the clients screen.
Login
To login into the twinsphere Viewer for your tenant, you will need a twinsphere ID account. Please contact the twinsphere support team for the configuration. Alternatively you can use your own identity provider service, configuration instruction could be find here.
Dedicated Views
The viewer is able to display any asset administration shell and any submodels. In addition to a generic representation there are dedicated views for the following submodels/use cases available:
- Digital Nameplate
- Handover Documentation
- Contact Information
- Technical Data
- Product Carbon Footprint
- Digital Product Passport (shown if digital twin provides both SM DigitalNameplate and SM PCF)
- Digital Battery Passport (special fair showcase)
Query Parameters
It is possible to use direct links in the viewer to open a specific asset or even a submodel of a specific asset. With these direct links and the feature to hide the viewer's navigation elements u may integrate the viewer in your web application for AAS display.
id
The id parameter contains the shell id of an asset administration shell as base64url encoded string.
Example: https://viewer.{your_tenant}.cloud.twinsphere.io/explore?id=aHR0cDovL215LmRvbWFpbi5jb20vYWFzaWQvMTIzNDU2Nzg
submodel
The submodel parameter contains the submodel id of the submodel to be opened as base64url encoded string.
The submodel parameter must be combined with the id parameter (see above) and it has to refer to an existing submodel which is referenced by the chosen (aas) id.
There are some special use case views containing data from multiple submodels. To directly open these special views via URL the following table states the respective values for the submodel parameter:
Use Case View | Parameter Value |
---|---|
Digital Product Passport | ZHBw |
Digital Battery Passport | YnBw |
Example 1: https://viewer.{your_tenant}.cloud.twinsphere.io/explore?id=aHR0cDovL215LmRvbWFpbi5jb20vYWFzaWQvMTIzNDU2Nzg&submodel=aHR0cDovL215LmRvbWFpbi5jb20vc21pZC85ODc2NTQ
Example 2: https://viewer.{your_tenant}}.cloud.twinsphere.io/explore?id=aHR0cDovL215LmRvbWFpbi5jb20vYWFzaWQvMTIzNDU2Nzg&submodel=YnBw
embedded
If set to true
this parameter enables you to hide the AAS Viewer's header and navigation bar.
The embedded parameter has to be combined with the id parameter (see above) and optionally may be combined with the submodel parameter as well.
Example: https://viewer.{your_tenant}.cloud.twinsphere.io/explore?id=aHR0cDovL215LmRvbWFpbi5jb20vYWFzaWQvMTIzNDU2Nzg&embedded=true