Thingsup Docs
  • Documentation
  • MQTT
    • MQTT Broker
    • Add MQTT Device
    • Authorize MQTT Device
    • Test MQTT Connection
    • Tutorial - MQTT Basics
  • Connections
    • MySQL Connection
    • Redis Connection
    • InfluxDB Connection
    • AWS Connection
    • PostgreSQL Connection
    • MQTT Connection
    • InfluxDBv2 Connection
    • Firebase Connection
    • MSG91 Connection
  • Actions
    • MySQL Query Action
    • Redis Query Action
    • InfluxDB Read Query Action
    • InfluxDB Write Point Action
    • Send Email Action
    • DynamoDB PutItem Action
    • DynamoDB UpdateItem Action
    • DynamoDB GetItem Action
    • DynamoDB Query Action
    • DynamoDB Scan Action
    • DynamoDB DeleteItem Action
    • PostgreSQL Query Action
    • InfluxDBv2 Read Query Action
    • InfluxDBv2 Write Point Action
    • Firebase Cloud Firestore Action
    • Firebase RealTime Database Action
    • Firebase Messaging Action
    • AWS Lambda Invoke Action
    • AWS SQS Send Messsage Action
    • Publish MQTT Message Action
    • MQTT CommandResponse Action
    • ProcessFunction Action
    • WebHook Action
    • Push to Thingsup Track Action
    • Send MSG91 SMS Action
  • Rules
    • MQTT Rules Engine
    • HTTP API
  • Command
    • HTTP Command
    • Action Command
  • Alerts
    • Basic Alert
  • Dashboards
    • Add Dashboard
    • Dashboard Settings
  • Widgets
    • Button Widget
    • Data Text Widget
    • Toggle Switch Widget
    • Image Switch Widget
    • Dropdown Widget
    • LED Widget
    • Text Widget
    • Navigation Button Widget
    • Form Widget
    • Date Picker Widget
    • Date Time Range Widget
    • Slider Widget
    • Table Widget
    • Google Map Widget
    • Data Tile Widget
    • HTML Tile Widget
    • Line Chart Widget
    • Bar Chart Widget
    • Pie Chart Widget
    • Scatter Chart Widget
    • Radar Chart Widget
    • Radial Gauge
    • Linear Gauge
Powered by GitBook
On this page

Was this helpful?

  1. Widgets

Linear Gauge

PreviousRadial Gauge

Last updated 3 years ago

Was this helpful?

General Setting

User can change following things in Linear Gauge widget:

  • Name for widget which will be used data reference. For Example, if widget name is 'Linear Gauge', then data of widget is referenced as Linear Gauge.data

  • Show title - User can show/hide widget title

  • Title Color

  • Background Color

Widget Setting

In Widget Setting option, user can change following parameters:

  • Key - key parameter of JSON Object which will define data of Linear Gauge Widget.

  • Title - Title for Widget

  • Unit - Unit of data showing using Widget

  • Minimum value - Minimum value of range for widget

  • Maximum value - Maximum value of range for widget

  • Show border - Enable to show border in widget

  • Border Shadow Width -Width for border shadow of widget

  • Needle Shape - Two options of Needle Shape are given- 1. Arrow 2. Line

  • Meter tick values - Comma seperated values to generate Meter ticks

  • Minor ticks - Number of minor ticks required

  • Ticks Width

  • Minor Ticks Width

  • Highlights - Multiple Highlights can be created by providing From, To values and Color for it.

  • Highlight Width

  • Bar Configuration

    • Bar length, Bar width, bar Stroke Length, Tick side, Number side, Needle side can be changed

  • Enable Gauge Animation

  • Animation duration - duration for Gauge Animation in milliseconds

  • Animation rule - multiple options for animation are given. For example, linear, quad etc.

  • Animate value

  • Colors - Plate color, Bar Color, Bar progress color, Bar stroke color, Major ticks color, Minor ticks color, Title color, Unit color, Numbers color, Needle start color, Needle end color, Value text color can be changed

  • Needle Configuration -

    • Needle Start, Needle End, its width can be changed

  • Value Box Configuration -

    • Integer precision - Integer which defines how many numeric positions should be used to display integer part of the value number.

    • Decimal precision - Integer which defines how many positions should be used to display decimal part of the value number.

  • Font Size - Font size for Numbers, title, units and value can be changed here.

Source

User can select a source mode as MQTT or Action.

Using MQTT

Here, to update data on Linear Gauge user can publish JSON object on given data MQTT topic. No need to provide <account_id> while providing the MQTT topic. The JSON object will be as below.

// Example

{
    "LGKey":100
}

Here, "LGKey" is set as key in widget configuration.

Using Action

Here, to update the Linear Gauge widget, output of the action should contain JSON object as given in above example. User can also update the widget either onLoad or periodically by providing refresh interval.

Event Handling

Linear Gauge widget does not support any event.

Example

Here, data in below format published on configured topic, will appear as shown in image.

// Example

{
    "LGKey":100
}

Here, "LGKey" is set as key in widget configuration.
Configure Linear Gauge Widget
Configure Linear Gauge Widget
Configure Linear Gauge Widget
MQTT Data for Linear Gauge
Linear Gauge Example