rgc99/irrigation_unlimited

TIMELINE APE CHART "LOADING"

Opened this issue · 12 comments

hI
i using your script but remain "loaading"

Please help

Cattura
me

Please post your configuration.

type: custom:apexcharts-card
header:
show: true
title: PIANIFICAZIONE IRRIGAZIONE
show_states: false
graph_span: 10d
span:
start: day
offset: '-10day'
all_series_config:
type: column
group_by:
duration: 1d
func: sum
fill: 'null'
show:
as_duration: minute
now:
show: true
label: Today
series:

  • entity: binary_sensor.irrigation_unlimited_c1_z1
    data_generator: |
    return entity.attributes.timeline.map((item) => {
    const sd = new Date(item.start);
    const ed = new Date(item.end);
    return [sd, (ed - sd) / 60000];
    });
  • entity: binary_sensor.irrigation_unlimited_c1_z2
    data_generator: |
    return entity.attributes.timeline.map((item) => {
    const sd = new Date(item.start);
    const ed = new Date(item.end);
    return [sd, (ed - sd) / 60000];
    });
    yaxis:
  • decimals: 0
    apex_config:
    title:
    text: minutes
    apex_config:
    tooltip:
    enabled: true
    x:
    format: dd MMM

It's like your configuraion

Do you have the timeline turned on in the configuration? See here for more information.

Where ? Sorry i'm are at the beginning
Cattura

Insert the section between controllers: and zones: for example

irrigation_unlimited:
  controllers:
    all_zones_config:
      show:
        timeline: true
    zones:
      - name: "Prato"
      ...

ok now Show on the first zone
1aa
2aa
3aa

ok now it's ok.

Thk
Cattura
very much

i don't know why i don't see all program future

c1
Cattura

Bt default the system looks ahead three days. This can be adjusted with the future_span parameter in the zones section.

Where? Because i don't find the line wih future_span
thk

If a parameter is missing it assumes the default value. Add the parameter to change the default value.

irrigation_unlimited:
  controllers:
    all_zones_config:
      future_span: 5
      show:
        timeline: true
    zones:
      - name: "Prato"
      ...