Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andeplane/cognite-tesla
A Tesla-extractor for Cognite Data Fusion
https://github.com/andeplane/cognite-tesla
Last synced: 1 day ago
JSON representation
A Tesla-extractor for Cognite Data Fusion
- Host: GitHub
- URL: https://github.com/andeplane/cognite-tesla
- Owner: andeplane
- Created: 2020-01-19T20:13:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T15:45:14.000Z (about 2 years ago)
- Last Synced: 2024-11-16T18:46:23.075Z (about 2 months ago)
- Language: Python
- Size: 124 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cognite Tesla extractor
Extract real-time data from your Tesla into Cognite Data Fusion.## Create asset hierarchy
You need to have the Cognite SDK installed. To create the asset hierarchy and corresponding time series, run`python create_cdf_resources.py`
## Run the extractor
Install the extractor with`npm install -g cognite-tesla`
If you have one car, you can start sampling by running this command (you can also specify input variables as environment variables where `--vehicleindex` is specified as `VEHICLE_INDEX`).
```
cognite-tesla \
--username $TESLA_USERNAME \
--password $TESLA_PASSWORD \
--project $COGNITE_PROJECT \
--apikey $COGNITE_API_KEY \
--vehicleindex
```If you have multiple cars, list the vehicles with
```
cognite-tesla \
--username $TESLA_USERNAME \
--password $TESLA_PASSWORD \
--listvehicles
```to find the index of the car you want to sample for.