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

Change attributes output format #324

Open
KrzysztofHajdamowicz opened this issue Aug 29, 2024 · 1 comment
Open

Change attributes output format #324

KrzysztofHajdamowicz opened this issue Aug 29, 2024 · 1 comment

Comments

@KrzysztofHajdamowicz
Copy link

Is your feature request related to a problem? Please describe.
EV Smart Charging provides rough charging start/charging stop attributes when to charge car.
It's output format is barely suitable for Apex Charts overlay showing when car will charge

Describe the solution you'd like
Attribute showing data in same structure as jinja macro:

"hours": [
  {
    "start": "2024-08-27T23:00:00+02:00",
    "end": "2024-08-28T00:00:00+02:00",
    "hours": 1,
    "prices": [
      0.47819,
      [...]
      0.47819
    ],
    "is_now": false
  },
  {
    "start": "2024-08-28T01:00:00+02:00",
    "end": "2024-08-28T04:00:00+02:00",
    "hours": 3,
    "prices": [
      0.48061,
      0.48061,
      [...]
      0.48071
    ],
    "is_now": false
  },
  [...]
]

Additional context
My goal is to draw list of hours when car will charge, not whole span of hours.
For example, if car is scheduled to charge between 23:00-00:00, 02-03:00 I want to see two separate candles on chart, not single block 23:00-03:00.
Gridio App shows data in simmilar way
IMG_9592

@ksga
Copy link

ksga commented Oct 30, 2024

Default Apex Chart configuration (found in README) does just that:
image

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