Skip to content

pasternak/webos-restapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webos-restapi

LG's WebOS REST API with IFTTT (Google assistant + webhook) integration to control TV using your voice.

Getting started

Prerequisites

webos-restapi requires ssl key and crt files to be present in the workdir. You can either create them yourself:

openssl genrsa -out server.key 2048
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650

or use any SSL provider. Let's Encrypt should be just fine. I recomend using acme.sh for that.

Installing

  1. Using source code

    git clone https://github.com/pasternak/webos-restapi.git
    cd webos-restapi
    ./build.sh

    Above process will build a binary for your current platform. If you prefer to crosscompile for either linux or arm (raspberry pi), run

    ./build.sh (linux|pi)
  2. Using shipped binary in release tab:

    TODO:

    curl -O ...

Deployment

Using the binary (cert and key have to be present in the same directory as webos)

./webos -username=<username> -password=<password>

Using docker container

docker run -d pasternak/webos-restapi -e WEBOS_USERNAME=<username> -e WEBOS_PASSWORD=<password> -v <PATH_TO_SSL_FILES>:/ --name=webos-restapi

IFTTT + Google assistant integration

TODO: add screenshots

About

IFTTT + Google Assistant integration for LG's WebOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published