Skip to content

tylermneher/Optimum-TV-API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimum TV API

Status: Functional

This is a python wrapper for the unofficial Optimum App API.

To get everything up and running, you first need to obtain a Device ID.

Device ID

A Device ID is a UUID4 format identifier that is generated when a machine uses the Optimum App for the first time. Unfortunately I have not yet been able to successfully reverse engineer the generation proccess, although locating your Device ID is a fairly trivial matter.

Obtaining a Device ID

  1. Open the Optimum App, and sign in.
  2. Select the SETTINGS tab on the top of the screen.
  3. Select the FAQ tab located on the right side of the screen.
  4. On the bottom of the screen, you should see your Device ID next to the words "For System Use Only:"

Authentication

import optimum
tv = optimum.API(optimum_ID, password, device_ID)

Cable Boxes

# see your cable boxes
for box in tv.boxes:
   print box.name
   print box.serial
   print box.type
   print box.resolution
   if box.recordable:
      print box.space
# turn boxes on/off
result = tv.do_keypress(tv.boxes["Kitchen"], ["KEY_POWER"])
if not result:
   print "Keypress Failed!"
# change the channel
# note that you can chain keys, so for channel 32 you would do:
result = tv.do_keypress(tv.boxes["Living Room"], ["KEY_3","KEY_2"])

Other Things: (I'll finish this later)

  • Record Programs
  • Delete Recordings
  • Search
  • Get Scheduled Recordings
  • Get Reccomendations
  • More...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%