Giter VIP home page Giter VIP logo

tesla-images's Introduction

@teslahunt/title

Last version Coverage Status NPM Status

Generate Tesla Model S/3/X/Y 3D photo visualizations.

Install

$ npm install tesla-images --save

Usage

There are two ways for getting Tesla stock images:

  • Tesla sells some vehicles under CPO terms and they have real pictures of it.
  • Tesla has an internal API for generating a 3D visualization of any vehicle (used by their website).

This library combines both techniques providers, fallbacking one in the other one in case stock images are missing (that is the most probable thing).

const teslaImages = require('tesla-images')

;(async () => {
  const images = await teslaImages({
    vin: '5YJSA7H21FF084652',
    modelLetter: 'S',
    optionCodes: ['ADPX2', 'AU01', 'DA02', 'APH1', 'APD2', 'X028']
  })
})()

License

tesla-images © Tesla Hunt, Released under the MIT License.
Authored and maintained by Tesla Hunt with help from contributors.

teslahunt.io · GitHub teslahunt · Twitter @teslahuntio

tesla-images's People

Contributors

dependabot[bot] avatar kikobeats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lcsouzamenezes

tesla-images's Issues

Package.json not configured properly

Hey, sweet package! Installed this into a TS project I'm working for on a Tesla app and got some errors because it couldn't find the path to the installed package. Took a peak at your source and noticed that your main file is generate.js, but in your package.json you specify index.js as your main target (example down below). I think the solution is to replace index.js with generate.js.

// Current package.json
{
...
"main": "index.js",
...
}

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.