Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.