sgnl / nodeku

discover and control Roku devices with NodeJS

Home Page:https://medium.com/@sgnl/nodeku-control-your-roku-with-node-js-d8b8c87cdba6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement mvp methods

sgnl opened this issue · comments

  • .ip()
  • .apps()
  • .activeApp()
  • .info()
  • .keypress('key')
  • .keydown()
  • .keyup()
  • .icon()
  • .launch()

notes:

Device Module Api {
  ip: Fn() => 'xxx.xxx.xxx.xxx:8060'
  apps: Fn() => [{  ...appInfo  }, ...]
  activeApp: Fn => { ... }
  keydown: Fn(key) => POST to device only
  keyup: Fn(key) => POST to device only
  keypress: Fn(key) => POST to device only
  launch: Fn(AppId) => POST to device only
  info: Fn() => xml2js
  .icon: Fn(appId) => Binary data | img
}