Skip to content

ShubhamKhandare/autolitt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autolitt

Autolitt is an application utilising the Tuya API to automatically change SmartLife/Tuya lights as per content on screen.

Tested on following platforms with Wipro WiFi bulb. Amazon link

  1. Ubuntu 20.04 LTS
  2. Windows 10

Installation

Autolitt requires Python 3 to run.

Install the requirements and run the script.

$ pip3 install -r requirements.txt
$ python3 autolitt.py

Android App link for Smartlife: https://play.google.com/store/apps/details?id=com.tuya.smartlife Register from app and link smart bulb.

You will also need to alter the config.json file with the following:

  1. Your Tuya/SmartLife login and password so it looks like this {"username":"[email protected]","password":"YOURPASS"...}
  2. Your country code ("91" for India users, 44" for UK users, "1" for US/Canadian users, etc)
  3. The application you're using ('tuya' for tuya users and 'smart_life' for smart life users)
{"username":"[email protected]","password":"YOURPASS","country_code":"91","application":"smart_life"}

Inspired from:

To find the dominant colour I have used color-thief-py

Todos

  • Dynamic Screen Resolution and offset setting
  • Properly adjusting dark and white dominant color