# include path for /tools folder import sys import os.path tool_dir = ( os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) + '/tools/') sys.path.append(tool_dir) # import the required tools from ADB_Action_Scipt import ActionScript from RC_Code import SonyRCKey from AppList import AppList import Power_Tools as pt # read Documentation for more info # create an instance of the class, variables can be change tv = ActionScript( ) # if more than 1 device use: tv = ActionScript("Device ID") rc = SonyRCKey() app = AppList() # Print Requirements print("Requirements:") print("Amazon is signed in") print("Netflix is signed in") print("Hulu is signed in") # Print Instructions print("What is does:") print("1. Launch Netflix and play content") print("2. Do trickplay every 5 minutes") print("3. Launch Amazon and play content") print("4. Do trickplay every 5 minutes")
import os.path tool_dir = ( os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) + '/tools/') sys.path.append(tool_dir) # import the required tools from ADB_Action_Scipt import ActionScript from RC_Code import SonyRCKey from AppList import AppList # this is for pre-made functions. read Documentation for more info import Power_Tools as pt # create an instance of the class, variables can be change tv = ActionScript( ) # if more than 1 device use: tv = ActionScript("Device ID") rc = SonyRCKey() app = AppList() # Print Requirements print("Requirements:") print("HDMI1 with IRBlaster setup") print("Amazon, Netflix, Hulu and Vudu are signed in\n") # Print Instructions print("This is what the script does:") print("Tune to HDMI for 1 hour") print("Then change channel every 10 minutes") print("Launch Netflix for 1 hour") print("Launch Amazon for 1 hour") print("Tune back to HDMI1 for 1 hour")
# include path for /tools folder import sys import os.path tool_dir = ( os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) + '/tools/') sys.path.append(tool_dir) # import the required tools from ADB_Action_Scipt import ActionScript from RC_Code import SonyRCKey from AppList import AppList import Power_Tools as pt # read Documentation for more info # create an instance of the class, variables can be change tv = ActionScript( ) # if more than 1 device use: tv = ActionScript("Device ID") rc = SonyRCKey() app = AppList() # Print Requirements print("Requirements:") print("HDMI1 with IRBlaster setup") print("Amazon, Netflix, Hulu and Vudu are signed in") print("Auto program completed for RF\n") # Print Instructions print("This is what the script does:") print("Launch Hulu for 1 hour") print("Launch Netflix for 1 hour") print("Launch Amazon for 1 hour") print("Tune back to HDMI for 1 hour")
# include path for /tools folder import sys import os.path tool_dir = ( os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) + '/tools/') sys.path.append(tool_dir) # import the required tools from ADB_Action_Scipt import ActionScript from RC_Code import SonyRCKey from AppList import AppList import Power_Tools as pt # read Documentation for more info # create an instance of the class, variables can be change tv = ActionScript( ) # if more than 1 device use: tv = ActionScript("Device ID") rc = SonyRCKey() app = AppList() # Print Requirements print("Requirements:") print("Antenna Autoprogram completed") print("TV key is programmed to RF Input") print("IR Blaster setup on HDMI1") print("Blu-Ray Player connected on HDMI2 with disk inside") print("TV connected to a network\n") # Print Instructions print("1. Launch TV Input and do Trickplay") print("2. Do Volume change while on TV antenna") print("3. Tune to HDMI1 and do Trickplay")
# include path for /tools folder import sys import os.path tool_dir = ( os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) + '/tools/') sys.path.append(tool_dir) from ADB_Action_Scipt import ActionScript from RC_Code import SonyRCKey from AppList import AppList # create an instance of the class, variables can be change tv = ActionScript() rc = SonyRCKey() app = AppList() counter = 0 # Print Requirements print("This script is for checking Parental Locks on external inputs:") print("Requirements:") print("keep the parental lock password as 0000") print("Parental lock should be OFF initially after every input check\n") def navigateToParentalLocks(): tv.clear_launch_app(app.PARENTALLOCK_PKG, app.PARENTALLOCK_ACT)
# include path for /tools folder import sys import os.path tool_dir = ( os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) + '/tools/') sys.path.append(tool_dir) # import the required tools from ADB_Action_Scipt import ActionScript from RC_Code import SonyRCKey from AppList import AppList import Power_Tools as pt # read Documentation for more info # create an instance of the class, variables can be change tv = ActionScript( ) # if more than 1 device use: tv = ActionScript("Device ID") rc = SonyRCKey() app = AppList() # Print Requirements print("Requirements:") print("HDMI1 with IRBlaster setup") print("Amazon, Netflix, Hulu and Vudu are signed in") print("Auto program completed for RF\n") # Print Instructions print("This is what the script does:") print("Tune to HDMI1 for 1 hour") print("Then change channel every 10 minutes") print("Launch Netflix for 1 hour") print("Launch Amazon for 1 hour")
# include path for /tools folder import sys import os.path tool_dir = ( os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) + '/tools/') sys.path.append(tool_dir) from ADB_Action_Scipt import ActionScript from RC_Code import SonyRCKey from AppList import AppList # create an instance of the class, variables can be change tv = ActionScript() rc = SonyRCKey() app = AppList() # Print Requirements print( "This script is for checking Parental Locks on channels with specifiic ratings:" ) print("Navigate to settings -> Parental Lock and choose settings") print( "Please verify the ratings etc as channel changes according to the settings\n\n" ) start = input("Press Enter when ready to start the script") # Automation Start #Tunes to channels input tv.press_rc_key(rc.CHANNELS)
# include path for /tools folder import sys import os.path tool_dir = ( os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) + '/tools/') sys.path.append(tool_dir) # import the required tools from ADB_Action_Scipt import ActionScript from RC_Code import SonyRCKey from AppList import AppList # create an instance of the class, variables can be change tv = ActionScript() rc = SonyRCKey() app = AppList() # Script Instructions print("This will try to get the MainActivity of an app") tv.get_activity_mfocus() # ----------------------- Keep terminal open ----------------------------- close = input("Press Enter to close terminal")