Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.34 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.34 KB

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