Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[Plugin Tiers] Plugin Alexa-API

Pour échanger sur les plugins classés en catégorie "Communication"
Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [Plugin Tiers] Plugin Alexa-API

Message par Nebz » 01 mai 2019, 22:27

Denis80 a écrit :c'est le premier, le petit
le plus grand s'appel Portal+
Oui mais sans le type exact c'est compliqué,


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

Avatar de l’utilisateur
Denis80
Timide
Messages : 153
Inscription : 26 août 2014, 15:38
Localisation : Dallas, TX, USA

Re: [Plugin Tiers] Plugin Alexa-API

Message par Denis80 » 01 mai 2019, 22:32

Le type du miens c'est : A3B5K1G3EITBIF
pour celui-ci :
Portal_3.JPG
Portal_3.JPG (15.87 Kio) Consulté 1314 fois
pour celui-là je n'ai pas le type desolé :
Portal_4.JPG
Portal_4.JPG (19.45 Kio) Consulté 1314 fois
Jeedom 3.2.12 en VM+ Mini Zwave en Slave |RFXCom|RFLink|Mi-light|IPX800V3|Alarme| Imperihome|Surveillance Station|mail|IKEA
Modules : 8 ZWave|6 RFXCom|8 Mi-Light RGBW 9W|14 Somfy RTS|8 Camera IP|15 Xiaomi|4 dash bouton

Heracles44
Actif
Messages : 538
Inscription : 23 juil. 2018, 13:06

Re: [Plugin Tiers] Plugin Alexa-API

Message par Heracles44 » 02 mai 2019, 10:06

Bonjour,

Voici ce que j'ai comme erreur le matin à 9:00
2019-05-02 09:00:14 alexaapi Connexion close détectée donc relance de la dernière commande :http://192.168.0.16:3456/volume?value=5 ... 08837213ND
2019-05-02 09:00:08 alexaapi Attention, Connexion close sur Alexa-API, Lien réinitialisé

Idem le soir pour baisser le volume à 30 à 20:00

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [Plugin Tiers] Plugin Alexa-API

Message par Nebz » 02 mai 2019, 10:31

Heracles44 a écrit :
02 mai 2019, 10:06
Bonjour,

Voici ce que j'ai comme erreur le matin à 9:00
2019-05-02 09:00:14 alexaapi Connexion close détectée donc relance de la dernière commande :http://192.168.0.16:3456/volume?value=5 ... 08837213ND
2019-05-02 09:00:08 alexaapi Attention, Connexion close sur Alexa-API, Lien réinitialisé

Idem le soir pour baisser le volume à 30 à 20:00
Bonjour,
oui ce n'est pas une erreur, c'est le contournement que nous avons mis en place pour ce problème de Amazon qui coupe la connexion.
et normalement ca fonctionne... il relance la connexion à Amazon et puis relance la dernière commande, comme on voit dans ton log.
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

Avatar de l’utilisateur
edreams
Actif
Messages : 928
Inscription : 01 déc. 2014, 11:57
Localisation : Près de Montpellier

Re: [Plugin Tiers] Plugin Alexa-API

Message par edreams » 02 mai 2019, 16:48

sigalou a écrit :
01 mai 2019, 21:42
themaire a écrit :
01 mai 2019, 13:38
Bonjour. Je reviens ici puisque j'ai la même problématique.

J'ai ça juste après avoir parlé au groupe dans le log Alexaapi_node si ça peut aider :
Merci, vos logs sont précieux pour trouver d'où vient le souci.
Il ya bien un souci quand on fait parler un groupe, je suis dessus...

Ahhhh me voilà rassuré, ce n'est donc pas un problème spécifique à mon installation.

Un grand merci pour ton travail Sigalou !
* Jeedom VM sur Synology DS916+ 8Go/24To / Zwave AEON GEN5 / RfxTrx433E *

Matériel complet --> http://forum.jeedom.fr/memberlist.php?m ... ile&u=1001 <--

gpga
Actif
Messages : 755
Inscription : 03 mars 2015, 10:29
Localisation : 67 proche de Strasbourg

Re: [Plugin Tiers] Plugin Alexa-API

Message par gpga » 04 mai 2019, 08:02

Bonjour,

après quelques jours de bon fonctionnement suite aux modifications sur le plugin, j'ai de nouveau perdu alexa api ce matin. Je vous met les logs pour analyse.

j'ai relancé les dépendance
j'ai tenteé de recréer le cookie et la j'ai la même erreur que dans le passé ; Failed to connect to 192.168.1.30 port 3456: Connection refused

et impossible de relancer le demon.

Alexa api cookie

Code : Tout sélectionner

Alexa-Remote: Authentication checked: true
Alexa-Remote: No authentication check needed (time elapsed 1)
Alexa-Remote: Sending Request with {"host":"alexa-comms-mobile-service.amazon.com","path":"/accounts","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: [{"commsId":null,"directedId":"amzn1.account.AHIFSDYDUJGWFPBEGNBHPICSQSQQ","phoneCountryCode":null,"phoneNumber":null,"firstName":"Gilles","lastName":"MARTIN","phoneticFirstName":null,"phoneticLastName":null,"commsProvisionStatus":"UNKNOWN","isChild":false,"signedInUser":true,"commsProvisioned":false,"speakerProvisioned":false}]
Alexa-Remote: No authentication check needed (time elapsed 637)
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/devices-v2/device?cached=true&_=1555621726982","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: {"devices":[{"accountName":"Apogee - Echo","appDeviceList":[],"capabilities":["ALLOW_LOG_UPLOAD","PANDORA","EARCONS","CUSTOM_ALARM_TONE","AUDIBLE","PAIR_BT_SOURCE","FLASH_BRIEFING","AUDIO_PLAYER","I_HEART_RADIO","TIMERS_ALARMS_NOTIFICATIONS_VOLUME","POPTART","GOLDFISH","TUPLE_CATEGORY_A","SLEEP","TUPLE","MUSIC_SKILL","DEREGISTER_FACTORY_RESET","CHANGE_NAME","SOUND_SETTINGS","PAIR_BT_SINK","SUPPORT_CALENDAR_ALERT","DEREGISTER_DEVICE","KINDLE_BOOKS","PERSISTENT_CONNECTION","SUPPORTS_CONNECTED_HOME_CLOUD_ONLY","TUNE_IN","AMAZON_MUSIC","GADGETS","DREAM_TRAINING","DS_VOLUME_SETTING","VOLUME_SETTING","ASCENDING_ALARM_VOLUME","FAR_FIELD_WAKE_WORD","VOICE_TRAINING","MICROPHONE","SALMON","TAHOE_BYOD","PAIR_REMOTE","SUPPORTS_SOFTWARE_VERSION","SET_LOCALE","REMINDERS","UPDATE_WIFI","LEMUR_ALPHA","TIMERS_AND_ALARMS","ACTIVE_AFTER_FRO","REQUIRES_OOBE_FOR_SETUP"],"charging":null,"clusterMembers":[],"deviceAccountId":"A077125722WFURGHWCQAU","deviceFamily":"ECHO","deviceOwnerCustomerId":"A5CT8A6PE5GV7","deviceType":"A7WXQPH584YP","deviceTypeFriendlyName":null,"essid":null,"language":null,"macAddress":null,"online":true,"parentClusters":[],"postalCode":null,"registrationId":null,"remainingBatteryLevel":null,"serialNumber":"G090P308821404M3","softwareVersion":"635559320"},{"accountName":"Sdbains","appDeviceList":[],"capabilities":["AMAZON_MUSIC","PANDORA","VOLUME_SETTING","MUSIC_SKILL","CHANGE_NAME","REMINDERS","SUPPORTS_CONNECTED_HOME_CLOUD_ONLY","AUDIO_PLAYER","TUNE_IN","PEONY","I_HEART_RADIO"],"charging":null,"clusterMembers":[],"deviceAccountId":"A01162373QA2LRLNEVZ9N","deviceFamily":"THIRD_PARTY_AVS_MEDIA_DISPLAY","deviceOwnerCustomerId":"A5CT8A6PE5GV7","deviceType":"A15ERDAKK5HQQG","deviceTypeFriendlyName":"Sonos","essid":null,"language":null,"macAddress":null,"online":true,"parentClusters":[],"postalCode":null,"registrationId":null,"remainingBatteryLevel":null,"serialNumber":"be8cbbe379d24d5b8f5fa3d3b18dd469","softwareVersion":"0"},{"accountName":"This Device","appDeviceList":[{"deviceAccountId":"A01234333L9CS926O12HR","deviceType":"A2IVLV5VM2W81","serialNumber":"77c5e4feb41560cb1ba2f1f3fe92ea21"},{"deviceAccountId":"A01259112BKX8IN9Y6RM1","deviceType":"A2IVLV5VM2W81","serialNumber":"2d56917dd785d6d87e81e13f0defa453"},{"deviceAccountId":"A098298933GPT18U2V68S","deviceType":"A2IVLV5VM2W81","serialNumber":"20c5fedebc132cf700275b3cdc04fcfd"},{"deviceAccountId":"A03451123DJOP07058X9M","deviceType":"A2IVLV5VM2W81","serialNumber":"e40b2643cb9b1cbb1e3a135be6c9d36e"}],"capabilities":["VOLUME_SETTING","REMINDERS","MICROPHONE"],"charging":null,"clusterMembers":[],"deviceAccountId":"A01234333L9CS926O12HR","deviceFamily":"VOX","deviceOwnerCustomerId":"A5CT8A6PE5GV7","deviceType":"A2IVLV5VM2W81","deviceTypeFriendlyName":null,"essid":null,"language":null,"macAddress":null,"online":true,"parentClusters":[],"postalCode":null,"registrationId":null,"remainingBatteryLevel":null,"serialNumber":"77c5e4feb41560cb1ba2f1f3fe92ea21","softwareVersion":"1"}]}
Alexa-Remote: No authentication check needed (time elapsed 1626)
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/wake-word?_=1555621727971","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: {"wakeWords":[{"active":true,"deviceSerialNumber":"G090P308821404M3","deviceType":"A7WXQPH584YP","midFieldState":null,"wakeWord":"ALEXA"}]}
Alexa-Remote: No authentication check needed (time elapsed 2080)
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/notifications?cached=true&_=1555621728425","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: {"notifications":[]}
Alexa-Config (initCookie.js): amazonserver=amazon.fr
Alexa-Config (initCookie.js): alexaserver=alexa.amazon.fr
initCookie - Cookie successfully retrieved from Amazon
initCookie - Cookie saved to:/var/www/html/plugins/alexaapi/resources/data/alexa-cookie.json
[2019-05-04 07:43:51][INFO] : Lancement du démon cookie
[2019-05-04 07:43:51][INFO] : Démon cookie lancé
/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:80
httpsGetCall(path,callback,flags={}){let options={host:this.baseUrl,path:'',method:'GET',timeout:10000,headers:{'User-Agent':this._options.userAgent,'Content-Type':'application/json; charset=UTF-8','Referer':`https:'Origin':`https:'Content-Type':'application/json','csrf':this.csrf,'Cookie':this.cookie}};path=path.replace(/[
]/g,'');if(!path.startsWith('/')){path=path.replace(/^https:\/\//,'');let ar=path.match(/^([^\/]+)([\/]*.*$)/);options.host=ar[1];path=ar[2];}else{options.host=this.baseUrl;}
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/alexaapi/resources/initCookie.js:1:73)
Alexa api node

Code : Tout sélectionner

[2019-5-4 06:00:02] Alexa-API: checkAuth
[2019-5-4 06:00:02] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/bootstrap?version=0","method":"GET","timeout":10000,"headers":{}}
[2019-5-4 06:00:03] Alexa-Remote: Response: {"authentication":{"authenticated":true,"canAccessPrimeMusicContent":false,"customerEmail":"apogee.conseil@gmail.com","customerId":"A5CT8A6PE5GV7","customerName":"Apogee"}}
[2019-5-4 06:00:03] Alexa-API: routines
[2019-5-4 06:00:03] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/bootstrap?version=0","method":"GET","timeout":10000,"headers":{}}
[2019-5-4 06:00:04] Alexa-Remote: Response: {"authentication":{"authenticated":true,"canAccessPrimeMusicContent":false,"customerEmail":"apogee.conseil@gmail.com","customerId":"A5CT8A6PE5GV7","customerName":"Apogee"}}
[2019-5-4 06:00:04] Alexa-Remote: Authentication check successfull
[2019-5-4 06:00:04] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/automations?limit=2000","method":"GET","timeout":10000,"headers":{}}



[2019-5-4 06:30:03] Alexa-API: routines
[2019-5-4 06:30:03] Alexa-Remote: No authentication check needed (time elapsed 427)
[2019-5-4 06:30:03] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/automations?limit=2000","method":"GET","timeout":10000,"headers":{}}
[2019-5-4 06:30:04] Alexa-Remote: Response: [{"@type":"com.amazon.alexa.behaviors.model.Automation","automationId":"amzn1.alexa.automation.1032a6b5-33f8-4498-9405-e73933d3f1f5","name":null,"triggers":[{"payload":{"customerId":"A5CT8A6PE5GV7","utterance":"Bonne nuit","locale":"fr-FR","marketplaceId":"A13V1IB3VIYZZH"},"id":"amzn1.alexa.trigger.5b56a7d2-a7f3-4995-9ef9-6657f2d8d6c7","type":"CustomUtterance","timeLapse":null}],"sequence":{"@type":"com.amazon.alexa.behaviors.model.Sequence","sequenceId":"amzn1.alexa.sequence.1c1647bb-cd92-48b4-9ac4-1359230e6984","startNode":{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.ParallelNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"sceneActivate","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"target":"07252f58-44ca-4fef-8fd0-2c5bbebef865","customerId":"A5CT8A6PE5GV7","operationId":"sceneActivate"},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"Alexa.CannedTts.Speak","skillId":"amzn1.ask.1p.saysomething","operationPayload":{"deviceType":"ALEXA_CURRENT_DEVICE_TYPE","deviceSerialNumber":"ALEXA_CURRENT_DSN","customerId":"A5CT8A6PE5GV7","locale":"fr-FR","cannedTtsStringId":"alexa.cannedtts.speak.curatedtts-category-goodnight/alexa.cannedtts.speak.curatedtts-random"},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.ParallelNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"a388df5a-b62d-41bb-a878-2ba04055539d","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"a388df5a-b62d-41bb-a878-2ba04055539d","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"002dac6f-ae32-4aef-9d7f-dc1c3508002c","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"002dac6f-ae32-4aef-9d7f-dc1c3508002c","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"142c39cd-1733-43b9-95e4-ad3b35d35be5","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"142c39cd-1733-43b9-95e4-ad3b35d35be5","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"a22d1392-1539-495d-9e84-05cfee8d7b4d","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"a22d1392-1539-495d-9e84-05cfee8d7b4d","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"c68c463a-0501-47c0-ba6f-e78c74d72075","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"c68c463a-0501-47c0-ba6f-e78c74d72075","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"832ec522-edde-46a5-85d2-63d841219a72","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"832ec522-edde-46a5-85d2-63d841219a72","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"ab73ef64-7f27-4897-b282-cff2d5b3fe8d","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"ab73ef64-7f27-4897-b282-cff2d5b3fe8d","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"2adbb434-558c-4f9b-9e34-1844d13c12a2","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"2adbb434-558c-4f9b-9e34-1844d13c12a2","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"880a6665-73db-40d1-8880-0ae03d4977a1","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"880a6665-73db-40d1-8880-0ae03d4977a1","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"8f5e6d0f-3c49-4b77-aa6f-3ecb7c1fbd77","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"8f5e6d0f-3c49-4b77-aa6f-3ecb7c1fbd77","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"fd8d7a9f-d419-482a-acaf-8900f0a79787","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"fd8d7a9f-d419-482a-acaf-8900f0a79787","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"031123db-60aa-4eee-913d-17f2beb073a4","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"031123db-60aa-4eee-913d-17f2beb073a4","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"ef5c7047-267e-4ec6-948f-b086b4e02ea0","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"ef5c7047-267e-4ec6-948f-b086b4e02ea0","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"bf878ae5-873e-4ea6-807c-00b38a9291e9","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"bf878ae5-873e-4ea6-807c-00b38a9291e9","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"1f1c5cf8-2a87-4ae3-85f9-790f743ddcdc","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"1f1c5cf8-2a87-4ae3-85f9-790f743ddcdc","operationId":"setBrightness","brightness":0},"name":null}]}]}]}},"condition":null,"status":"ENABLED","creationTimeEpochMillis":1556400806618,"lastUpdatedTimeEpochMillis":1556400815462},{"@type":"com.amazon.alexa.behaviors.model.Automation","automationId":"amzn1.alexa.automation.8b4b42b0-8469-408c-a3d6-d7fc2c8e3233","name":null,"triggers":[{"payload":{"customerId":"A5CT8A6PE5GV7","utterance":"bonjour","locale":"fr-FR","marketplaceId":"A13V1IB3VIYZZH"},"id":"amzn1.alexa.trigger.efd0e51d-f014-4d6d-a156-23a2fdd187a6","type":"CustomUtterance","timeLapse":null}],"sequence":{"@type":"com.amazon.alexa.behaviors.model.Sequence","sequenceId":"amzn1.alexa.sequence.57034358-f448-4018-8572-4bd73e9732ee","startNode":{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.ParallelNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"sceneActivate","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"target":"1483b469-0470-47fc-a964-bb3d1a0bfe5e","customerId":"A5CT8A6PE5GV7","operationId":"sceneActivate"},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"Alexa.GoodMorning.Play","skillId":"amzn1.ask.1p.saysomething","operationPayload":{"deviceType":"ALEXA_CURRENT_DEVICE_TYPE","deviceSerialNumber":"ALEXA_CURRENT_DSN","customerId":"A5CT8A6PE5GV7","locale":"fr-FR"},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"Alexa.Weather.Play","skillId":"amzn1.ask.1p.weather","operationPayload":{"deviceType":"ALEXA_CURRENT_DEVICE_TYPE","deviceSerialNumber":"ALEXA_CURRENT_DSN","customerId":"A5CT8A6PE5GV7","locale":"fr-FR"},"name":null}]}},"condition":null,"status":"ENABLED","creationTimeEpochMillis":1556400878337,"lastUpdatedTimeEpochMillis":1556400932887}]
[2019-5-4 06:30:04] Alexa-API: routines
[2019-5-4 06:30:04] Alexa-Remote: No authentication check needed (time elapsed 1018)
[2019-5-4 06:30:04] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/automations?limit=2000","method":"GET","timeout":10000,"headers":{}}
[2019-5-4 06:30:05] Alexa-Remote: Response: {"message":"Rate Exceeded"}
[2019-5-4 06:30:05] Alexa-API: routines
[2019-5-4 06:30:05] Alexa-Remote: No authentication check needed (time elapsed 2528)
[2019-5-4 06:30:05] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/automations?limit=2000","method":"GET","timeout":10000,"headers":{}}
[2019-5-4 06:30:06] Alexa-Remote: Response: {"message":null}
/var/www/html/plugins/alexaapi/resources/alexaapi.js:723
if (routine.status === 'ENABLED') {
^
TypeError: Cannot read property 'status' of null
at /var/www/html/plugins/alexaapi/resources/alexaapi.js:723:17
at getAutomationRoutines (/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:1482:23)
at IncomingMessage.res.on (/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:537:40)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: 'nodejs': No such file or directory
/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:80
httpsGetCall(path,callback,flags={}){let options={host:this.baseUrl,path:'',method:'GET',timeout:10000,headers:{'User-Agent':this._options.userAgent,'Content-Type':'application/json; charset=UTF-8','Referer':`https:'Origin':`https:'Content-Type':'application/json','csrf':this.csrf,'Cookie':this.cookie}};path=path.replace(/[
]/g,'');if(!path.startsWith('/')){path=path.replace(/^https:\/\//,'');let ar=path.match(/^([^\/]+)([\/]*.*$)/);options.host=ar[1];path=ar[2];}else{options.host=this.baseUrl;}
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/alexaapi/resources/alexaapi.js:1:131)
/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:80
httpsGetCall(path,callback,flags={}){let options={host:this.baseUrl,path:'',method:'GET',timeout:10000,headers:{'User-Agent':this._options.userAgent,'Content-Type':'application/json; charset=UTF-8','Referer':`https:'Origin':`https:'Content-Type':'application/json','csrf':this.csrf,'Cookie':this.cookie}};path=path.replace(/[
]/g,'');if(!path.startsWith('/')){path=path.replace(/^https:\/\//,'');let ar=path.match(/^([^\/]+)([\/]*.*$)/);options.host=ar[1];path=ar[2];}else{options.host=this.baseUrl;}
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/alexaapi/resources/alexaapi.js:1:131)
1x Nuc I3 cible / Stick Aeon Gen5 / +- 30 modules Zwave / 7 cameras (Surveillance station)
1 x RPi2 source / Teleinfo USB
1 x Odroid C2 / Stick Aeon Gen 5 / 10 modules Zwave

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [Plugin Tiers] Plugin Alexa-API

Message par Nebz » 04 mai 2019, 09:13

gpga a écrit :Bonjour,

après quelques jours de bon fonctionnement suite aux modifications sur le plugin, j'ai de nouveau perdu alexa api ce matin. Je vous met les logs pour analyse.

j'ai relancé les dépendance
j'ai tenteé de recréer le cookie et la j'ai la même erreur que dans le passé ; Failed to connect to 192.168.1.30 port 3456: Connection refused

et impossible de relancer le demon.

Alexa api cookie

Code : Tout sélectionner

Alexa-Remote: Authentication checked: true
Alexa-Remote: No authentication check needed (time elapsed 1)
Alexa-Remote: Sending Request with {"host":"alexa-comms-mobile-service.amazon.com","path":"/accounts","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: [{"commsId":null,"directedId":"amzn1.account.AHIFSDYDUJGWFPBEGNBHPICSQSQQ","phoneCountryCode":null,"phoneNumber":null,"firstName":"Gilles","lastName":"MARTIN","phoneticFirstName":null,"phoneticLastName":null,"commsProvisionStatus":"UNKNOWN","isChild":false,"signedInUser":true,"commsProvisioned":false,"speakerProvisioned":false}]
Alexa-Remote: No authentication check needed (time elapsed 637)
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/devices-v2/device?cached=true&_=1555621726982","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: {"devices":[{"accountName":"Apogee - Echo","appDeviceList":[],"capabilities":["ALLOW_LOG_UPLOAD","PANDORA","EARCONS","CUSTOM_ALARM_TONE","AUDIBLE","PAIR_BT_SOURCE","FLASH_BRIEFING","AUDIO_PLAYER","I_HEART_RADIO","TIMERS_ALARMS_NOTIFICATIONS_VOLUME","POPTART","GOLDFISH","TUPLE_CATEGORY_A","SLEEP","TUPLE","MUSIC_SKILL","DEREGISTER_FACTORY_RESET","CHANGE_NAME","SOUND_SETTINGS","PAIR_BT_SINK","SUPPORT_CALENDAR_ALERT","DEREGISTER_DEVICE","KINDLE_BOOKS","PERSISTENT_CONNECTION","SUPPORTS_CONNECTED_HOME_CLOUD_ONLY","TUNE_IN","AMAZON_MUSIC","GADGETS","DREAM_TRAINING","DS_VOLUME_SETTING","VOLUME_SETTING","ASCENDING_ALARM_VOLUME","FAR_FIELD_WAKE_WORD","VOICE_TRAINING","MICROPHONE","SALMON","TAHOE_BYOD","PAIR_REMOTE","SUPPORTS_SOFTWARE_VERSION","SET_LOCALE","REMINDERS","UPDATE_WIFI","LEMUR_ALPHA","TIMERS_AND_ALARMS","ACTIVE_AFTER_FRO","REQUIRES_OOBE_FOR_SETUP"],"charging":null,"clusterMembers":[],"deviceAccountId":"A077125722WFURGHWCQAU","deviceFamily":"ECHO","deviceOwnerCustomerId":"A5CT8A6PE5GV7","deviceType":"A7WXQPH584YP","deviceTypeFriendlyName":null,"essid":null,"language":null,"macAddress":null,"online":true,"parentClusters":[],"postalCode":null,"registrationId":null,"remainingBatteryLevel":null,"serialNumber":"G090P308821404M3","softwareVersion":"635559320"},{"accountName":"Sdbains","appDeviceList":[],"capabilities":["AMAZON_MUSIC","PANDORA","VOLUME_SETTING","MUSIC_SKILL","CHANGE_NAME","REMINDERS","SUPPORTS_CONNECTED_HOME_CLOUD_ONLY","AUDIO_PLAYER","TUNE_IN","PEONY","I_HEART_RADIO"],"charging":null,"clusterMembers":[],"deviceAccountId":"A01162373QA2LRLNEVZ9N","deviceFamily":"THIRD_PARTY_AVS_MEDIA_DISPLAY","deviceOwnerCustomerId":"A5CT8A6PE5GV7","deviceType":"A15ERDAKK5HQQG","deviceTypeFriendlyName":"Sonos","essid":null,"language":null,"macAddress":null,"online":true,"parentClusters":[],"postalCode":null,"registrationId":null,"remainingBatteryLevel":null,"serialNumber":"be8cbbe379d24d5b8f5fa3d3b18dd469","softwareVersion":"0"},{"accountName":"This Device","appDeviceList":[{"deviceAccountId":"A01234333L9CS926O12HR","deviceType":"A2IVLV5VM2W81","serialNumber":"77c5e4feb41560cb1ba2f1f3fe92ea21"},{"deviceAccountId":"A01259112BKX8IN9Y6RM1","deviceType":"A2IVLV5VM2W81","serialNumber":"2d56917dd785d6d87e81e13f0defa453"},{"deviceAccountId":"A098298933GPT18U2V68S","deviceType":"A2IVLV5VM2W81","serialNumber":"20c5fedebc132cf700275b3cdc04fcfd"},{"deviceAccountId":"A03451123DJOP07058X9M","deviceType":"A2IVLV5VM2W81","serialNumber":"e40b2643cb9b1cbb1e3a135be6c9d36e"}],"capabilities":["VOLUME_SETTING","REMINDERS","MICROPHONE"],"charging":null,"clusterMembers":[],"deviceAccountId":"A01234333L9CS926O12HR","deviceFamily":"VOX","deviceOwnerCustomerId":"A5CT8A6PE5GV7","deviceType":"A2IVLV5VM2W81","deviceTypeFriendlyName":null,"essid":null,"language":null,"macAddress":null,"online":true,"parentClusters":[],"postalCode":null,"registrationId":null,"remainingBatteryLevel":null,"serialNumber":"77c5e4feb41560cb1ba2f1f3fe92ea21","softwareVersion":"1"}]}
Alexa-Remote: No authentication check needed (time elapsed 1626)
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/wake-word?_=1555621727971","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: {"wakeWords":[{"active":true,"deviceSerialNumber":"G090P308821404M3","deviceType":"A7WXQPH584YP","midFieldState":null,"wakeWord":"ALEXA"}]}
Alexa-Remote: No authentication check needed (time elapsed 2080)
Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/notifications?cached=true&_=1555621728425","method":"GET","timeout":10000,"headers":{}}
Alexa-Remote: Response: {"notifications":[]}
Alexa-Config (initCookie.js): amazonserver=amazon.fr
Alexa-Config (initCookie.js): alexaserver=alexa.amazon.fr
initCookie - Cookie successfully retrieved from Amazon
initCookie - Cookie saved to:/var/www/html/plugins/alexaapi/resources/data/alexa-cookie.json
[2019-05-04 07:43:51][INFO] : Lancement du démon cookie
[2019-05-04 07:43:51][INFO] : Démon cookie lancé
/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:80
httpsGetCall(path,callback,flags={}){let options={host:this.baseUrl,path:'',method:'GET',timeout:10000,headers:{'User-Agent':this._options.userAgent,'Content-Type':'application/json; charset=UTF-8','Referer':`https:'Origin':`https:'Content-Type':'application/json','csrf':this.csrf,'Cookie':this.cookie}};path=path.replace(/[
]/g,'');if(!path.startsWith('/')){path=path.replace(/^https:\/\//,'');let ar=path.match(/^([^\/]+)([\/]*.*$)/);options.host=ar[1];path=ar[2];}else{options.host=this.baseUrl;}
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/alexaapi/resources/initCookie.js:1:73)
Alexa api node

Code : Tout sélectionner

[2019-5-4 06:00:02] Alexa-API: checkAuth
[2019-5-4 06:00:02] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/bootstrap?version=0","method":"GET","timeout":10000,"headers":{}}
[2019-5-4 06:00:03] Alexa-Remote: Response: {"authentication":{"authenticated":true,"canAccessPrimeMusicContent":false,"customerEmail":"apogee.conseil@gmail.com","customerId":"A5CT8A6PE5GV7","customerName":"Apogee"}}
[2019-5-4 06:00:03] Alexa-API: routines
[2019-5-4 06:00:03] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/bootstrap?version=0","method":"GET","timeout":10000,"headers":{}}
[2019-5-4 06:00:04] Alexa-Remote: Response: {"authentication":{"authenticated":true,"canAccessPrimeMusicContent":false,"customerEmail":"apogee.conseil@gmail.com","customerId":"A5CT8A6PE5GV7","customerName":"Apogee"}}
[2019-5-4 06:00:04] Alexa-Remote: Authentication check successfull
[2019-5-4 06:00:04] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/automations?limit=2000","method":"GET","timeout":10000,"headers":{}}



[2019-5-4 06:30:03] Alexa-API: routines
[2019-5-4 06:30:03] Alexa-Remote: No authentication check needed (time elapsed 427)
[2019-5-4 06:30:03] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/automations?limit=2000","method":"GET","timeout":10000,"headers":{}}
[2019-5-4 06:30:04] Alexa-Remote: Response: [{"@type":"com.amazon.alexa.behaviors.model.Automation","automationId":"amzn1.alexa.automation.1032a6b5-33f8-4498-9405-e73933d3f1f5","name":null,"triggers":[{"payload":{"customerId":"A5CT8A6PE5GV7","utterance":"Bonne nuit","locale":"fr-FR","marketplaceId":"A13V1IB3VIYZZH"},"id":"amzn1.alexa.trigger.5b56a7d2-a7f3-4995-9ef9-6657f2d8d6c7","type":"CustomUtterance","timeLapse":null}],"sequence":{"@type":"com.amazon.alexa.behaviors.model.Sequence","sequenceId":"amzn1.alexa.sequence.1c1647bb-cd92-48b4-9ac4-1359230e6984","startNode":{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.ParallelNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"sceneActivate","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"target":"07252f58-44ca-4fef-8fd0-2c5bbebef865","customerId":"A5CT8A6PE5GV7","operationId":"sceneActivate"},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"Alexa.CannedTts.Speak","skillId":"amzn1.ask.1p.saysomething","operationPayload":{"deviceType":"ALEXA_CURRENT_DEVICE_TYPE","deviceSerialNumber":"ALEXA_CURRENT_DSN","customerId":"A5CT8A6PE5GV7","locale":"fr-FR","cannedTtsStringId":"alexa.cannedtts.speak.curatedtts-category-goodnight/alexa.cannedtts.speak.curatedtts-random"},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.ParallelNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"a388df5a-b62d-41bb-a878-2ba04055539d","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"a388df5a-b62d-41bb-a878-2ba04055539d","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"002dac6f-ae32-4aef-9d7f-dc1c3508002c","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"002dac6f-ae32-4aef-9d7f-dc1c3508002c","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"142c39cd-1733-43b9-95e4-ad3b35d35be5","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"142c39cd-1733-43b9-95e4-ad3b35d35be5","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"a22d1392-1539-495d-9e84-05cfee8d7b4d","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"a22d1392-1539-495d-9e84-05cfee8d7b4d","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"c68c463a-0501-47c0-ba6f-e78c74d72075","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"c68c463a-0501-47c0-ba6f-e78c74d72075","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"832ec522-edde-46a5-85d2-63d841219a72","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"832ec522-edde-46a5-85d2-63d841219a72","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"ab73ef64-7f27-4897-b282-cff2d5b3fe8d","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"ab73ef64-7f27-4897-b282-cff2d5b3fe8d","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"2adbb434-558c-4f9b-9e34-1844d13c12a2","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"2adbb434-558c-4f9b-9e34-1844d13c12a2","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"880a6665-73db-40d1-8880-0ae03d4977a1","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"880a6665-73db-40d1-8880-0ae03d4977a1","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"8f5e6d0f-3c49-4b77-aa6f-3ecb7c1fbd77","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"8f5e6d0f-3c49-4b77-aa6f-3ecb7c1fbd77","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"fd8d7a9f-d419-482a-acaf-8900f0a79787","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"fd8d7a9f-d419-482a-acaf-8900f0a79787","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"031123db-60aa-4eee-913d-17f2beb073a4","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"031123db-60aa-4eee-913d-17f2beb073a4","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"ef5c7047-267e-4ec6-948f-b086b4e02ea0","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"ef5c7047-267e-4ec6-948f-b086b4e02ea0","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"bf878ae5-873e-4ea6-807c-00b38a9291e9","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"bf878ae5-873e-4ea6-807c-00b38a9291e9","operationId":"setBrightness","brightness":0},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"turnOff","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"1f1c5cf8-2a87-4ae3-85f9-790f743ddcdc","operationId":"turnOff"},"name":null},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"setBrightness","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"customerId":"A5CT8A6PE5GV7","target":"1f1c5cf8-2a87-4ae3-85f9-790f743ddcdc","operationId":"setBrightness","brightness":0},"name":null}]}]}]}},"condition":null,"status":"ENABLED","creationTimeEpochMillis":1556400806618,"lastUpdatedTimeEpochMillis":1556400815462},{"@type":"com.amazon.alexa.behaviors.model.Automation","automationId":"amzn1.alexa.automation.8b4b42b0-8469-408c-a3d6-d7fc2c8e3233","name":null,"triggers":[{"payload":{"customerId":"A5CT8A6PE5GV7","utterance":"bonjour","locale":"fr-FR","marketplaceId":"A13V1IB3VIYZZH"},"id":"amzn1.alexa.trigger.efd0e51d-f014-4d6d-a156-23a2fdd187a6","type":"CustomUtterance","timeLapse":null}],"sequence":{"@type":"com.amazon.alexa.behaviors.model.Sequence","sequenceId":"amzn1.alexa.sequence.57034358-f448-4018-8572-4bd73e9732ee","startNode":{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.ParallelNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.SerialNode","name":null,"nodesToExecute":[{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"sceneActivate","skillId":"amzn1.ask.1p.smarthome","operationPayload":{"target":"1483b469-0470-47fc-a964-bb3d1a0bfe5e","customerId":"A5CT8A6PE5GV7","operationId":"sceneActivate"},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"Alexa.GoodMorning.Play","skillId":"amzn1.ask.1p.saysomething","operationPayload":{"deviceType":"ALEXA_CURRENT_DEVICE_TYPE","deviceSerialNumber":"ALEXA_CURRENT_DSN","customerId":"A5CT8A6PE5GV7","locale":"fr-FR"},"name":null}]},{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"Alexa.Weather.Play","skillId":"amzn1.ask.1p.weather","operationPayload":{"deviceType":"ALEXA_CURRENT_DEVICE_TYPE","deviceSerialNumber":"ALEXA_CURRENT_DSN","customerId":"A5CT8A6PE5GV7","locale":"fr-FR"},"name":null}]}},"condition":null,"status":"ENABLED","creationTimeEpochMillis":1556400878337,"lastUpdatedTimeEpochMillis":1556400932887}]
[2019-5-4 06:30:04] Alexa-API: routines
[2019-5-4 06:30:04] Alexa-Remote: No authentication check needed (time elapsed 1018)
[2019-5-4 06:30:04] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/automations?limit=2000","method":"GET","timeout":10000,"headers":{}}
[2019-5-4 06:30:05] Alexa-Remote: Response: {"message":"Rate Exceeded"}
[2019-5-4 06:30:05] Alexa-API: routines
[2019-5-4 06:30:05] Alexa-Remote: No authentication check needed (time elapsed 2528)
[2019-5-4 06:30:05] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/automations?limit=2000","method":"GET","timeout":10000,"headers":{}}
[2019-5-4 06:30:06] Alexa-Remote: Response: {"message":null}
/var/www/html/plugins/alexaapi/resources/alexaapi.js:723
if (routine.status === 'ENABLED') {
^
TypeError: Cannot read property 'status' of null
at /var/www/html/plugins/alexaapi/resources/alexaapi.js:723:17
at getAutomationRoutines (/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:1482:23)
at IncomingMessage.res.on (/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:537:40)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: « nodejs »: Aucun fichier ou dossier de ce type
nice: 'nodejs': No such file or directory
/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:80
httpsGetCall(path,callback,flags={}){let options={host:this.baseUrl,path:'',method:'GET',timeout:10000,headers:{'User-Agent':this._options.userAgent,'Content-Type':'application/json; charset=UTF-8','Referer':`https:'Origin':`https:'Content-Type':'application/json','csrf':this.csrf,'Cookie':this.cookie}};path=path.replace(/[
]/g,'');if(!path.startsWith('/')){path=path.replace(/^https:\/\//,'');let ar=path.match(/^([^\/]+)([\/]*.*$)/);options.host=ar[1];path=ar[2];}else{options.host=this.baseUrl;}
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/alexaapi/resources/alexaapi.js:1:131)
/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:80
httpsGetCall(path,callback,flags={}){let options={host:this.baseUrl,path:'',method:'GET',timeout:10000,headers:{'User-Agent':this._options.userAgent,'Content-Type':'application/json; charset=UTF-8','Referer':`https:'Origin':`https:'Content-Type':'application/json','csrf':this.csrf,'Cookie':this.cookie}};path=path.replace(/[
]/g,'');if(!path.startsWith('/')){path=path.replace(/^https:\/\//,'');let ar=path.match(/^([^\/]+)([\/]*.*$)/);options.host=ar[1];path=ar[2];}else{options.host=this.baseUrl;}
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/alexaapi/resources/alexaapi.js:1:131)
Reboot


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [Plugin Tiers] Plugin Alexa-API

Message par Nebz » 04 mai 2019, 09:14

Ah non tu as cassé tes dépendances, fallait pas les remettre... fait la réparation


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

champi
Timide
Messages : 3
Inscription : 04 mai 2019, 16:00

Re: [Plugin Tiers] Plugin Alexa-API

Message par champi » 04 mai 2019, 16:17

Bonjour,
étant sous jessie sur RPI2, je me retrouve confronté au problème d'installation des dépendances dont nodeJS.
(si j'ai bien compris, problème de signature)
Je n'ai pas le fichier :
/etc/apt/sources.list.d/jeedom.list
dans ce post, Nebz parle d'une méthode pour palier à ce problème, quelqu'un pourrait-il m'aider ?
Merci

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [Plugin Tiers] Plugin Alexa-API

Message par Nebz » 04 mai 2019, 16:21

champi a écrit :Bonjour,
étant sous jessie sur RPI2, je me retrouve confronté au problème d'installation des dépendances dont nodeJS.
(si j'ai bien compris, problème de signature)
Je n'ai pas le fichier :
/etc/apt/sources.list.d/jeedom.list
dans ce post, Nebz parle d'une méthode pour palier à ce problème, quelqu'un pourrait-il m'aider ?
Merci
Hello,
Oui mais tu peux montrer ton Log de dépendances ? Que je vois si c'est idem


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

champi
Timide
Messages : 3
Inscription : 04 mai 2019, 16:00

Re: [Plugin Tiers] Plugin Alexa-API

Message par champi » 04 mai 2019, 16:25

Oui, avec plaisir ;-)

Code : Tout sélectionner

--0%
--10%
Lancement de l'installation/mise à jour des dépendances
--20%
E: The method driver /usr/lib/apt/methods/https could not be found.
--30%
Version actuelle :
--40%
KO, version obsolète à upgrader
Suppression du Nodejs existant et installation du paquet recommandé
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodejs' is not installed, so not removed
Package 'npm' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 196 not upgraded.
--45%
Utilisation du dépot officiel
## Installing the NodeSource Node.js 8.x LTS Carbon repo...
## Populating apt-get cache...
+ apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.
Error executing command, exiting
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libc-ares2 libv8-3.14.5
The following NEW packages will be installed:
libc-ares2 libv8-3.14.5 nodejs
0 upgraded, 3 newly installed, 0 to remove and 196 not upgraded.
Need to get 0 B/1,768 kB of archives.
After this operation, 6,431 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libc-ares2 libv8-3.14.5 nodejs
E: There are problems and -y was used without --force-yes
/var/www/html/plugins/alexaapi/resources/nodejs.sh: line 128: npm: command not found
/var/www/html/plugins/alexaapi/resources/nodejs.sh: line 130: nodejs: command not found
Version actuelle :
--50%
--60%
Installation...
sudo: npm: command not found
chown: cannot access ‘node_modules’: No such file or directory
--95%
--100%
Installation des dépendances alexaapi terminée, vérifiez qu'il n'y a pas d'erreur

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [Plugin Tiers] Plugin Alexa-API

Message par Nebz » 04 mai 2019, 16:27

champi a écrit :Oui, avec plaisir ;-)

Code : Tout sélectionner

--0%
--10%
Lancement de l'installation/mise à jour des dépendances
--20%
E: The method driver /usr/lib/apt/methods/https could not be found.
--30%
Version actuelle :
--40%
KO, version obsolète à upgrader
Suppression du Nodejs existant et installation du paquet recommandé
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodejs' is not installed, so not removed
Package 'npm' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 196 not upgraded.
--45%
Utilisation du dépot officiel
## Installing the NodeSource Node.js 8.x LTS Carbon repo...
## Populating apt-get cache...
+ apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.
Error executing command, exiting
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libc-ares2 libv8-3.14.5
The following NEW packages will be installed:
libc-ares2 libv8-3.14.5 nodejs
0 upgraded, 3 newly installed, 0 to remove and 196 not upgraded.
Need to get 0 B/1,768 kB of archives.
After this operation, 6,431 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libc-ares2 libv8-3.14.5 nodejs
E: There are problems and -y was used without --force-yes
/var/www/html/plugins/alexaapi/resources/nodejs.sh: line 128: npm: command not found
/var/www/html/plugins/alexaapi/resources/nodejs.sh: line 130: nodejs: command not found
Version actuelle :
--50%
--60%
Installation...
sudo: npm: command not found
chown: cannot access ‘node_modules’: No such file or directory
--95%
--100%
Installation des dépendances alexaapi terminée, vérifiez qu'il n'y a pas d'erreur
Ouh là, tu as surtout un gros problème dans ton apt-get !!!

Si j'étais toi je réinstallerais mon système ...


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

champi
Timide
Messages : 3
Inscription : 04 mai 2019, 16:00

Re: [Plugin Tiers] Plugin Alexa-API

Message par champi » 04 mai 2019, 16:36

c'est depuis que j'ai essayé d'installer nodeJS manuellement, je n'avais pas ces erreurs avant...
je n'avais que :
WARNING: The following packages cannot be authenticated!
et
sudo: npm: command not found

edit : bon visiblement j'ai réussi à installer les dépendances, j'avais bien en amont un problème aptitude, réparé pour info avec :

Code : Tout sélectionner

sudo apt-get install apt-transport-https
Merci à toi Nebz ! ;-)

gpga
Actif
Messages : 755
Inscription : 03 mars 2015, 10:29
Localisation : 67 proche de Strasbourg

Re: [Plugin Tiers] Plugin Alexa-API

Message par gpga » 04 mai 2019, 22:08

Bonsoir,

suite à vos conseils, j'ai rebooté, pas d'amélioration,
j'ai fais la reparation de nodejs, j'ai essayé de recréer le cookie, mais j'ai l'erreur d'accès à l'adresse IP
au bout de 4 tentatives le message 'bravo cookie ...' apparait, mais impossible de lancer le démon

ci joint les log

Alexa api cookie

Code : Tout sélectionner

[2019-05-04 22:02:23][INFO] : Lancement du démon cookie
[2019-05-04 22:02:23][INFO] : Démon cookie lancé
/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:80
httpsGetCall(path,callback,flags={}){let options={host:this.baseUrl,path:'',method:'GET',timeout:10000,headers:{'User-Agent':this._options.userAgent,'Content-Type':'application/json; charset=UTF-8','Referer':`https:'Origin':`https:'Content-Type':'application/json','csrf':this.csrf,'Cookie':this.cookie}};path=path.replace(/[
]/g,'');if(!path.startsWith('/')){path=path.replace(/^https:\/\//,'');let ar=path.match(/^([^\/]+)([\/]*.*$)/);options.host=ar[1];path=ar[2];}else{options.host=this.baseUrl;}
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/alexaapi/resources/initCookie.js:1:73)
[2019-05-04 22:05:48][INFO] : Lancement du démon cookie
[2019-05-04 22:05:48][INFO] : Démon cookie lancé
/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:80
httpsGetCall(path,callback,flags={}){let options={host:this.baseUrl,path:'',method:'GET',timeout:10000,headers:{'User-Agent':this._options.userAgent,'Content-Type':'application/json; charset=UTF-8','Referer':`https:'Origin':`https:'Content-Type':'application/json','csrf':this.csrf,'Cookie':this.cookie}};path=path.replace(/[
]/g,'');if(!path.startsWith('/')){path=path.replace(/^https:\/\//,'');let ar=path.match(/^([^\/]+)([\/]*.*$)/);options.host=ar[1];path=ar[2];}else{options.host=this.baseUrl;}
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/alexaapi/resources/initCookie.js:1:73)
alexa api node

Code : Tout sélectionner

/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:80
httpsGetCall(path,callback,flags={}){let options={host:this.baseUrl,path:'',method:'GET',timeout:10000,headers:{'User-Agent':this._options.userAgent,'Content-Type':'application/json; charset=UTF-8','Referer':`https:'Origin':`https:'Content-Type':'application/json','csrf':this.csrf,'Cookie':this.cookie}};path=path.replace(/[
]/g,'');if(!path.startsWith('/')){path=path.replace(/^https:\/\//,'');let ar=path.match(/^([^\/]+)([\/]*.*$)/);options.host=ar[1];path=ar[2];}else{options.host=this.baseUrl;}
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/alexaapi/resources/alexaapi.js:1:131)
/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:80
httpsGetCall(path,callback,flags={}){let options={host:this.baseUrl,path:'',method:'GET',timeout:10000,headers:{'User-Agent':this._options.userAgent,'Content-Type':'application/json; charset=UTF-8','Referer':`https:'Origin':`https:'Content-Type':'application/json','csrf':this.csrf,'Cookie':this.cookie}};path=path.replace(/[
]/g,'');if(!path.startsWith('/')){path=path.replace(/^https:\/\//,'');let ar=path.match(/^([^\/]+)([\/]*.*$)/);options.host=ar[1];path=ar[2];}else{options.host=this.baseUrl;}
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/alexaapi/resources/alexaapi.js:1:131)
/var/www/html/plugins/alexaapi/resources/lib/alexa-remote.js:80
httpsGetCall(path,callback,flags={}){let options={host:this.baseUrl,path:'',method:'GET',timeout:10000,headers:{'User-Agent':this._options.userAgent,'Content-Type':'application/json; charset=UTF-8','Referer':`https:'Origin':`https:'Content-Type':'application/json','csrf':this.csrf,'Cookie':this.cookie}};path=path.replace(/[
]/g,'');if(!path.startsWith('/')){path=path.replace(/^https:\/\//,'');let ar=path.match(/^([^\/]+)([\/]*.*$)/);options.host=ar[1];path=ar[2];}else{options.host=this.baseUrl;}
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/alexaapi/resources/alexaapi.js:1:131)
merci pour votre aide
1x Nuc I3 cible / Stick Aeon Gen5 / +- 30 modules Zwave / 7 cameras (Surveillance station)
1 x RPi2 source / Teleinfo USB
1 x Odroid C2 / Stick Aeon Gen 5 / 10 modules Zwave

gpga
Actif
Messages : 755
Inscription : 03 mars 2015, 10:29
Localisation : 67 proche de Strasbourg

Re: [Plugin Tiers] Plugin Alexa-API

Message par gpga » 07 mai 2019, 07:05

J'ai du reinstaller complètement le Plugin pour que cela re-fonctionne, mais c'est de nouveau à l’arrêt après 24 heures de fonctionnement.

Pour info j'utilise plusieurs comptes Alexa, et le compte Alexa que j'utilise sous Jeedom n'est pas le compte de référence pour mes activités sous Amazon, est ce que cela peut avoir une incidence ?
1x Nuc I3 cible / Stick Aeon Gen5 / +- 30 modules Zwave / 7 cameras (Surveillance station)
1 x RPi2 source / Teleinfo USB
1 x Odroid C2 / Stick Aeon Gen 5 / 10 modules Zwave

Mad Ein
Timide
Messages : 62
Inscription : 09 août 2016, 21:00

Re: [Plugin Tiers] Plugin Alexa-API

Message par Mad Ein » 07 mai 2019, 18:49

bonjour,

j'ai le même problème avec le plugin…
quand je lance les dépendances j'ai une erreur dpkg…

Code : Tout sélectionner

Fetched 3194 B in 60s (53 B/s)
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.solid-build.xyz ./ Release: The following signatures were invalid: KEYEXPIRED 1508672008
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease  Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch https://repo.solid-build.xyz/debian/jessie/bsp-imx6/./Release
W: Some index files failed to download. They have been ignored, or old ones used instead.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Error executing command, exiting
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Version actuelle : v5.12.0
--50%
--60%
Installation...
alexa-remote-http@1.0.0 /var/www/html/plugins/alexaapi/resources
+-- alexa-cookie2@2.0.1
+-- cookie@0.3.1
+-- express@4.16.4
| +-- accepts@1.3.7
| | +-- mime-types@2.1.24
| | | `-- mime-db@1.40.0
| | `-- negotiator@0.6.2
| +-- array-flatten@1.1.1
| +-- body-parser@1.18.3
| | +-- bytes@3.0.0
| | +-- http-errors@1.6.3
| | +-- iconv-lite@0.4.23
| | | `-- safer-buffer@2.1.2
| | `-- raw-body@2.3.3
| +-- content-disposition@0.5.2
| +-- content-type@1.0.4
| +-- cookie-signature@1.0.6
| +-- debug@2.6.9
| | `-- ms@2.0.0
| +-- depd@1.1.2
| +-- encodeurl@1.0.2
| +-- escape-html@1.0.3
| +-- etag@1.8.1
| +-- finalhandler@1.1.1
| | `-- unpipe@1.0.0
| +-- fresh@0.5.2
| +-- merge-descriptors@1.0.1
| +-- methods@1.1.2
| +-- on-finished@2.3.0
| | `-- ee-first@1.1.1
| +-- parseurl@1.3.3
| +-- path-to-regexp@0.1.7
| +-- proxy-addr@2.0.5
| | +-- forwarded@0.1.2
| | `-- ipaddr.js@1.9.0
| +-- qs@6.5.2
| +-- range-parser@1.2.0
| +-- safe-buffer@5.1.2
| +-- send@0.16.2
| | +-- destroy@1.0.4
| | `-- mime@1.4.1
| +-- serve-static@1.13.2
| +-- setprototypeof@1.1.0
| +-- statuses@1.4.0
| +-- type-is@1.6.18
| | `-- media-typer@0.3.0
| +-- utils-merge@1.0.1
| `-- vary@1.1.2
+-- extend@3.0.2
+-- http-proxy-middleware@0.19.1
| +-- http-proxy@1.17.0
| | +-- eventemitter3@3.1.2
| | +-- follow-redirects@1.7.0
| | | `-- debug@3.2.6
| | |   `-- ms@2.1.1
| | `-- requires-port@1.0.0
| +-- is-glob@4.0.1
| | `-- is-extglob@2.1.1
| +-- lodash@4.17.11
| `-- micromatch@3.1.10
|   +-- arr-diff@4.0.0
|   +-- array-unique@0.3.2
|   +-- braces@2.3.2
|   | +-- arr-flatten@1.1.0
|   | +-- extend-shallow@2.0.1
|   | | `-- is-extendable@0.1.1
|   | +-- fill-range@4.0.0
|   | | +-- extend-shallow@2.0.1
|   | | +-- is-number@3.0.0
|   | | | `-- kind-of@3.2.2
|   | | |   `-- is-buffer@1.1.6
|   | | +-- repeat-string@1.6.1
|   | | `-- to-regex-range@2.1.1
|   | +-- isobject@3.0.1
|   | +-- repeat-element@1.1.3
|   | +-- snapdragon-node@2.1.1
|   | | +-- define-property@1.0.0
|   | | | `-- is-descriptor@1.0.2
|   | | |   +-- is-accessor-descriptor@1.0.0
|   | | |   `-- is-data-descriptor@1.0.0
|   | | `-- snapdragon-util@3.0.1
|   | |   `-- kind-of@3.2.2
|   | `-- split-string@3.1.0
|   +-- define-property@2.0.2
|   | `-- is-descriptor@1.0.2
|   |   +-- is-accessor-descriptor@1.0.0
|   |   `-- is-data-descriptor@1.0.0
|   +-- extend-shallow@3.0.2
|   | +-- assign-symbols@1.0.0
|   | `-- is-extendable@1.0.1
|   |   `-- is-plain-object@2.0.4
|   +-- extglob@2.0.4
|   | +-- define-property@1.0.0
|   | | `-- is-descriptor@1.0.2
|   | |   +-- is-accessor-descriptor@1.0.0
|   | |   `-- is-data-descriptor@1.0.0
|   | +-- expand-brackets@2.1.4
|   | | +-- define-property@0.2.5
|   | | +-- extend-shallow@2.0.1
|   | | `-- posix-character-classes@0.1.1
|   | `-- extend-shallow@2.0.1
|   +-- fragment-cache@0.2.1
|   | `-- map-cache@0.2.2
|   +-- kind-of@6.0.2
|   +-- nanomatch@1.2.13
|   | `-- is-windows@1.0.2
|   +-- object.pick@1.3.0
|   +-- regex-not@1.0.2
|   | `-- safe-regex@1.1.0
|   |   `-- ret@0.1.15
|   +-- snapdragon@0.8.2
|   | +-- base@0.11.2
|   | | +-- cache-base@1.0.1
|   | | | +-- collection-visit@1.0.0
|   | | | | +-- map-visit@1.0.0
|   | | | | `-- object-visit@1.0.1
|   | | | +-- get-value@2.0.6
|   | | | +-- has-value@1.0.0
|   | | | | `-- has-values@1.0.0
|   | | | |   `-- kind-of@4.0.0
|   | | | +-- set-value@2.0.0
|   | | | | `-- extend-shallow@2.0.1
|   | | | +-- to-object-path@0.3.0
|   | | | | `-- kind-of@3.2.2
|   | | | +-- union-value@1.0.0
|   | | | | `-- set-value@0.4.3
|   | | | |   `-- extend-shallow@2.0.1
|   | | | `-- unset-value@1.0.0
|   | | |   `-- has-value@0.3.1
|   | | |     +-- has-values@0.1.4
|   | | |     `-- isobject@2.1.0
|   | | +-- class-utils@0.3.6
|   | | | +-- arr-union@3.1.0
|   | | | +-- define-property@0.2.5
|   | | | `-- static-extend@0.1.2
|   | | |   +-- define-property@0.2.5
|   | | |   `-- object-copy@0.1.0
|   | | |     +-- copy-descriptor@0.1.1
|   | | |     +-- define-property@0.2.5
|   | | |     `-- kind-of@3.2.2
|   | | +-- component-emitter@1.3.0
|   | | +-- define-property@1.0.0
|   | | | `-- is-descriptor@1.0.2
|   | | |   +-- is-accessor-descriptor@1.0.0
|   | | |   `-- is-data-descriptor@1.0.0
|   | | +-- mixin-deep@1.3.1
|   | | | +-- for-in@1.0.2
|   | | | `-- is-extendable@1.0.1
|   | | `-- pascalcase@0.1.1
|   | +-- define-property@0.2.5
|   | | `-- is-descriptor@0.1.6
|   | |   +-- is-accessor-descriptor@0.1.6
|   | |   | `-- kind-of@3.2.2
|   | |   +-- is-data-descriptor@0.1.4
|   | |   | `-- kind-of@3.2.2
|   | |   `-- kind-of@5.1.0
|   | +-- extend-shallow@2.0.1
|   | +-- source-map@0.5.7
|   | +-- source-map-resolve@0.5.2
|   | | +-- atob@2.1.2
|   | | +-- decode-uri-component@0.2.0
|   | | +-- resolve-url@0.2.1
|   | | +-- source-map-url@0.4.0
|   | | `-- urix@0.1.0
|   | `-- use@3.1.1
|   `-- to-regex@3.0.2
+-- http-proxy-response-rewrite@0.0.1
| +-- bufferhelper@0.2.1
| `-- concat-stream@1.6.2
|   +-- buffer-from@1.1.1
|   +-- inherits@2.0.3
|   +-- readable-stream@2.3.6
|   | +-- core-util-is@1.0.2
|   | +-- isarray@1.0.0
|   | +-- process-nextick-args@2.0.0
|   | +-- string_decoder@1.1.1
|   | `-- util-deprecate@1.0.2
|   `-- typedarray@0.0.6
+-- https@1.0.0
`-- querystring@0.2.0
--95%
--100%
Installation des dépendances alexaapi terminée, vérifiez qu'il n'y a pas d'erreur
lorsque je veux lancer les cookies alexa la page s'ouvre mais j'ai une erreur de connexion mais ou bout d'un moment j'ai "bravo: cookie chargé".
alors que j'ai ça dans le log cookie:

Code : Tout sélectionner

/var/www/html/plugins/alexaapi/resources/initCookie.js:1
(function (exports, require, module, __filename, __dirname) { let Alexa = require('./lib/alexa-remote');
                                                              ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:148:18)
    at node.js:405:3
ça fait un moment que je n'ai pas utilisé putty sur mon jeedom… et je ne sais plus mes identifiants.
par contre il me semble qu'il est possible de lancer des commandes via le dashboard mais je ne sais pas faire...
désolé, je suis assez nul en code!

si quelqu'un à une idée...
je suis sous jeedom v3.3.24 avec mini +

merci

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

[Plugin Tiers] Plugin Alexa-API

Message par Nebz » 07 mai 2019, 19:09

Mad Ein a écrit :bonjour,

j'ai le même problème avec le plugin…
quand je lance les dépendances j'ai une erreur dpkg…

Code : Tout sélectionner

Fetched 3194 B in 60s (53 B/s)
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.solid-build.xyz ./ Release: The following signatures were invalid: KEYEXPIRED 1508672008
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease  Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch https://repo.solid-build.xyz/debian/jessie/bsp-imx6/./Release
W: Some index files failed to download. They have been ignored, or old ones used instead.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Error executing command, exiting
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Version actuelle : v5.12.0
--50%
--60%
Installation...
alexa-remote-http@1.0.0 /var/www/html/plugins/alexaapi/resources
+-- alexa-cookie2@2.0.1
+-- cookie@0.3.1
+-- express@4.16.4
| +-- accepts@1.3.7
| | +-- mime-types@2.1.24
| | | `-- mime-db@1.40.0
| | `-- negotiator@0.6.2
| +-- array-flatten@1.1.1
| +-- body-parser@1.18.3
| | +-- bytes@3.0.0
| | +-- http-errors@1.6.3
| | +-- iconv-lite@0.4.23
| | | `-- safer-buffer@2.1.2
| | `-- raw-body@2.3.3
| +-- content-disposition@0.5.2
| +-- content-type@1.0.4
| +-- cookie-signature@1.0.6
| +-- debug@2.6.9
| | `-- ms@2.0.0
| +-- depd@1.1.2
| +-- encodeurl@1.0.2
| +-- escape-html@1.0.3
| +-- etag@1.8.1
| +-- finalhandler@1.1.1
| | `-- unpipe@1.0.0
| +-- fresh@0.5.2
| +-- merge-descriptors@1.0.1
| +-- methods@1.1.2
| +-- on-finished@2.3.0
| | `-- ee-first@1.1.1
| +-- parseurl@1.3.3
| +-- path-to-regexp@0.1.7
| +-- proxy-addr@2.0.5
| | +-- forwarded@0.1.2
| | `-- ipaddr.js@1.9.0
| +-- qs@6.5.2
| +-- range-parser@1.2.0
| +-- safe-buffer@5.1.2
| +-- send@0.16.2
| | +-- destroy@1.0.4
| | `-- mime@1.4.1
| +-- serve-static@1.13.2
| +-- setprototypeof@1.1.0
| +-- statuses@1.4.0
| +-- type-is@1.6.18
| | `-- media-typer@0.3.0
| +-- utils-merge@1.0.1
| `-- vary@1.1.2
+-- extend@3.0.2
+-- http-proxy-middleware@0.19.1
| +-- http-proxy@1.17.0
| | +-- eventemitter3@3.1.2
| | +-- follow-redirects@1.7.0
| | | `-- debug@3.2.6
| | |   `-- ms@2.1.1
| | `-- requires-port@1.0.0
| +-- is-glob@4.0.1
| | `-- is-extglob@2.1.1
| +-- lodash@4.17.11
| `-- micromatch@3.1.10
|   +-- arr-diff@4.0.0
|   +-- array-unique@0.3.2
|   +-- braces@2.3.2
|   | +-- arr-flatten@1.1.0
|   | +-- extend-shallow@2.0.1
|   | | `-- is-extendable@0.1.1
|   | +-- fill-range@4.0.0
|   | | +-- extend-shallow@2.0.1
|   | | +-- is-number@3.0.0
|   | | | `-- kind-of@3.2.2
|   | | |   `-- is-buffer@1.1.6
|   | | +-- repeat-string@1.6.1
|   | | `-- to-regex-range@2.1.1
|   | +-- isobject@3.0.1
|   | +-- repeat-element@1.1.3
|   | +-- snapdragon-node@2.1.1
|   | | +-- define-property@1.0.0
|   | | | `-- is-descriptor@1.0.2
|   | | |   +-- is-accessor-descriptor@1.0.0
|   | | |   `-- is-data-descriptor@1.0.0
|   | | `-- snapdragon-util@3.0.1
|   | |   `-- kind-of@3.2.2
|   | `-- split-string@3.1.0
|   +-- define-property@2.0.2
|   | `-- is-descriptor@1.0.2
|   |   +-- is-accessor-descriptor@1.0.0
|   |   `-- is-data-descriptor@1.0.0
|   +-- extend-shallow@3.0.2
|   | +-- assign-symbols@1.0.0
|   | `-- is-extendable@1.0.1
|   |   `-- is-plain-object@2.0.4
|   +-- extglob@2.0.4
|   | +-- define-property@1.0.0
|   | | `-- is-descriptor@1.0.2
|   | |   +-- is-accessor-descriptor@1.0.0
|   | |   `-- is-data-descriptor@1.0.0
|   | +-- expand-brackets@2.1.4
|   | | +-- define-property@0.2.5
|   | | +-- extend-shallow@2.0.1
|   | | `-- posix-character-classes@0.1.1
|   | `-- extend-shallow@2.0.1
|   +-- fragment-cache@0.2.1
|   | `-- map-cache@0.2.2
|   +-- kind-of@6.0.2
|   +-- nanomatch@1.2.13
|   | `-- is-windows@1.0.2
|   +-- object.pick@1.3.0
|   +-- regex-not@1.0.2
|   | `-- safe-regex@1.1.0
|   |   `-- ret@0.1.15
|   +-- snapdragon@0.8.2
|   | +-- base@0.11.2
|   | | +-- cache-base@1.0.1
|   | | | +-- collection-visit@1.0.0
|   | | | | +-- map-visit@1.0.0
|   | | | | `-- object-visit@1.0.1
|   | | | +-- get-value@2.0.6
|   | | | +-- has-value@1.0.0
|   | | | | `-- has-values@1.0.0
|   | | | |   `-- kind-of@4.0.0
|   | | | +-- set-value@2.0.0
|   | | | | `-- extend-shallow@2.0.1
|   | | | +-- to-object-path@0.3.0
|   | | | | `-- kind-of@3.2.2
|   | | | +-- union-value@1.0.0
|   | | | | `-- set-value@0.4.3
|   | | | |   `-- extend-shallow@2.0.1
|   | | | `-- unset-value@1.0.0
|   | | |   `-- has-value@0.3.1
|   | | |     +-- has-values@0.1.4
|   | | |     `-- isobject@2.1.0
|   | | +-- class-utils@0.3.6
|   | | | +-- arr-union@3.1.0
|   | | | +-- define-property@0.2.5
|   | | | `-- static-extend@0.1.2
|   | | |   +-- define-property@0.2.5
|   | | |   `-- object-copy@0.1.0
|   | | |     +-- copy-descriptor@0.1.1
|   | | |     +-- define-property@0.2.5
|   | | |     `-- kind-of@3.2.2
|   | | +-- component-emitter@1.3.0
|   | | +-- define-property@1.0.0
|   | | | `-- is-descriptor@1.0.2
|   | | |   +-- is-accessor-descriptor@1.0.0
|   | | |   `-- is-data-descriptor@1.0.0
|   | | +-- mixin-deep@1.3.1
|   | | | +-- for-in@1.0.2
|   | | | `-- is-extendable@1.0.1
|   | | `-- pascalcase@0.1.1
|   | +-- define-property@0.2.5
|   | | `-- is-descriptor@0.1.6
|   | |   +-- is-accessor-descriptor@0.1.6
|   | |   | `-- kind-of@3.2.2
|   | |   +-- is-data-descriptor@0.1.4
|   | |   | `-- kind-of@3.2.2
|   | |   `-- kind-of@5.1.0
|   | +-- extend-shallow@2.0.1
|   | +-- source-map@0.5.7
|   | +-- source-map-resolve@0.5.2
|   | | +-- atob@2.1.2
|   | | +-- decode-uri-component@0.2.0
|   | | +-- resolve-url@0.2.1
|   | | +-- source-map-url@0.4.0
|   | | `-- urix@0.1.0
|   | `-- use@3.1.1
|   `-- to-regex@3.0.2
+-- http-proxy-response-rewrite@0.0.1
| +-- bufferhelper@0.2.1
| `-- concat-stream@1.6.2
|   +-- buffer-from@1.1.1
|   +-- inherits@2.0.3
|   +-- readable-stream@2.3.6
|   | +-- core-util-is@1.0.2
|   | +-- isarray@1.0.0
|   | +-- process-nextick-args@2.0.0
|   | +-- string_decoder@1.1.1
|   | `-- util-deprecate@1.0.2
|   `-- typedarray@0.0.6
+-- https@1.0.0
`-- querystring@0.2.0
--95%
--100%
Installation des dépendances alexaapi terminée, vérifiez qu'il n'y a pas d'erreur
lorsque je veux lancer les cookies alexa la page s'ouvre mais j'ai une erreur de connexion mais ou bout d'un moment j'ai "bravo: cookie chargé".
alors que j'ai ça dans le log cookie:

Code : Tout sélectionner

/var/www/html/plugins/alexaapi/resources/initCookie.js:1
(function (exports, require, module, __filename, __dirname) { let Alexa = require('./lib/alexa-remote');
                                                              ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:148:18)
    at node.js:405:3
ça fait un moment que je n'ai pas utilisé putty sur mon jeedom… et je ne sais plus mes identifiants.
par contre il me semble qu'il est possible de lancer des commandes via le dashboard mais je ne sais pas faire...
désolé, je suis assez nul en code!

si quelqu'un à une idée...
je suis sous jeedom v3.3.24 avec mini +

merci
En effet il faut lancer la commande indiquée soit en ssh soit via configuration > OS/DB > Administration Lancer

Ensuite tu auras un problèmes sur certaines sources et la je te conseille de faire un ticket jeedom pour leur demander de l'aide (en haut à droite, petit utilisateur et puis demande support (ou qqch du genre))


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

Mad Ein
Timide
Messages : 62
Inscription : 09 août 2016, 21:00

Re: [Plugin Tiers] Plugin Alexa-API

Message par Mad Ein » 07 mai 2019, 19:14

merci pour la réponse rapide!
j'ai essayé, et ça me donne ça:
su: unrecognized option '--configure'
Usage: su [options] [LOGIN]

Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login make the shell a login shell
-m, -p,
--preserve-environment do not reset environment variables, and
keep the same shell
-s, --shell SHELL use SHELL instead of the default in passwd

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6514
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [Plugin Tiers] Plugin Alexa-API

Message par Nebz » 07 mai 2019, 19:15

sudo

Et regarde mon post je l'ai édité


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

Mad Ein
Timide
Messages : 62
Inscription : 09 août 2016, 21:00

Re: [Plugin Tiers] Plugin Alexa-API

Message par Mad Ein » 07 mai 2019, 21:26

Okj,
Je vais envoyer un ticket.
Merci

Répondre

Revenir vers « [Catégorie] Communication »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 17 invités