jcarbaugh / python-roku

Screw remotes. Control your Roku with Python.
https://pypi.python.org/pypi/roku
BSD 3-Clause "New" or "Revised" License
288 stars 94 forks source link

Running roku commands from Python IDE #82

Closed gmcknigh closed 1 year ago

gmcknigh commented 1 year ago

I am trying to accept commands through a loop like this example below, but it seems the specified IP is not 'saved' in the console. This question may be more suited for stackoverflow as I'm sure it is user error. There is a lot I do not know.

from roku import Roku
roku = Roku('ipaddresshere')
while True:
    user_input = input('--> ')
    if user_input.lower() == 'home':
        roku.home()

This however does not work. Is there a way for this to be done?

gmcknigh commented 1 year ago

This works perfectly fine. I am not sure what was wrong before.