Giter VIP home page Giter VIP logo

sky-remote's People

Contributors

dalhundal avatar jdebardi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sky-remote's Issues

Nest thermostat

Hi Dal, sorry but this is the only way I can find to contact you...
I've been using your Nest thermostat which you published on PEN, and it is really good, just what I was looking for to control HVAC with my Raspberry Pi, so a big thanks.
I've made a few changes to make it an easy install for node-red users, however, I notice that you have no licence described in PEN, and I would be grateful if you could tell me how you want your code to be handled.

Paul

nodejs crashes with uncaught exception if non sky IP address is passed.

Hi, I've been been creating a node-red node wrapper for your library.

Whilst it works well, when correct configured, unfortunately it crashes node-red / nodejs when it is given an incorrect IP address (i.e. not a sky box) with the following error:

18 Mar 22:19:35 - [red] Uncaught Exception:
18 Mar 22:19:35 - Error: connect ECONNREFUSED 192.168.0.92:49160
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)

This appears to be due to there being no error capture on net.connect ? But I've reached the limit of my ability

Sky Q additional commands

Have you any idea if there are additional codes for Sky Q to access things like "my recordings" or "My Q" or similar?

Might try and experiment by sending codes and seeing what happens !

Package will not install

Hi, trying to install this but I keep getting an error

`homeserver-ex490:~ admin$ npm install sky-remote
/Users/admin
└── [email protected]

npm WARN enoent ENOENT: no such file or directory, open '/Users/admin/package.json'
npm WARN admin No description
npm WARN admin No repository field.
npm WARN admin No README data
npm WARN admin No license field.`

If I move the files from /users/admin/node_modules/sky-remote I then get this error

`homeserver-ex490:~ admin$ npm install sky-remote
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "sky-remote"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ENOSELF

npm ERR! Refusing to install sky-remote as a dependency of itself
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /Users/admin/npm-debug.log
`

LOG FILE CONTENTS

0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'install', 1 verbose cli 'sky-remote' ] 2 info using [email protected] 3 info using [email protected] 4 verbose config Skipping project config: /Users/admin/.npmrc. (matches userconfig) 5 silly loadCurrentTree Starting 6 silly install loadCurrentTree 7 silly install readLocalPackageData 8 silly fetchPackageMetaData sky-remote 9 silly fetchNamedPackageData sky-remote 10 silly mapToRegistry name sky-remote 11 silly mapToRegistry using default registry 12 silly mapToRegistry registry https://registry.npmjs.org/ 13 silly mapToRegistry data Result { 13 silly mapToRegistry raw: 'sky-remote', 13 silly mapToRegistry scope: null, 13 silly mapToRegistry escapedName: 'sky-remote', 13 silly mapToRegistry name: 'sky-remote', 13 silly mapToRegistry rawSpec: '', 13 silly mapToRegistry spec: 'latest', 13 silly mapToRegistry type: 'tag' } 14 silly mapToRegistry uri https://registry.npmjs.org/sky-remote 15 verbose request uri https://registry.npmjs.org/sky-remote 16 verbose request no auth needed 17 info attempt registry request try #1 at 10:34:27 PM 18 verbose request id 1fbc25cf9e0974a8 19 verbose etag "58ceadc5-23b0" 20 verbose lastModified Sun, 19 Mar 2017 16:11:49 GMT 21 http request GET https://registry.npmjs.org/sky-remote 22 http 304 https://registry.npmjs.org/sky-remote 23 verbose headers { date: 'Mon, 18 Dec 2017 22:34:28 GMT', 23 verbose headers via: '1.1 varnish', 23 verbose headers 'cache-control': 'max-age=300', 23 verbose headers etag: '"58ceadc5-23b0"', 23 verbose headers age: '1433', 23 verbose headers connection: 'keep-alive', 23 verbose headers 'x-served-by': 'cache-lcy19235-LCY', 23 verbose headers 'x-cache': 'HIT', 23 verbose headers 'x-cache-hits': '1', 23 verbose headers 'x-timer': 'S1513636469.776920,VS0,VE0', 23 verbose headers vary: 'Accept-Encoding, Accept' } 24 silly get cb [ 304, 24 silly get { date: 'Mon, 18 Dec 2017 22:34:28 GMT', 24 silly get via: '1.1 varnish', 24 silly get 'cache-control': 'max-age=300', 24 silly get etag: '"58ceadc5-23b0"', 24 silly get age: '1433', 24 silly get connection: 'keep-alive', 24 silly get 'x-served-by': 'cache-lcy19235-LCY', 24 silly get 'x-cache': 'HIT', 24 silly get 'x-cache-hits': '1', 24 silly get 'x-timer': 'S1513636469.776920,VS0,VE0', 24 silly get vary: 'Accept-Encoding, Accept' } ] 25 verbose etag https://registry.npmjs.org/sky-remote from cache 26 verbose get saving sky-remote to /Users/admin/.npm/registry.npmjs.org/sky-remote/.cache.json 27 verbose correctMkdir /Users/admin/.npm correctMkdir not in flight; initializing 28 silly install normalizeTree 29 silly loadCurrentTree Finishing 30 silly loadIdealTree Starting 31 silly install loadIdealTree 32 silly cloneCurrentTree Starting 33 silly install cloneCurrentTreeToIdealTree 34 silly cloneCurrentTree Finishing 35 silly loadShrinkwrap Starting 36 silly install loadShrinkwrap 37 silly loadShrinkwrap Finishing 38 silly loadAllDepsIntoIdealTree Starting 39 silly install loadAllDepsIntoIdealTree 40 silly rollbackFailedOptional Starting 41 silly rollbackFailedOptional Finishing 42 silly runTopLevelLifecycles Finishing 43 silly install printInstalled 44 verbose stack Error: Refusing to install sky-remote as a dependency of itself 44 verbose stack at checkSelf (/usr/local/lib/node_modules/npm/lib/install/validate-args.js:53:14) 44 verbose stack at Array.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8) 44 verbose stack at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14) 44 verbose stack at chain (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5) 44 verbose stack at /usr/local/lib/node_modules/npm/lib/install/validate-args.js:16:5 44 verbose stack at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35 44 verbose stack at Array.forEach (native) 44 verbose stack at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11 44 verbose stack at Array.forEach (native) 44 verbose stack at asyncMap (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8) 45 verbose cwd /Users/admin 46 error Darwin 14.5.0 47 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "sky-remote" 48 error node v6.10.2 49 error npm v3.10.10 50 error code ENOSELF 51 error Refusing to install sky-remote as a dependency of itself 52 error If you need help, you may report this error at: 52 error <https://github.com/npm/npm/issues> 53 verbose exit [ 1, true ]

Please can you advise where I am going wrong

Sky Q v060 now uses old port

Hi,

Per the title, Sky are rolling out a Sky Q update which now moves the port from 5900 back to the original 49160 used by Sky HD. So guess the sky_q switch should be renamed legacy_sky_q and it's description aimed at < 060 firmware.

Cheers.

Adding Button (not issue)

I would like the TV button on the sky remote added as I would like to use it to turn on and off my TV if possible. If not can you explain how you added the buttons to your code and how I could add it to the code myself.

Where did you find this protocol?

Hi, great work! I am looking to port this to Golang. Is this protocol documented anywhere? All I find is the awful SOAP interface which I really want to avoid. The application I have is just for changing the channel in response to certain user events so want to avoid using that hateful, hateful interface. As you may gather I hate XML and would much rather just send some bytes instead.

Example app sending channelup turns sky q box on and off

So in the below sample for a Sky Q box this actually seems to turn the box on and off, not change the channel

var SkyRemote = require('sky-remote');

var remoteControl = new SkyRemote('192.168.1.10', SkyRemote.SKY_Q);

// 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.");
};
});

How to use 'sky-remote' node.js module with webhooks GET request

Hi I am trying to use Google assistant (and my Google home) to control my sky q box via voice commands

I want to use IFTTT website, which activates on Google assistant call e.g. 'Hey Google Turn on SkyQ' which then triggers a Webhooks HTTP call to your application... which i can type in url, type, body (get, post etc...)

I found your sky-remote interface on git hub. And watching YouTube videos i think i have installed the sky-remote.js package using termux app

However i am not a programmer and i can't work out how to call your application using a webhooks web request. Can you help me?

Sorry for stupid questions and thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.