Re: [Plugin Officiel][Sujet Principal] Ikea Light
Publié : 11 oct. 2019, 19:07
Tu es en Jessie mais essaye quand même de mettre a jour et de relancer les dépendances on sait jamais même si ya peu de chance
Forum sur Jeedom
https://www.jeedom.com/forum/
ok bizarre, effectivement je suis en V3 sur ma prod.
Code : Tout sélectionner
********************************************************
* Installation des dépendances *
********************************************************
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Hit:3 https://deb.nodesource.com/node_12.x stretch InRelease
Fetched 25.4 kB in 1s (20.0 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version (9.20161125+rpi1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Version actuelle : 12
Ok, version suffisante
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
Depends: node-ansi-color-table but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 3.0.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-underscore but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
> node-aead-crypto@2.1.4 install /var/www/html/plugins/ikealight/resources/ikealightd/node_modules/node-aead-crypto
> node lib/install.js
node-aead-crypto is no longer needed on NodeJS 10+
npm WARN saveError ENOENT: no such file or directory, open '/var/www/html/plugins/ikealight/resources/ikealightd/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/ikealight/resources/ikealightd/package.json'
npm WARN ikealightd No description
npm WARN ikealightd No repository field.
npm WARN ikealightd No README data
npm WARN ikealightd No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 (node_modules/node-aead-crypto):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 install: `node lib/install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ node-tradfri-client@2.0.1
added 14 packages from 13 contributors and audited 116 packages in 12.364s
found 0 vulnerabilities
> node-aead-crypto@2.1.4 install /var/www/html/plugins/ikealight/resources/ikealightd/node_modules/node-aead-crypto
> node lib/install.js
node-aead-crypto is no longer needed on NodeJS 10+
npm WARN saveError ENOENT: no such file or directory, open '/var/www/html/plugins/ikealight/resources/ikealightd/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/ikealight/resources/ikealightd/package.json'
npm WARN ikealightd No description
npm WARN ikealightd No repository field.
npm WARN ikealightd No README data
npm WARN ikealightd No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 (node_modules/node-aead-crypto):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 install: `node lib/install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ fs@0.0.1-security
added 1 package and audited 341 packages in 6.555s
found 0 vulnerabilities
> node-aead-crypto@2.1.4 install /var/www/html/plugins/ikealight/resources/ikealightd/node_modules/node-aead-crypto
> node lib/install.js
node-aead-crypto is no longer needed on NodeJS 10+
npm WARN saveError ENOENT: no such file or directory, open '/var/www/html/plugins/ikealight/resources/ikealightd/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/ikealight/resources/ikealightd/package.json'
npm WARN ikealightd No description
npm WARN ikealightd No repository field.
npm WARN ikealightd No README data
npm WARN ikealightd No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 (node_modules/node-aead-crypto):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 install: `node lib/install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ request@2.88.0
added 47 packages from 58 contributors and audited 404 packages in 12.425s
found 0 vulnerabilities
> node-aead-crypto@2.1.4 install /var/www/html/plugins/ikealight/resources/ikealightd/node_modules/node-aead-crypto
> node lib/install.js
node-aead-crypto is no longer needed on NodeJS 10+
npm WARN saveError ENOENT: no such file or directory, open '/var/www/html/plugins/ikealight/resources/ikealightd/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/ikealight/resources/ikealightd/package.json'
npm WARN ikealightd No description
npm WARN ikealightd No repository field.
npm WARN ikealightd No README data
npm WARN ikealightd No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 (node_modules/node-aead-crypto):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 install: `node lib/install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ express@4.17.1
added 55 packages from 35 contributors in 20.079s
********************************************************
* Installation terminée *
********************************************************
Code : Tout sélectionner
[2019-10-14 14:37:43][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2019-10-14 14:37:43][INFO] : Lancement démon ikealight : sudo /usr/bin/nodejs /var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.js --loglevel debug --socketport 55025 --callback http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php --apikey anJLbYvjZx2G7lNWW0EFn5e3YLdkicI9 --cycle 0.1 --pid /tmp/jeedom/ikealight/deamon.pid --gatewayip 192.168.1.16 --gatewaycode ePNJhFnA2VbQFzMk
[2019-10-14 12:37:44][INFO] : Start ikealightd
[2019-10-14 12:37:44][INFO] : Log level on : debug
[2019-10-14 12:37:44][INFO] : Socket port : 55025
[2019-10-14 12:37:44][INFO] : Gateway ip : 192.168.1.16
[2019-10-14 12:37:44][INFO] : Gateway code : XXXXXXXXXXXXXX
[2019-10-14 12:37:44][INFO] : PID file : /tmp/jeedom/ikealight/deamon.pid
[2019-10-14 12:37:44][INFO] : Apikey : anJLbYvjZx2G7lNWW0EFn5e3YLdkicI9
[2019-10-14 12:37:44][INFO] : Callback : http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php
[2019-10-14 12:37:44][INFO] : Cycle : 0.1
[2019-10-14 12:37:44][INFO] : Start ikealightd
[2019-10-14 12:37:44][INFO] : Ikealightd initialise, try connect...
[2019-10-14 12:37:44][DEBUG] : Connect to gateway with : {"identity":"tradfri_1570640220794","psk":"XXXXXXXXXXXXXX"}
[2019-10-14 12:37:44][DEBUG] : HTTP listen on 127.0.0.1 port : 55025 started
[2019-10-14 14:37:44][DEBUG] : Received message : []
/var/www/html/plugins/ikealight/resources/ikealightd/jeedom/jeedom.js:153
if(!reponse || !response.statusCode || response.statusCode != 200){
^
ReferenceError: reponse is not defined
at Request._callback (/var/www/html/plugins/ikealight/resources/ikealightd/jeedom/jeedom.js:153:5)
at Request.self.callback (/var/www/html/plugins/ikealight/resources/ikealightd/node_modules/request/request.js:185:22)
at Request.emit (events.js:210:5)
at Request.<anonymous> (/var/www/html/plugins/ikealight/resources/ikealightd/node_modules/request/request.js:1161:10)
at Request.emit (events.js:210:5)
at IncomingMessage.<anonymous> (/var/www/html/plugins/ikealight/resources/ikealightd/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:299:28)
at IncomingMessage.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1183:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
[2019-10-14 14:38:13][ERROR] : Impossible de lancer le démon ikealightd, vérifiez le log
Bonjour, ce week-end, passage en debian stretch de mon orange pi, installation de ma sauvegarde, réinstallation des dépendances, résultat tout nickel, et qu'elle plaisir de piloter mes stores Ikea via Jeedom. Merci pour tout.
Code : Tout sélectionner
Echec de la requête http : http://127.0.0.1:55025/device/operation?id=65537&type=light&operation=%7B%22onOff%22%3Atrue%7D&apikey=qS1C2Gixv6KLgWC3baKFZBCvDmOGYIZD Curl error : Failed to connect to 127.0.0.1 port 55025: Connection refused
Code : Tout sélectionner
[2019-10-14 18:45:57][INFO] : Lancement démon ikealight : sudo /usr/bin/nodejs /var/www/html/plugins/ikealight/resources/ikealightd/ikealightd.js --loglevel debug --socketport 55025 --callback http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php --apikey qS1C2Gixv6KLgWC3baKFZBCvDmOGYIZD --cycle 0.1 --pid /tmp/jeedom/ikealight/deamon.pid --gatewayip 192.168.1.4 --gatewaycode ****************
[2019-10-14 16:45:58][INFO] : Start ikealightd
[2019-10-14 16:45:58][INFO] : Log level on : debug
[2019-10-14 16:45:58][INFO] : Socket port : 55025
[2019-10-14 16:45:58][INFO] : Gateway ip : 192.168.1.4
[2019-10-14 16:45:58][INFO] : Gateway code : IUdmuqybWAbN6NIU
[2019-10-14 16:45:58][INFO] : PID file : /tmp/jeedom/ikealight/deamon.pid
[2019-10-14 16:45:58][INFO] : Apikey : qS1C2Gixv6KLgWC3baKFZBCvDmOGYIZD
[2019-10-14 16:45:58][INFO] : Callback : http://127.0.0.1:80/plugins/ikealight/core/php/jeeIkealight.php
[2019-10-14 16:45:58][INFO] : Cycle : 0.1
[2019-10-14 16:45:58][INFO] : Start ikealightd
[2019-10-14 16:45:58][INFO] : Ikealightd initialise, try connect...
[2019-10-14 16:45:58][DEBUG] : Authenticate to gateway with : *************
[2019-10-14 16:45:58][DEBUG] : HTTP listen on 127.0.0.1 port : 55025 started
[2019-10-14 18:45:58][DEBUG] : Received message : []
[2019-10-14 16:46:01][ERROR] : Can not connect to gateway : {"code":1}