Giter VIP home page Giter VIP logo

Comments (2)

CM000n avatar CM000n commented on June 23, 2024

Hello @BertVereecke, in principle that would be interesting.
The problem here, however, is that Toyota does not have an independent API for querying the last trip. You can only make requests to the Toyota Trips API that contain a from_date and to_date and then get back all trips that are within this period.

Now, of course, we don't know when your last trip took place, for example. You could have been travelling 3 days ago, but also 1 month or 1 year ago.

Toyota itself stores the trip data for 1 year. We would therefore have to retrieve all trip information for 1 year each time and filter for the last trip in it. In my initial opinion, this would probably cause too much load.

from ha_toyota.

Ishima avatar Ishima commented on June 23, 2024

It's possible. I already implemented that & currently testing with few other options, like sending remote commands. API takes offset & limit, so knowing the limitations, we can ask for 1 entry in the last 90 days (I thinks this period should have some entries). API seems to be sorting trips descending, so asking for only one will return the 'last trip' we need.

from ha_toyota.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.