Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teslahunt/tesla-images
Generate Tesla Model S/3/X/Y 3D photo visualizations
https://github.com/teslahunt/tesla-images
tesla tesla-api teslamotors
Last synced: 3 months ago
JSON representation
Generate Tesla Model S/3/X/Y 3D photo visualizations
- Host: GitHub
- URL: https://github.com/teslahunt/tesla-images
- Owner: teslahunt
- License: mit
- Created: 2021-02-19T09:44:42.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T16:28:10.000Z (5 months ago)
- Last Synced: 2024-07-20T15:45:34.223Z (4 months ago)
- Topics: tesla, tesla-api, teslamotors
- Language: JavaScript
- Homepage: https://images.teslahunt.io
- Size: 201 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
![Last version](https://img.shields.io/github/tag/teslahunt/tesla-images.svg?style=flat-square)
[![Coverage Status](https://img.shields.io/coveralls/teslahunt/tesla-images.svg?style=flat-square)](https://coveralls.io/github/teslahunt/tesla-images)
[![NPM Status](https://img.shields.io/npm/dm/tesla-images.svg?style=flat-square)](https://www.npmjs.org/package/tesla-images)> Generate Tesla Model S/3/X/Y 3D photo visualizations.
## Install
```bash
$ 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).
```js
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](https://teslahunt.io), Released under the [MIT](https://github.com/microlinkhq/metascraper/blob/master/LICENSE.md) License.
Authored and maintained by [Tesla Hunt](https://teslahunt.io) with help from [contributors](https://github.com/microlinkhq/metascraper/contributors).> [teslahunt.io](https://teslahunt.io) · GitHub [teslahunt](https://github.com/teslahunt) · Twitter [@teslahuntio](https://twitter.com/teslahuntio)