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

Latest commit

 

History

History
30 lines (22 loc) · 469 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 469 Bytes

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")