Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMELINE APE CHART "LOADING" #167

Open
Stefano1983russo opened this issue Jun 28, 2024 · 12 comments
Open

TIMELINE APE CHART "LOADING" #167

Stefano1983russo opened this issue Jun 28, 2024 · 12 comments

Comments

@Stefano1983russo
Copy link

hI
i using your script but remain "loaading"

Please help

Cattura
me

@rgc99
Copy link
Owner

rgc99 commented Jun 28, 2024

Please post your configuration.

@Stefano1983russo
Copy link
Author

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

@Stefano1983russo
Copy link
Author

It's like your configuraion

@rgc99
Copy link
Owner

rgc99 commented Jun 28, 2024

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

@Stefano1983russo
Copy link
Author

Where ? Sorry i'm are at the beginning
Cattura

@rgc99
Copy link
Owner

rgc99 commented Jun 28, 2024

Insert the section between controllers: and zones: for example

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

@Stefano1983russo
Copy link
Author

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

@Stefano1983russo
Copy link
Author

ok now it's ok.

Thk
Cattura
very much

@Stefano1983russo
Copy link
Author

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

c1
Cattura

@rgc99
Copy link
Owner

rgc99 commented Jun 28, 2024

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

@Stefano1983russo
Copy link
Author

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

@rgc99
Copy link
Owner

rgc99 commented Jul 1, 2024

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"
      ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants