![]() If client.title = 'CLIENT NAME (Roku TV, iPhone, Android Tablet 3 << these are case sensitive)': #for video in arch(unwatched=False):ĭef on_release(key): #the bit button was pressed/released Movies = ('PLEX SECTION NAME (MOVIES, TV, ETC)')įor video in arch(unwatched=True): #unwatched movies only Plex = account.resource('PLEXSERVERNAME').connect() # returns a PlexServer instance So your TV or tablet/phone needs to start Plex, then this code will connect and change media for you.įrom pynput.keyboard import Key, ListenerĪccount = MyPlexAccount('USERNAME', 'PASSWORD') FYI, the button sends over a '2' character, but for my purposes it doesn't matter, I'm just looking for a click/release.ĬAVEAT : if your device is NOT connected to the plex server, this will not start the client. Plex code below isn't production quality, but for a couple hours of hacking and testing in-between fortnite games, it works. It doesn't matter if there are proper descriptions or posters for them since they won't be seen in the their selection. I have set up their own media section on the server, so their favorite shows are all jumbled together. The button isn't wireless, but for my setup it's okay. A large button that is easy to press for my child. ![]() The big USB button on Aliexpress (titled : One Key USB Programmable Macro Keyboard) below is image only: įigured that was exactly was was needed. I hope this post helps out anyone that needs a little assistance keeping your special needs people occupied and giving them a little control with their decisions on what to watch. ![]() That was cool, but that button was a bit small, and I wanted something not battery powered, or proprietary, within this project. Wrote up this post in 2016 about an Amazon Dash button controlling Plex.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |