#sky-remote
وحدة NodeJS لإرسال أوامر التحكم عن بعد إلى جهاز Sky TV box. يعمل مع Sky+HD وSkyQ.
npm install sky-remote
var SkyRemote = require ( 'sky-remote' ) ;
var remoteControl = new SkyRemote ( '192.168.0.40' ) ;
// Simple - just send a command
remoteControl . press ( 'power' ) ;
// Cool - send sequences of commands
remoteControl . press ( [ 'channelup' , 'record' , 'select' ] ) ;
// Nice - send commands with a callback
remoteControl . press ( 'channelup' , function ( err ) {
if ( err ) {
console . log ( "Woah! Something went wrong. Cry time." ) ;
} else {
console . log ( "I just pressed the Channel Up command." ) ;
} ;
} ) ;
var remoteControl = new SkyRemote('192.168.0.40', SkyRemote.SKY_Q_LEGACY);
power
sky
tvguide
أو services
boxoffice
home
أو search
interactive
أو sidebar
up
down
left
right
select
channelup
أعلى قناة channeldown
i
backup
أو dismiss
help
text
play
pause
rewind
record
stop
fastforward
red
green
yellow
blue
0
1
2
3
4
5
6
7
8
9