tobiasehlert/teslamateapi

Feature Request: Filter drives and charges by dates

leonelfaugusto opened this issue ยท 5 comments

First of all thanks and nice work you have here :)

My resquest is all about filter drives and charges by date.

Now we can add ?page=2&show=10 to the request for pagination, but sometimes I need filter by date, with a startDate and endDate.

For now to do that I request all drives or charges and then filter myself on frontend, but this is not very efficient, especially when database is huge.

You can add defaults like in page and show, something like ?startDate last 5 years since now and ?endDate now.

Thanks in advance.

I was thinking to myself just yesterday how useful this would be!

hi @leonelfaugusto and @alecdoconnor,

nice suggestion for adding pagination!
definitely something that we should have.. the JSON here at home starts to grow rapidly in size as well ๐Ÿ˜›

hi @leonelfaugusto and @alecdoconnor,

nice suggestion for adding pagination! definitely something that we should have.. the JSON here at home starts to grow rapidly in size as well ๐Ÿ˜›

Hi @tobiasehlert thanks for the answer. Pagination we already have. The suggestion is filter by date. ๐Ÿ˜ƒ

hi @leonelfaugusto and @alecdoconnor,
nice suggestion for adding pagination! definitely something that we should have.. the JSON here at home starts to grow rapidly in size as well ๐Ÿ˜›

Hi @tobiasehlert thanks for the answer. Pagination we already have. The suggestion is filter by date. ๐Ÿ˜ƒ

Ah okey.. yes that would be nice as well!
I forgot it already has pagination.. maybe I should start using that myself ๐Ÿคฃ

Would it also be possible to display the monthly costs? I am currently looking for a way to access this data and use it.