https://github.com/dlashua/torque2mqtt
https://github.com/dlashua/torque2mqtt
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dlashua/torque2mqtt
- Owner: dlashua
- Created: 2019-12-17T15:26:45.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T23:13:11.000Z (almost 4 years ago)
- Last Synced: 2024-08-01T15:35:42.273Z (7 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 12
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# torque2mqtt
With an Android Phone, the Torque App (I've only tested with Torque Pro, but I think it'll work with Torque Lite) and a OBD2 Bluetooth/Wifi Adapter, you can get data about your car (speed, location, coolant temperature, odometer reading, etc, etc) into MQTT.
It’s a simple Python Service that can be used as a Torque Web Endpoint. It publishes your Torque statistics to an MQTT topic.
I don’t think it REQUIRES Torque Pro, however, I’ve not tested at all with Torque Lite. So if you try it with Lite, please let me know if it works.
This is a first pass implementation. Some units can be converted to imperial, but more work is likely needed. By default, all units are metric (from Torque). Adding `imperial: True` to your config will attempt to convert to Imperial units.
This implementation has no security, authentication, or verification.
Pull Requests are VERY welcome!
# config.yaml example
```
server:
ip: 0.0.0.0
port: 5000mqtt:
host: 192.168.0.100
port: 1883
username: username
password: password
prefix: torqueimperial: True
```# Running From Source Tree
run with `python3 server.py -c /directory/containing/config.yaml`
See config.yaml.example for configuration elements.
# Running From Docker
Docker Builds are available here:
https://hub.docker.com/r/dlashua/torque2mqtt`docker run -d -v /path/to/config:/config -p 5000:5000 dlashua/torque2mqtt`
# Running with docker-compose
```
version: "3.4"services:
torque2mqtt:
image: dlashua/torque2mqtt
restart: unless-stopped
container_name: torque2mqtt
ports:
- 5000:5000
volumes:
- ./config:/config
```