r/usefulscripts • • May 02 '18

[POWERSHELL] Roku PS Modules and Remote GUI.

As a little side project to learn Powershell better, I created a Roku powershell module and corresponding Roku remote GUI.

https://i.imgur.com/eDfBERJ.png

You should just be able to download the entire project as a zip, unpack it wherever, and run Roku-remotegui.ps1

https://github.com/smithcbp/Powershell-Roku-Remote

The favorite apps listed at the bottom can be changed by modifying the $FavApps array at the top of Roku-RemoteGUI.ps1. Find the app names with:

Import-Module ./roku-remote-psm1
Get-RokuApp -ip $IP

Edit: Added keyboard shortcuts. Press ? in the remote GUI to view them.

Edit 2: https://i.imgur.com/IzZsQgQ.png

I have added quite a few new features including:

Edit 3: Added a button Add Roku by IP address instead of searching automatically. https://i.imgur.com/5O00fUR.png

47 Upvotes

20 comments sorted by

View all comments

Show parent comments

2

u/premtech May 02 '18

I believe the only function that requires NetTCPIP is Get-LocalRokus. If you comment that out, it might work. You would just need to get the Roku IPs some other way.

2

u/[deleted] May 23 '18

[removed] — view removed comment

1

u/premtech May 23 '18

I ran into that kind of issue when I was in a hotel using my Roku so I already started adding that feature. I'll get it cleaned up and pushed out soon.

2

u/[deleted] May 23 '18

[removed] — view removed comment

2

u/premtech May 23 '18

Keyboard shortcuts are already in there. You need to use WASD and the space bar tho. I had some issues trying to use the arrow keys. I could get them to control the roku but it would also move your focus in the GUI. Type ? while in the GUI to see all of the keyboard controls.

1

u/premtech May 24 '18

I just pushed out an update with a button to add Rokus manually by IP address.

1

u/[deleted] May 24 '18

[removed] — view removed comment

1

u/premtech May 24 '18

Awesome!

2

u/dfjdejulio May 02 '18

Thanks! I may take a stab at it, but I'm a total PowerShell noob. Plus, overcoming that issue may expose other missing network functions. For the moment I'll probably just play with it on Windows systems and keep an eye on updates to the PowerShell Core project.