teslamateapi icon indicating copy to clipboard operation
teslamateapi copied to clipboard

Feature Request: Filter drives and charges by dates

Open leonelfaugusto opened this issue 3 years ago • 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.

leonelfaugusto avatar Feb 10 '22 10:02 leonelfaugusto

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

alecdoconnor avatar Feb 10 '22 11:02 alecdoconnor

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 😛

tobiasehlert avatar Feb 10 '22 14:02 tobiasehlert

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

leonelfaugusto avatar Feb 10 '22 14:02 leonelfaugusto

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 🤣

tobiasehlert avatar Feb 10 '22 15:02 tobiasehlert

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

theskyisthelimit avatar Feb 17 '22 15:02 theskyisthelimit