Aymkdn / assistant-notifier

Plugin pour faire lire du texte au Google Home
https://aymkdn.github.io/assistant-plugins/?plugin=notifier
MIT License
8 stars 3 forks source link

plugin notifier sans freebox #17

Closed nusmiaf closed 3 years ago

nusmiaf commented 3 years ago

bonjour Aymkdn, je reviens après plusieurs année , je n'ai plus de freebox ( c'est sfr dans ma nouvelle ville ) ma question est :+1: est ce que " notifier " peux fonctionner tout seul , j'ai uniquement besoins de push vers google home

merci

nusmiaf commented 3 years ago

oui j'ai bien arréter le plugins sur le pc , et j'ai réussis a crée la tache de demarage au demarage du nas mais le(s) Google home restent muet image

image

nusmiaf commented 3 years ago

je t'ai envoyer une courte vidéo du résultat obtenu sur => notifications@github.com

je clic sur mon soft qui envoie le push , le plugins le reçois bien , et le GH fait "Gling" et dit rien

Aymkdn commented 3 years ago

Donc il reçoit bien, mais tu as juste un "bip" sur le Google Home… ça veut dire qu'il y a un problème avec le fichier audio…

Essaie peut-être d'utiliser une autre voix : https://aymkdn.github.io/assistant-plugins/?plugin=notifier#param-tre-voice-optionnel- – pour voir si le problème pourrait venir de là ?

(notifications@github.com est l'adresse de Github et pas la mienne. Cela dit, tu peux attacher des fichiers à une issue)

nusmiaf commented 3 years ago

pas grave pour le fichier vidéo , c'est juste pour visualiser le " bip" et rien d'autre pas de message... pour info ça a fonctionner déjà aujourd’hui avec la " voix " d'origine j'ai du toucher un truc qu'il faillait pas comme a ma facheuse habitude

nusmiaf commented 3 years ago

j'ai éditer le fichier conf.json et ça donne pas de bon résultat

image image

https://user-images.githubusercontent.com/33859641/105610319-7647a980-5daf-11eb-9098-a1f270dfd292.mp4

Aymkdn commented 3 years ago

Tu as oublié la virgule après "volume" : 45

Le formatage du fichier est important. Il faut le remplir attentivement.

nusmiaf commented 3 years ago

je viens de corriger la virgule , ( et j'intègre pas les espace avant chaque ligne .. pour quoi c'est pas tout aligné)

j'y arrive pas putty me dit que ça va pas

image

Aymkdn commented 3 years ago

Tu as encore un syntax error donc quelque chose ne va pas dans ton fichier.

Format ton fichier (c'est à dire, mets des espaces pour aligner tes { avec tes }). À priori il t'en manque une fermante. Tu noteras d'ailleurs que ton éditeur de texte te colorise en rouge les accolades qui correspondent.

nusmiaf commented 3 years ago

j'ai aligner les {} , effectivement il en manquait un ça a l'air beaucoup mieux , mais toujours le même résultat => "BIP" et pas de message image

Aymkdn commented 3 years ago

Je ne sais pas...

Essaie differentes choses comme :

nusmiaf commented 3 years ago

Je ne sais pas...

Essaie differentes choses comme :

* redémarre tes Google Home     / déja fait

* envoie le message sans cible de Google Home  /  déja fait

* change le message pour un truc plus court  / en cours

un seul GH avec un seul mot pour message : résultat même pas de "bip" et pas de message non plus

image

pushbullet = image

IFTTT= image

nusmiaf commented 3 years ago

tu voudrait pas prendre la main avec teamviewer ou autre pour voir si il y a pas un truc qui manque

image

[assistant] Assistant v2.0.13 : Chargement en cours... [assistant] 2 plugins trouvés. [assistant] Chargement du plugin 'ifttt' (v2.0.1) [assistant-ifttt] Plugin chargé et prêt. [assistant] Chargement du plugin 'notifier' (v2.1.11) [assistant-notifier] Plugin chargé et prêt. [assistant] Connexion au flux de PushBullet... [assistant] (2021-01-24 21:17:17) Connecté ! Prêt à exécuter les ordres. [assistant] (2021-01-24 21:17:26) Commande reçue: [ 'notifier_{Bureau,Salon} Attention, ..! présence , allée, du garage' ] [assistant] (2021-01-24 21:17:26) Appel du plugin 'notifier' [assistant-notifier] (Bureau,Salon) Lecture du message : Attention, ..! présence , allée, du garage (node:23073) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "options.port" property must be one of type number or string. Received func tion callback at lookupAndConnect (net.js:997:13) at TLSSocket.Socket.connect (net.js:976:5) at Object.connect (_tls_wrap.js:1588:13) at Client.connect (/volume1/homes/admin/assistant-plugins/node_modules/castv 2/lib/client.js:35:21) at PlatformSender.connect (/volume1/homes/admin/assistant-plugins/node_modul es/castv2-client/lib/senders/platform.js:27:15) at /volume1/homes/admin/assistant-plugins/node_modules/assistant-notifier/no tifier.js:36:13 at new Promise () at AssistantNotifier.prom (/volume1/homes/admin/assistant-plugins/node_modul es/assistant-notifier/notifier.js:31:10) at /volume1/homes/admin/assistant-plugins/node_modules/assistant-notifier/no tifier.js:96:15 at Array.forEach () (node:23073) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To termin ate the node process on unhandled promise rejection, use the CLI flag --unhandl ed-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejecti ons_mode). (rejection id: 3) (node:23073) [DEP0018] DeprecationWarning: Unhandled promise rejections are depr ecated. In the future, promise rejections that are not handled will terminate th e Node.js process with a non-zero exit code. (node:23073) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "options.port" property must be one of type number or string. Received func tion callback at lookupAndConnect (net.js:997:13) at TLSSocket.Socket.connect (net.js:976:5) at Object.connect (_tls_wrap.js:1588:13) at Client.connect (/volume1/homes/admin/assistant-plugins/node_modules/castv 2/lib/client.js:35:21) at PlatformSender.connect (/volume1/homes/admin/assistant-plugins/node_modul es/castv2-client/lib/senders/platform.js:27:15) at /volume1/homes/admin/assistant-plugins/node_modules/assistant-notifier/no tifier.js:36:13 at new Promise () at AssistantNotifier.prom (/volume1/homes/admin/assistant-plugins/node_modul es/assistant-notifier/notifier.js:31:10) at /volume1/homes/admin/assistant-plugins/node_modules/assistant-notifier/no tifier.js:96:15 at Array.forEach () (node:23073) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To termin ate the node process on unhandled promise rejection, use the CLI flag --unhandl ed-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejecti ons_mode). (rejection id: 4) [assistant] (2021-01-24 21:17:26) Appel du plugin 'notifier' [assistant-notifier] (Bureau,Salon) Lecture du message : Attention, ..! présence , allée, du garage (node:23073) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "options.port" property must be one of type number or string. Received func tion callback at lookupAndConnect (net.js:997:13) at TLSSocket.Socket.connect (net.js:976:5) at Object.connect (_tls_wrap.js:1588:13) at Client.connect (/volume1/homes/admin/assistant-plugins/node_modules/castv 2/lib/client.js:35:21) at PlatformSender.connect (/volume1/homes/admin/assistant-plugins/node_modul es/castv2-client/lib/senders/platform.js:27:15) at /volume1/homes/admin/assistant-plugins/node_modules/assistant-notifier/no tifier.js:36:13 at new Promise () at AssistantNotifier.prom (/volume1/homes/admin/assistant-plugins/node_modul es/assistant-notifier/notifier.js:31:10) at /volume1/homes/admin/assistant-plugins/node_modules/assistant-notifier/no tifier.js:96:15 at Array.forEach () (node:23073) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To termin ate the node process on unhandled promise rejection, use the CLI flag --unhandl ed-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejecti ons_mode). (rejection id: 3) (node:23073) [DEP0018] DeprecationWarning: Unhandled promise rejections are depr ecated. In the future, promise rejections that are not handled will terminate th e Node.js process with a non-zero exit code. (node:23073) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "options.port" property must be one of type number or string. Received func tion callback at lookupAndConnect (net.js:997:13) at TLSSocket.Socket.connect (net.js:976:5) at Object.connect (_tls_wrap.js:1588:13) at Client.connect (/volume1/homes/admin/assistant-plugins/node_modules/castv 2/lib/client.js:35:21) at PlatformSender.connect (/volume1/homes/admin/assistant-plugins/node_modul es/castv2-client/lib/senders/platform.js:27:15) at /volume1/homes/admin/assistant-plugins/node_modules/assistant-notifier/no tifier.js:36:13 at new Promise () at AssistantNotifier.prom (/volume1/homes/admin/assistant-plugins/node_modul es/assistant-notifier/notifier.js:31:10) at /volume1/homes/admin/assistant-plugins/node_modules/assistant-notifier/no tifier.js:96:15 at Array.forEach () (node:23073) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To termin ate the node process on unhandled promise rejection, use the CLI flag --unhandl ed-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejecti ons_mode). (rejection id: 4)

Aymkdn commented 3 years ago

Ton NAS est bien sur le même réseau que les Google Home (c'est-à-dire qu'il a une IP 192.168.1.x) ?

Aymkdn commented 3 years ago

Non je ne veux pas me connecter avec TeamViewer. Là je regarde un film.

Aymkdn commented 3 years ago

Une autre personne a eu la même erreur, à savoir The "options.port" property must be one of type number or string mais il a arrêté de répondre à mes messages donc on n'a jamais pu aller au bout de la résolution...

nusmiaf commented 3 years ago

oui tout est sous le même réseau évidement tu fait ta vie pas de souci mais si a un moment ou ça ne te dérange pas, je pense que on gagnera du temps plutôt que je fasse des bêtise par ignorance et que je t’inonde de message a chaque faut pas ....

j'ai remis tout comme au départ , donc plus d'erreur mais toujours au point ou ça bip et c'est tout image

Aymkdn commented 3 years ago

Quelle est la différence entre avant The "options.port" property must be one of type number or string et maintenant (plus d'erreur qui s'affiche) ? Tu as modifié quoi ?

Aymkdn commented 3 years ago

Pour TeamViewer, éventuellement demain matin... Mais pas sûr que je puisse faire quelque chose....

nusmiaf commented 3 years ago

j'ai mis le config.json sans changer la voix : { "main": { "pushbullet_token": "o.cF6jm38o59VWw1PqEZfhTYeJehSnX" }, "plugins": { "ifttt": { "key": "bUgWXi2EwC4IMenDPW" }, "notifier": { "host": { "Bureau":"192.168.1.230", "Salon":"192.168.1.220", "Garage":"192.168.1.221", "Max":"192.168.1.223", "volume": 30 } } } }

mais te casse pas la tête on est samedi je suis dessus depuis hier pour le pc et ce matin pour le Nas j'en ai pleins les bottes

nusmiaf commented 3 years ago

quand tu est dispo ... ça peu attendre même lundi même un autre jour.. passe une bonne soiée regarde ton film tranquillement

et pour la 50eme fois MERCI

Aymkdn commented 3 years ago

Envoie moi un mail sur aymeric@kodono.info et demain matin je te mail vers 10h si je peux

nusmiaf commented 3 years ago

ok je te remerci

nusmiaf commented 3 years ago

Bonjour Aymeric , donc après que le Nas ai fini ça vérification des disques , tout fonctionne ! le plugins et l'auto start au démarrage du Nas je te remercierais jamais asser pour ton aide et ta patience avec moi bonne continuation pour tes développements informatique

bye

Aymkdn commented 3 years ago

Ah je pensais justement à toi à l'instant ! OK cool que ça fonctionne :-)

nusmiaf commented 3 years ago

Bonjour, j'ai une mauvaise nouvelle... ca ne fonctionne plus... faut avoir un compte pro sur pushbulet 😭 Screenshot_20210216-195606_IFTTT