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

https://github.com/jannickfahlbusch/carstatsviewer-exporter


https://github.com/jannickfahlbusch/carstatsviewer-exporter

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# CarStatsViewer-Exporter

# Running

To locally run the exporter you need to run the following:
```bash
go run cmd/carstatsviewer-exporter/main.go
```

By default, the exporter will listen on `:8080`.
You can customize this by specifying `-listen-address`.

Alternatively you can run the exporter using Docker via:
```bash
docker build -t carstatsviewer-exporter .
docker run -p 8080:8080 carstatsviewer-exporter
```

# Endpoints

The metrics are available under the `/metrics` endpoint.
Additionally, the `/data` endpoint serves the last received payload (If any).

Live data needs to be POSTed to `/live`. There is currently no security in place. Use this exporter only for experiments to play around with the HTTP live data PoC (See [Ixam97/CarStatsViewer#139](https://github.com/Ixam97/CarStatsViewer/pull/139)) of the [CarStatsViewer](https://github.com/Ixam97/CarStatsViewer).

# Owntracks Integration

The exporter is able to forward the received coordinates to an Owntracks instance via HTTP.
To enable the integration, specify `-owntracks-url`.
Customization of the user or device is possible via `-owntracks-user` and `-owntracks-device`