Cumulocity-IoT / cumulocity-device-details-widget

This is an Angular widget, which is designed to display the Device Details can fetch the details from the Api call and can display data according to the fields provided. The angular widget has the ability to summarize information relating to the names from the Api call.
Apache License 2.0
0 stars 0 forks source link
cumulocity-iot cumulocity-widget device-detail device-detail-widget device-details global-presales iot-analytics runtime widget

Cumulocity Devices Details Widget

This is an Angular widget, which is designed to display the Device Details can fetch the details from the Api call and can display data according to the fields provided. The angular widget has the ability to summarize information relating to the names from the Api call.

⚠️ This project is no longer under development. Please use Cumulocity Device Details Widget Plugin for Application Builder >=2.x.x and Cumulocity >=1016.x.x⚠️

Please choose Device Details Widget release based on Cumulocity/Application builder version:

APPLICATION BUILDER CUMULOCITY DEVICE DETAIL WIDGET
1.3.x >= 1011.x.x 2.x.x

Device_Details_1

Device-Details-Config

Features

Installation

Runtime Widget Deployment?

Supported Product Versions

Requirements:

"@angular/cdk: "^11.2.13",

Installation Steps For App Builder:

Note: If you are new to App Builder or not yet downloaded/clone app builder code then please follow App builder documentation(Build Instructions) before proceeding further.

  1. Open Your existing App Builder project and install external dependencies by executing below command or install it manually.

    
    npm i @angular/cdk: "^11.2.13"
    
  2. Grab the Device detail widget Latest Release Binary

  3. Install the Binary file in app builder.

    
    npm i <binary file path>/device-details-runtime-widget.tgz
    
  4. Import Device detail Module

Import GpDeviceDetailsWidgetModule in app.module.ts and also place the imported Module under @NgModule.

import { GpDeviceDetailsWidgetModule } from 'gp-device-details';
@NgModule({
  imports: [
    GpDeviceDetailsWidgetModule
      ]
  })
  1. Congratulation! Installation is now completed. Now you can run app builder locally or build and deploy it into your tenant.

    
    //Start App Builder
    
    npm run start
    
    // Build App
    
    npm run build
    
    // Deploy App
    
    npm run deploy
    
    ## Build Instructions

Note: It is only necessary to follow these instructions if you are modifying/extending this widget, otherwise see the Installation Guide.

Requirements:

Instructions

  1. Clone the repository:

    
    git clone https://github.com/SoftwareAG/cumulocity-device-details-widget.git
    
  2. Change directory:

    
    cd cumulocity-device-details-widget
    
  3. (Optional) Checkout a specific version:

    
    git checkout <your version>
    
  4. Install the dependencies:

    
    npm install
    
  5. (Optional) Local development server:

    
    ng serve
    
  6. Build the app:

    
    npm run buildPatch
    
  7. Deploy the app: Follow the Installation instructions.

QuickStart

This guide will teach you how to add widget in your existing or new dashboard.

NOTE: This guide assumes you have followed the Installation instructions

  1. Open you application from App Switcher

  2. Add new dashboard or navigate to existing dashboard

  3. Click Add Widget

  4. Search for `Device detail

  5. Select Target Assets or Devices

6.In the config add the URL,Document list from url,add the coulmn headings and column names of the api

  1. Click Save

Congratulations! Device Details Widget is configured.

User Guide

Click on Add Widget and Select Device Detail as a widget.In the configuration,you have to select the device group of your interest.


This widget is provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.


For more information you can Ask a Question in the TECHcommunity Forums.