GithubHelp home page GithubHelp logo

softwareag / cumulocity-kpi-overview-widget Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 1.0 19.67 MB

The Cumulocity KPI Overview Widget help you to display the Device/Asset KPIs with customised KPI Name, icon, text, color and size. Runtime installation is available. Created by Global Presales.

License: Apache License 2.0

JavaScript 6.70% TypeScript 82.29% CSS 1.04% HTML 9.96%
runtime widgets cockpit iot-analytics cumulocity-iot global-presales cumulocity-widget widget

cumulocity-kpi-overview-widget's Introduction

Cumulocity KPI Overview Widget

The Cumulocity KPI Overview Widget help you to display the Device KPIs with customised KPI Name, icon, text, color and size.

⚠️ This project is no longer under development. Please use cumulocity-kpi-overview-plugin for Application Builder >=2.x.x and Cumulocity >=1016.x.x⚠️

Please choose Cumulocity KPI Overview Widget release based on Cumulocity/Application builder version:

APPLICATION BUILDER CUMULOCITY Cumulocity KPI Overview Widget
1.3.x >= 1011.x.x 2.x.x

kpioverview

Features

  • Display Device data: Displays Device data kpis for selected Device/Asset.

  • KPI Name: Configurable KPI Name with customized color and size.

  • Icon: User can choose icon to display for KPI with customized size and color.

  • Text: Ability to show brief text for KPI with required color and size.

Installation

Runtime Widget Deployment?

  • This widget support runtime deployment. Download Runtime Binary and follow runtime deployment instructions.

Installation of widget through App Builder

Supported Cumulocity Environments:

  • App Builder: Tested with Cumulocity App Builder version 1.3.0.

Requirements:

  • Git

  • NodeJS (release builds are currently built with v14.18.0)

  • NPM (Included with NodeJS)

External dependencies:


"@angular/material": "^11.1.2"

"ngx-bootstrap": "6.2.0"

"@ng-select/ng-select": "^6.1.0"

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.

  2. Grab the KPI Overview widget Latest Release Binary.

  3. Install the Binary file in app builder.

    
    npm i <binary file path>/gp-kpi-overview-widget-x.x.x.tgz
    
    
  4. Import GpKpiOverviewWidgetModule in custom-widget.module.ts file located at /cumulocity-app-builder/custom-widgets/

    
    import {GpKpiOverviewWidgetModule} from  'gp-kpi-overview-widget';
    
    @NgModule({
    
    imports: [
    
    GpKpiOverviewWidgetModule
    
    ]
    
    })
    
    
  5. 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:

  • Git

  • NodeJS (release builds are currently built with v14.18.0)

  • NPM (Included with NodeJS)

Instructions

  1. Clone the repository:

    
    git clone https://github.com/SoftwareAG/cumulocity-kpi-overview-widget.git
    
    
  2. Change directory:

    
    cd gp-kpi-overview-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 your application from App Switcher

  2. Add new dashboard or navigate to existing dashboard

  3. Click Add Widget

  4. Search for KPI Overview

  5. Select Target Assets or Devices

  6. Click Save

Congratulations! KPI Overview widget is configured.

User Guide

  • Display Device data: Displays Device data kpis for selected Device/Asset.

  • KPI Name: Configurable KPI Name with customized color and size.

  • Icon: User can choose icon to display for KPI with customized size and color.

  • Text: Ability to show brief text for KPI with required color and size.

  • Device/ Asset: Ability to select device or asset to get data.

  • KPI Title: User has to provide the title for the KPI selected. The title font size and color can be customized.

  • Upload KPI Icon: User can upload an icon of choice for the selected KPI that will be shown in widget and size can be customized.

  • KPI: User has to select one KPI from the list of KPIs in the dropdown. The size and color of the KPI can be customized. The available KPIs are Total Devices, Available Devices, Unavailable Devices, Total Alarms, Major Alarms, Minor Alarms, Critical Alarms, Firmware Risks and any other field of Device.

  • KPI Unit: User can provide the Unit for the selected KPI with customized font color and size.

  • KPI Message: User can provide a custom message about the selected KPI.


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.

cumulocity-kpi-overview-widget's People

Contributors

sandhyadeeps avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.