-
Notifications
You must be signed in to change notification settings - Fork 38
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
How to format start/stop date for charge history? #562
Comments
Works for me.
You should run it with logs or with debug: |
How do I update to 0.1.10? |
|
Thanks, updated successfully, but still getting same error (and nothing into the log). Full error:
Could it be a windows issue about date format? (windows 10, localized to Italy) |
Looking at available branches I found this line: But at some point while experimenting (I am very poor at python, so I am just typying&trying :-) ) I noticed that renault-api was still using dateparser 1.1.0, so I tried to apply your suggested "upgrade" command to dateparser:
Now that I have dateparser 1.1.1 in stalled, script almost works (at least it does not crash). So I think there is something wrong in dependencies while installing/upgrading the api. It almost works because the output is wrong:
Charge duration is not properly calculated: "chargeDuration" is in seconds, not in minutes. Raw output I get by myself is:
|
Maybe also an improvement is possible: final date not mandatory = show charges up to today. |
dateparser issue => you are correct there is an issue with the sub-dependency: scrapinghub/dateparser#1046 |
duration issue => it is fine on my Zoe40: Charge start Charge end Duration Power (kW) Started at Finished at Charge gained Power level Status
------------------- ------------------- ---------- ------------ ------------ ------------- --------------- ------------- --------
2022-03-19 00:15:54 2022-03-19 09:40:29 9:24:00 3.00 kW 29 % 99 % 70 % slow ok
2022-03-18 22:02:28 2022-03-18 22:03:31 0:01:00 3.00 kW 29 % 29 % 0 % slow ok
2022-03-16 00:30:35 2022-03-16 07:30:46 7:00:00 2.90 kW 38 % 89 % 51 % slow ok I don't know what vehicle you use, but I assume it's Renault changing the units between models :( |
It's a Zoe50. |
Can you please send the full JSON from |
Sorry, my script cut something in the output; this is the output from your script (same data, just different JSON structure):
|
It looks like charge-history returns duration in minutes while charges returns in seconds... /charge-history:
/charges:
|
None of these commands work:
I always get:
regex._regex_core.error: bad escape \d at position 7
The text was updated successfully, but these errors were encountered: