Git Product home page Git Product logo

thinq2-python's Introduction

thinq2-python

This is a reverse-engineered client for the LG ThinQ v2 IoT protocol.

If you are working with v1 devices, try wideq, which inspired this project.

Work in progress!

This is very much a work in progress.

There are no unit tests, there is no documentation, there is no defined API and breaking changes are almost guaranteed to happen. Fun times!

Development

This project uses poetry for dependency management.

To configure a development environment, run poetry install.

Running the Example

There is currently no documentation, but you can use example.py to demo the codebase, and its code shows basic usage. The COUNTRY_CODE and LANGUAGE_CODE environment variables should be set appropriately on first invocation in order to bootstrap the client. These will be stored in state for future invocations.

Example:

poetry install
COUNTRY_CODE=US LANGUAGE_CODE=en-US poetry run python example.py

Example (Windows Powershell):

$env:COUNTRY_CODE=US
$env:LANGUAGE_CODE=en-US
poetry run python example.py

The example script will bootstrap the application state on first run, walking you through the OAuth flow. If authentication succeeds, you should see a display of basic account information and a list of your ThinQv2 devices. The script will then begin dumping device events received via MQTT. Try turning devices on/off or otherwise changing their state, and you should see raw events being sent.

Contributing

As this is an early stage prototype, no contribution guidelines are available, but help is always welcome!

thinq2-python's People

Contributors

tinkerborg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.