JosePedroDias / meo-controller

Send remote control commands to your MEO box via nodejs
3 stars 2 forks source link

MEO-CONTROLLER

The MEO box has a telnet interface to receive remote control commands.
This module exposes it in a friendly manner.

Kudos to the project telnetit.
Using a refactored/simplified version of it.

installing

npm install meo-controller

usage

exposes a function which accepts a callback with signature cb(err, api).
error is filled in case of error, api returned otherwise

public API follows:

api.sendKey( {String} keyName )
api.sendNumber( {Number} keyValue )
api.close()

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