Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 21 22:21
    csmith0289 edited #5
  • Jan 21 19:21
    csmith0289 edited #5
  • Jan 21 19:21
    csmith0289 opened #5
  • Jan 20 09:57
    csmith0289 closed #4
  • Jan 20 09:57
    csmith0289 commented #4
  • Jan 20 09:49
    csmith0289 opened #4
  • Nov 15 2018 14:42
    jameslumgair commented #2
  • Aug 17 2018 10:54
    adampointer commented #16
  • Aug 16 2018 09:29
    adampointer opened #16
  • Feb 11 2018 09:46

    dalhundal on 1.2.0

    (compare)

  • Feb 11 2018 09:46

    dalhundal on master

    Bump to v1.2.0 (compare)

  • Feb 11 2018 09:41

    dalhundal on 1.2.0

    (compare)

  • Feb 11 2018 09:41

    dalhundal on master

    Bump to v1.2.0 (compare)

  • Feb 11 2018 09:38

    dalhundal on master

    Update README.md Update sky-remote-cli.js Moved… Merge pull request #7 from jdeb… (compare)

  • Feb 11 2018 09:38
    dalhundal closed #7
  • Feb 11 2018 09:36
    dalhundal closed #11
  • Feb 11 2018 09:36
    dalhundal commented #11
  • Feb 11 2018 09:36
    dalhundal commented #14
  • Feb 11 2018 09:35
    dalhundal commented #14
  • Feb 11 2018 09:35
    dalhundal closed #14
waternexus
@waternexus
Any news on what's happening?
Dal Hundal
@dalhundal
Yep - I don't have time to work on it at the moment :-(
Feel free to pitch in though :-)
Dal Hundal
@dalhundal
Hey all - I have two new simpler modules up on github / npm which should cover many of your use cases.
http://github.com/dalhundal/sky-remote - sends remote control commands to a sky box (the same as the buttons on the remote control - including power). Just needs the IP of the box you want to control, and is fast.
http://github.com/dalhundal/sky-remote-cli - a command line interface to the above - great to use on the command line / from other scripts etc. As simple as calling "sky-remote-cli 192.168.0.40 pause"
Should cover alot of what people want without the complexity of the the sky-plus-hd module (though I still intend to develop that)
@leecollings @waternexus @john01925 - hope that comes in handy
Negan99
@Negan99
Excellent work Dal & much appreciated as I could never get the previous module to work correctly.
I have 2 questions
1) Is there any way to check to see whether the Sky box is in standby or if it's turned on? This would prevent me from turning it off by accident.
2) If not then is the code that you have shown for the Sky button correct? If I press that on my remote & the box is in standby it turns on but using it from the CLI it doesn't. When I checked in the js file you show both the TV & Sky buttons as having code 127 which doesn't see right.
john01925
@john01925
Wow that is fantastic, great work. I too had given up with the old version but this is brilliant :smile:
Dal Hundal
@dalhundal

Hey @Negan99

1) No, this module can't tell you whether the box is on or not - it's very much a one way street - you can send commands to the box but there is no feedback at all from the box about its status or whether it could perform the command. All you can tell is whether you managed to send the command or not. Its pretty much like a real life Sky remote control in that respect. To know whether the box is on or not, would need to do some stuff the other module was doing I suspect (they are completely different in how the communicate with the box)

2) I'm not sure about the Sky button, to be honest I'm not sure if I tried using it. The TV button shouldn't be in the code at all - I need to remove it. If you think about it, your sky box cannot control your TV - which is why there are no codes for volume buttons either.

@john01925 :-)
john01925
@john01925
Yep the SKY button doesn't seem to work. The SKY button normally always switches the box ON or returns to normal from a within any sub menu. Everything else however looks good.
Negan99
@Negan99
Out of interest where did the codes come from? Would it be a case of trial & error if we were to look for a different code should the Sky button prove to be incorrect?
john01925
@john01925
Think I found it. 241 works on my box. If you replace the 'sky: 127,' with 'sky: 241,' in sky-remote.js you get the correct operation of the Sky button. That means you can power ON from standby and return to normal viewing from all sub menus.
john01925
@john01925
On my Windows 7 PC that file is in C:\Users...\AppData\Roaming\npm\node_modules\sky-remote-cli\node_modules\sky-remote\sky-remote.js '...' = Your user directory
Negan99
@Negan99
The file is at /usr/local/lib/node_modules/sky-remote-cli/node_modules/sky-remote on my Linux box but I found something interesting.f I press the Sky button on the remote & the TV is turned off, the Sky box powering up also turns the TV on. If I use code 241 then it doesn't (but the Sky box does come out of standby) so maybe there still is another code
did you just use trial & error to find that code John or did you discover it elsewhere?
john01925
@john01925
Hi Negan99 - I just trial and error'ed it I'm afraid. I just counted down from 255 as I assumed it was between 255 and 127. Your TV powering up I assume is something to do with control over HDMI and happens on purpose right? Mine doesn't do that, probably because there are a number of HDMI switchers in the way.
Negan99
@Negan99
Looks like I have a project for tomorrow morning then :)
Only one of my TVs does it but it is cool that everything (soundbar included) all comes on at the same time. I proposed the change to the code
Dal Hundal
@dalhundal
I'll make the modification in a bit...
Dal Hundal
@dalhundal
Hey - I just checked on mine too. With the box + tv on standby, pressing 'SKY' turns on the box, but not the TV. I don't have any switches between them or anything like that - its a straightforward connection.
HDMI devices can control one another if they both support the HMDI CEC protocol. Some manufacturers give it other names - eg my Samsung TV calls it AnyNet, and it seems SKY call it "one touch play". Not all boxes support it - I have a DRX780 which is one that doesn't support it. I have another box which I don't have plugged in which should support it.
Dal Hundal
@dalhundal
"One-Touch-Play isn’t available on Sky+HD box models Samsung HD, Samsung 500, Pace and DRX780. "
So @john01925, I'm guessing either 1) you have one of the boxes that don't support one-touch-play 2) your TV doesn't support hdmi cec
Dal Hundal
@dalhundal
Updated the module with the correct code for the SKY button (thanks @john01925 ) - v1.0.3 on github and npm
This message was deleted
john01925
@john01925
Sorry I wasn't clear. I do have it but I don't really want my SKY box controlling my TV(s). My SKY box is connected to multiple HDMI devices so enabling CEC would be problematic. I am really happy with the code ;) I can now control my SKY box with my home automation software and some batch files. Its brill.
Dal Hundal
@dalhundal
Ah - you want to disable it? That link above explains how to turn the feature on / off
Sorry - just realised I've been completely misreading what you said - you dont want it and dont have it - ignore me!
john01925
@john01925
Ah no worries. Would you mind sharing how you found the actual codes dal ?
Dal Hundal
@dalhundal
Hey - I used wireshark with some filters to show only traffic going from my phone to my sky box (when using the official sky app) and found it was sending commands over port 49160. Then just tried the buttons one by one to see what was different each time and work from there. I had tried searching online before to see if anyone had figured it out, but could never find anything (besides some guy saying it was done using the VNC protocol - not sure that's right).
Knowing it was using port 49160 helped to find some stuff online though - googling "49160 sky remote" turned up a post on the sky users forum where a guy had written a small C prog to send the 'power' button to a sky box
Negan99
@Negan99
Really interesting as I had never found that post until you mentioned it :)
Has now given me some ideas for a project when I have time
The HDMI CEC stuff is a mystery however; works when pressed on the physical remote but not when the code is sent programmatically is just strange.
john01925
@john01925
Funny, I'd tried to do that exact same thing with Wireshark (albeit lightheartedly) but didn't know what port to look at only the boxes IP address. Never had time to properly investigate it though.
Dal Hundal
@dalhundal
Yeah I'm sure I tried once before and didn't notice it either - I was just a bit more thorough this time
Paul
@paulgbrichardson
Hey, I'm having a little play with this code and hit an issue. I had the monitor working great this morning. I've tried again just not and get -

node sky-plus-hd-monitor.js
Skipping a non-sky upnp device
Opening notification listener
Opened notification listener
Requesting new subscription
/home/pi/sky-plus-hd/node_modules/q/q.js:126
throw e;
^

TypeError: Cannot read property 'eventSubURL' of undefined
at SkyPlusHDBox_subscribe (/home/pi/sky-plus-hd/lib/sky-plus-hd.js:216:123)
at /home/pi/sky-plus-hd/lib/sky-plus-hd.js:518:7
From previous event:
at new SkyPlusHDBox (/home/pi/sky-plus-hd/lib/sky-plus-hd.js:517:8)
at /home/pi/sky-plus-hd/lib/sky-plus-hd.js:95:23

Any ideas? I'm not too versed in node - yet

Dal Hundal
@dalhundal
Hey Paul - I suggest you try checking out the v1-dev branch from git and playing with that instead of the module from NPM. I have a completely rewritten module in the works, but it's not ready to go yet, so this is your best bet for now.
BTW what is it you're trying to do?
Paul
@paulgbrichardson
Hey, I'm simply trying to monitor my sky box for changes to the play state. I do the same for my kodi instance, which in turn controls the lighting in the room - dim when playing, and brighter when paused/stopped.
Lee Collings
@leecollings
Hey Dal, I don't suppose you remember me, but we spoke about using this tool a couple of years ago (maybe last year actually). Anyway, I kind of abandoned it, wiped my Pi, but now want to come back to it. I'm looking for instructions on how to run the sky-remote-cli as a background daemon service again, but can't seem to find any of the conversation we had. Are you able to help?
Lee Collings
@leecollings
Actually don't worry, I think this was resolved by using your sky-remote-cli tool to instantly send commands right?
Dal Hundal
@dalhundal
Hey lee - it depends on what you're trying to do. If you want to send remote control commands, yes you can do that instantly with sky-remote-cli
ndg63276
@ndg63276
Hi Dal, do you still use this chat room?
Lee Collings
@leecollings
Hey @dalhundal , have you abandoned https://github.com/dalhundal/sky-plus-hd ? Has anyone approached you with the aim of turning this into a Domoticz plugin?