Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/delta11/teslamate-public-charge-importer
https://github.com/delta11/teslamate-public-charge-importer
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/delta11/teslamate-public-charge-importer
- Owner: delta11
- License: mit
- Created: 2024-10-23T15:23:17.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-03T14:27:56.000Z (2 months ago)
- Last Synced: 2024-11-03T15:26:23.135Z (2 months ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TeslaMate charge cost scraper
Add the ability to scrape public charging billing info into TeslaMate from different sources.# Configuring TeslaMate
Go into the `docker-compose.yml` and add the following port mapping to the postgres database.
```yaml
ports:
- "5432:5432"
```Then configure `TESLA_MATE_CONF` environment variable as shown in `.sample-env` with your database username and password.
# Configuring scrapers
Have a look in `.sample-env` at the `SCRAPER_CONF` different scrapers can be configured.## Road scraper
[E-Flux by Road](https://e-flux.io) can be scrapped the only argument needed is the bearer token.To retrieve this go to [the dashboard](https://dashboard.e-flux.io/my-cards/usage) with the dev tools open. Inspect an URL like `https://api.e-flux.nl/1/active-sessions/mine` and then inspect the `authorization` header and grab all after the Bearer.
## TeslaScraper
Does not work at the moment needs to be moved to [Open Source Tokens](https://developer.tesla.com/docs/fleet-api/authentication/open-source-tokens). Failed to get the access tokens out of tesla mate it's self and simply using username password via puppeteer bounces into several captchas.### How to get refresh token
https://tesla-info.com/tesla-token.php## Running your machine
Get this repo on your machine and then
```shell
docker compose -f docker-compose.yml build
docker compose up
```