Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Removed use of NodeJS. Utilized LGWebOSRemote for WebOS 2.0+ #8

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

akhan23wgu
Copy link

Removed NodeJS. Using LGWebOSRemote CLI allows for faster command execution - almost instantly.

akhan23wgu and others added 11 commits July 23, 2017 12:31
See klattimer/LGWebOSRemote for Remote CLI interface
Alexa turn on/off "tv", "plex", "netflix", and "volume" commands are now supported.
Added inputMediaPlay and inputMediaPause functions to resume and pause what's playing, call-sign is "playback". Playback can also be used as an "OK" button in Netflix stuck on an "Are you still watching?" prompt.
Added Playback functionality.

"Alexa, turn on Playback"
"Alexa, turn off Playback"
@efpe
Copy link
Owner

efpe commented Jul 26, 2017

I love this, will take a look if I have a minute. Thanks for the PR!

This was referenced Jul 26, 2017
@akhan23wgu akhan23wgu closed this Jul 26, 2017
@akhan23wgu akhan23wgu reopened this Jul 26, 2017
@karlinnolabs
Copy link

You're importing the lgtv.py from my project but I don't think you want to do that - if I make changes to LGWebOSRemote then you'll need to pull in another copy - or miss out on the changes, I'd suggest using a git subproject instead - or pip but I'd need to sort out lgtv to work with pip for that.

@efpe
Copy link
Owner

efpe commented Jul 26, 2017

@karlinnolabs I would go with pip, that would be much cleaner that using submodules.

@karlinnolabs
Copy link

OK, I'll see about setting up the repo with pypi tonight

@TRingo1
Copy link

TRingo1 commented Jul 31, 2017

When were you going to merge to master? just wondering, if all tested and working yet.

@karlinnolabs
Copy link

I don't think it should merge until I've done the pypi work, and this patch is reworked to reflect that.

Added additional detail on installation
Fixed default volume from 4 to 34
Replaced 'mute' with 'volume 0'.

Set default volume level to 44.
Added custom commands and modified items to reflect updated changes in alexa-tv.py.
@klattimer
Copy link

LGTV is now usable as a library. I need to make a pypi release of it when I find a minute but it's pip installable from the git URL now.

pip install git+https://github.com/klattimer/LGWebOSRemote.git

@klattimer
Copy link

@akhan23wgu can you update the patch.

@ganeyvim
Copy link

python lgtv.py setInput
What is the input ID for Live TV?
Nothing I tried, works. All the others are fine (HDMI_1, netflix, av1, etc)
I cannot for the life of me get in back to Antenna TV, keep getting an error of
{"payload": {"errorCode": -1000, "errorText": "expected inputId", "returnValue": false}, "type": "error", "id": "0", "error": "500 Application error"}

@akhan23wgu
Copy link
Author

@klattimer What would be the best way to pull from the library? After pip install do I just simply do a "from LGTV import LGTVScan, LGTVClient, getCommands" How would I call commands, vs calling the script as I am doing right now, or do I continue to call the script?

Updated requirements
@karlinnolabs
Copy link

@ganeyvim you're asking on the wrong project, please go to the actual project to report an issue.

@karlinnolabs
Copy link

@akhan23wgu take a look at the command line utility - basically that's what it's doing. https://github.com/klattimer/LGWebOSRemote/blob/master/lgtv.py

Only works with the Echo Dot. ¯\_(ツ)_/¯
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants