# How to make optical power chart

**URL:** <https://forum.genieacs.com/t/how-to-make-optical-power-chart/6477>\
**Category:** Uncategorized\
**Created:** [February 4, 2025, 11:42am UTC](https://forum.genieacs.com/t/how-to-make-optical-power-chart/6477 "2025-02-04T11:42:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanz](https://avatars.discourse-cdn.com/v4/letter/h/aca169/32.png) [@hanz](https://forum.genieacs.com/u/hanz)\
**Post date:** [February 4, 2025, 11:42am UTC](https://forum.genieacs.com/t/how-to-make-optical-power-chart/6477/1 "2025-02-04T11:42:56Z")

</div>

Here’s my code:

label: “‘Optical Power’”  
slices:  
1\_normal:  
color: “‘#e8702a’”  
filter: VirtualParameters.OpticalPower \>= -15  
label: “‘Normal’”  
2\_warning:  
color: “‘#0c457d’”  
filter: VirtualParameters.OpticalPower \< -15 And VirtualParameters.OpticalPower  
\> -30  
label: “‘Warning’”  
3\_critical:  
color: “‘#0ea7b5’”  
filter: VirtualParameters.OpticalPower \<= -30  
label: “‘Critical’”

---

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [February 4, 2025, 12:44pm UTC](https://forum.genieacs.com/t/how-to-make-optical-power-chart/6477/2 "2025-02-04T12:44:02Z")

</div>

Was this entered in Admin \> Config \> Edit Charts?

Did you update Admin \> Config \> Edit Overview?

---

<div class="post-metadata">

**Author:** ![Figaro](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@Figaro](https://forum.genieacs.com/u/Figaro)\
**Post date:** [February 5, 2025, 2:25pm UTC](https://forum.genieacs.com/t/how-to-make-optical-power-chart/6477/3 "2025-02-05T14:25:42Z")

</div>

Hi, on “edit overview”:

```auto
online:
  label: "''"
  charts:
    - '"online"'
    - '"potenciasONT"'

```

then, on “edit charts”:

```auto
online:
  label: "'Online status'"
  slices:
    1_onlineNow:
      color: "'#31a354'"
      filter: Events.Inform > NOW() - 90 * 60 * 1000
      label: '"Online(90min)"'
    2_past24:
      color: "'#a1d99b'"
      filter: Events.Inform > NOW() - 90 * 60 * 1000 - 24 * 60 * 60 * 1000 AND
        Events.Inform < NOW() - 90 * 60 * 1000
      label: '"Offline < 24hs"'
    3_others:
      color: "'#e5f5e0'"
      filter: Events.Inform < NOW() - 90 * 60 * 1000 - 24 * 60 * 60 * 1000
      label: '"Offline > 24hs"'
potenciasONT:
  label: "'POTENCIAS'"
  slices:
    1_normal:
      color: '"#77dd77"'
      filter: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower >= -26
        AND InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower <
        -15
      label: '"POTENCIA OK"'
    2_alta:
      color: '"#FF7F14"'
      filter: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower < -12
        AND InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower >=
        -15
      label: "'POTENCIA ALTA'"
    3_baja:
      color: '"#FF7624"'
      filter: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower > -28
        AND InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower <
        -26
      label: "'POTENCIA BAJA'"
    3_fueraDeRango:
      color: '"#F72D0D"'
      filter: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower <= -28
        OR InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower	>=
        -12
      label: "'FUERA DE RANGO'"

```

This is working on Huawei ONTs, probably you will have to change parameters
