#Ping graph

1 messages · Page 1 of 1 (latest)

torpid shale
#
type: custom:apexcharts-card
header:
  show: true
  title: Google ping
  show_states: false
graph_span: 20min
now:
  show: true
  color: red
series:
  - entity: binary_sensor.8_8_8_8
    name: Today
    data_generator: |
      return entity.attributes.Round trip time avg((entry) => {
        return [new Date(entry.start), entry.value];
      });
    type: column
    show:
      legend_value: false
      in_header: false
  - entity: binary_sensor.8_8_8_8
    name: Tomorrow
    data_generator: |
      return entity.attributes.Round trip time max((entry) => {
        return [new Date(entry.start), entry.value];
      });
    type: column
    show:
      legend_value: false
      in_header: false
``` this might help
#
type: custom:apexcharts-card
graph_span: 20min
header:
  show: true
  title: Ping
series:
  - entity: binary_sensor.8_8_8_8
    attribute: Round trip time avg
    type: line
    name: Ping
clever trout
#

hey thanks man

#

where do i paste the code thou?

#

sorry for the newbie question

torpid shale
#

this is the code for the graph