Skip to content

Garmin generic arc

joeherwig edited this page Aug 19, 2019 · 13 revisions

Garmin generic ARC

This very simple but versatile gauge can be used to display plenty of values.

Configuration

Its behaviour is configured within the panel specific config.json. See the example of the RealAir Duke Turbine V2 for the ENG_1_TORQUE for instance:

  "ENG_1_TORQUE": {
    "label": "TRQ LB/ft",
    "rangemin": 0,
    "rangemax": 2000,
    "calculatedValue": "x * 6 / 7",
    "ranges": [
      {
        "color": "green",
        "minValue": 0,
        "maxValue": 1400,
        "width": 2
      },
      {
        "color": "red",
        "alerttype": "warning",
        "alerttext": "high",
        "minValue": 1450,
        "maxValue": 2000,
        "width": 2,
        "activewidth": 60
      }
    ]
  }

See the detailed description of the different configuration parameters at config.json Description.

As you can see in those rendered examples the ranges (min-max) and the start and end-angle can be defined per gauge. Also the colors and values for warning and ranges as well as the respective labels.

Properties

  • label is displayed above the clear-text value
  • rangemin defines the lowest numeric value to be displayed.
  • rangemax defines the highest numeric value to be displayed.
  • calculatedValue offers you the ability to assign a recalculation that is evaluated for each received value. An assigned String with the text "x * 6 / 7" will first replace the x with the received value and afterwards evaluate the whole expression, before rendering the calculated. value.
  • ranges define different colored marked ranges on the gauge. As this is an array, you can define multiple ranges per gauge.
    • color sets the color of the range-mark
    • minValue defines, where the range starts
    • maxValue defines, where the range ends
    • width defines the thickness of the range to be displayed when the hand is not within the range
    • activewidth defines the thickness of the range to be displayed when the hand is within the range. this can be used to bring the pilots attention to specific values. See above example for TRQ LB/ft (left version) or Elev trim.

index.html - code

The Code to be added to the index.html is just:

<object id="ENG_1_N1_RPM" data="../../standardgauges/Garmin-generic-arc.svg" type="image/svg+xml"></object>