Hurmf, c’est peut être le fait d’avoir déjà déployé le code proposé :
Mais en relisant, je ne vois aucun code qui tourne en permanence puisque l’envoi de SMS fait appel à un script.
Mais du coup le plugin permet de faire de l’envoi et de la lecture ?
Merci beaucoup @Salvialf.
J’ai remis le code du plugin (il est bien en www-data ; 775).
J’ai activé le plugin.
J’ai lancé les dépendances (longues). Ca finit OK.
+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_tplinksms
+ echo 1
+ echo 2
+ sudo apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Hit:2 https://dl.yarnpkg.com/debian stable InRelease
Hit:3 https://deb.nodesource.com/node_14.x buster InRelease
Get:4 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:5 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:6 http://deb.debian.org/debian buster/main Sources [7843 kB]
Get:7 http://deb.debian.org/debian buster/non-free Sources [85.8 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 Packages [7911 kB]
Get:9 http://deb.debian.org/debian buster/main Translation-en [5969 kB]
Get:10 http://deb.debian.org/debian buster/non-free amd64 Packages [87.7 kB]
Get:11 http://deb.debian.org/debian buster-updates/main Sources.diff/Index [10.6 kB]
Get:12 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [10.6 kB]
Get:13 http://deb.debian.org/debian buster-updates/main Sources 2022-03-26-2012.00.pdiff [186 B]
Get:13 http://deb.debian.org/debian buster-updates/main Sources 2022-03-26-2012.00.pdiff [186 B]
Get:14 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-03-26-2012.00.pdiff [168 B]
Get:14 http://deb.debian.org/debian buster-updates/main amd64 Packages 2022-03-26-2012.00.pdiff [168 B]
Fetched 22.2 MB in 5min 9s (71.7 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
39 packages can be upgraded. Run 'apt list --upgradable' to see them.
+ echo 3
+ cd /var/www/html/core/class/../../plugins/tplinksms/resources/tplinksmsd
+ rm -rf node_modules
+ sudo yarn install
yarn install v1.22.18
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 5.45s.
+ chown -R www-data:www-data LICENSE README.md api-bridge.js config.json docker-compose.yml dockerfile node_modules package.json sms-cat.js sms-send.js smtp-gateway.js src yarn.lock
+ echo 4
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end tplinksms
+ rm /tmp/jeedom_install_in_progress_tplinksms
+ echo '*******************End of package installation******************'
*******************End of package installation******************
Au lancement du démon, voilà :
[2022-03-27 20:20:03]INFO : Démarrage du démon TPLink SMS sudo /usr/bin/node /var/www/html/plugins/tplinksms/resources/tplinksmsd/api-bridge.js
{"message":"Api bridge listening at http://127.0.0.1:3000","level":"info"}
[2022-03-27 20:20:05]ERROR : Erreur sur la fonction deamon_start du plugin : Call to a member function callApi() on bool
EDIT : bien sûr l’IP et le mot de passe sont bien remplis ; je suis déloggué de l’interface et de l’appli.