teslahunt / inventory Goto Github PK
View Code? Open in Web Editor NEWRetrieve real-time data from Tesla Inventory.
Home Page: https://teslahunt.io
License: MIT License
Retrieve real-time data from Tesla Inventory.
Home Page: https://teslahunt.io
License: MIT License
Hello,
Whenever attempting to run, both locally or in runkit, the error "Error: Cannot find module 'got'" occurs.
Thanks!
Title kinda says it all, but... can we add Australia and states: https://www.tesla.com/en_AU/inventory/new/m3?FleetSalesRegions=New%20South%20Wales
Hi,
i'm trying to execute the code snippet provided as example:
const teslaInventory = require('tesla-inventory')
teslaInventory('fr', {
model: 's',
condition: 'used'
}).then(results => console.log(results))
and here the result i got:
TypeError: teslaInventory(...).then is not a function
it seems that teslaInventory
is not returning a Promise, any clue on this ?
Thanks,
Julien
teslaInventory('us', {
model: '3',
condition: 'new'
}).then(results => console.log(results));
or any other model doesn't return results, even that they are shown in the website
Perhaps I am not seeing the option to use US as the inventory. But see as a few other countries are listed, I assume that US id default or is US not available?
Hum, still have an issue to run the default sample, did i miss another thing? Context: script running on Mac M1 Ventura OS, thanks
Here the error (occurred after some minutes).
% node fetchTeslaInventory.js
(node:48334) UnhandledPromiseRejectionWarning: ReferenceError: fetch is not defined
at fetcher (/Users/julien/Documents/JulienGit/TeslaInventory/fetchTeslaInventory.js:3:35)
at pRetry.onFailedAttempt (/Users/julien/Documents/JulienGit/TeslaInventory/node_modules/tesla-inventory/src/index.js:48:9)
at RetryOperation._fn (/Users/julien/Documents/JulienGit/TeslaInventory/node_modules/p-retry/index.js:50:18)
at Timeout._onTimeout (/Users/julien/Documents/JulienGit/TeslaInventory/node_modules/retry/lib/retry_operation.js:85:10)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:48334) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:48334) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.