Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.
/ pylgtv Public archive

Library to control webOS based LG Tv devices

License

Notifications You must be signed in to change notification settings

TheRealLink/pylgtv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pylgtv

Library to control webOS based LG Tv devices

Requirements

  • Python >= 3.3

Install

pip install pylgtv

Example

from pylgtv import WebOsClient

import sys
import logging

logging.basicConfig(stream=sys.stdout, level=logging.INFO)

try:
    webos_client = WebOsClient('192.168.0.112')
    #webos_client.launch_app('netflix')

    for app in webos_client.get_apps():
        print(app)
except:
    print("Error connecting to TV")