1.0.1 • Published 4 years ago

vodafone-controller v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

VODAFONE-CONTROLLER

The Vodafone box has a telnet interface to receive remote control commands.
Also it sends a broadcast message with it's location and what it's playing.

installing

npm install vodafone-controller

usage

Get box state ("ON", "OFF", "UNKNOWN"):

vodafone.getState( {ip} ip )

Get channel:

vodafone.getChannel( {ip} ip )

Send a key:

vodafone.setKey( {ip} ip , {String} key )

Mapped keys so far:

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, back, ok, p+, p-, menu, up, down, left, right, options, guia tv, videoclube, gravacoes, teletext, prev, rewind, play/pause, forward, next, stop, red, green, yellow, blue, switchscreen, i, mute, v-, v+, record, power

ToDo

  • Sometimes the box stops broadcasting for a while. There must be another way.
  • Get what's playing in that channel.
1.0.1

4 years ago

1.0.0

5 years ago