https://github.com/bradjc/thinq2-influxdb
Publish Thinq2 data to InfluxDB 1.x.
https://github.com/bradjc/thinq2-influxdb
Last synced: over 1 year ago
JSON representation
Publish Thinq2 data to InfluxDB 1.x.
- Host: GitHub
- URL: https://github.com/bradjc/thinq2-influxdb
- Owner: bradjc
- Created: 2022-04-05T02:54:02.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-05T13:33:57.000Z (about 4 years ago)
- Last Synced: 2025-01-04T20:14:14.181Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Thinq2 to InfluxDB 1.x
======================
This tool listens for Thinq2 messages and pushes them to an InfluxDB 1.x
database.
I've only tried this with an LG washing machine.
Setup
-----
First you need to get an oauth token.
```
sudo pip3 install poetry
git clone https://github.com/tinkerborg/thinq2-python
cd thinq2-python
poetry install
COUNTRY_CODE=US LANGUAGE_CODE=en-US poetry run python example.py
```
That will create `state.json`. Copy that file to this repo.
Then you need to install the thinq2 library after running `poetry install`:
```
sudo pip install git+https://github.com/tinkerborg/thinq2-python
```
### Config Files
`/etc/swarm-gateway/influx-lgthinq.conf`:
```
url=
port=
username=
password=
database=
```
and
`/etc/swarm-gateway/lgthinq.conf`:
```
device_id=
location_general=
```