-
Notifications
You must be signed in to change notification settings - Fork 45
Removed use of NodeJS. Utilized LGWebOSRemote for WebOS 2.0+ #8
base: master
Are you sure you want to change the base?
Conversation
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"
I love this, will take a look if I have a minute. Thanks for the PR! |
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. |
@karlinnolabs I would go with pip, that would be much cleaner that using submodules. |
OK, I'll see about setting up the repo with pypi tonight |
When were you going to merge to master? just wondering, if all tested and working yet. |
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.
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 |
@akhan23wgu can you update the patch. |
python lgtv.py setInput |
@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
@ganeyvim you're asking on the wrong project, please go to the actual project to report an issue. |
@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. ¯\_(ツ)_/¯
Removed NodeJS. Using LGWebOSRemote CLI allows for faster command execution - almost instantly.