Giter Site home page Giter Site logo

optimum-tv-api's Introduction

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...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.