From 4bd148d0497f9a540c14903d8707ae5e7f9c5707 Mon Sep 17 00:00:00 2001 From: Christian Zufferey Date: Wed, 23 Oct 2019 10:38:47 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=C3=A9=20pleins=20de=20commandes=20pratiqu?= =?UTF-8?q?es=20=C3=A0=20envoyer=20via=20le=20plugin=20atom-ide-terminal?= =?UTF-8?q?=20au=20NodeMCU=20remote=20en=20WIFI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../transfo_courant_clip/_zremote_cmd.txt | 22 ++++++++++++++++--- Mesures/energy/transfo_courant_clip/upload.sh | 6 ++++- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/Mesures/energy/transfo_courant_clip/_zremote_cmd.txt b/Mesures/energy/transfo_courant_clip/_zremote_cmd.txt index a24be9c..bf777ac 100644 --- a/Mesures/energy/transfo_courant_clip/_zremote_cmd.txt +++ b/Mesures/energy/transfo_courant_clip/_zremote_cmd.txt @@ -1,9 +1,25 @@ -# Quelques commandes remote à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom -# zf191023.0954 +# Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom +# zf191023.0958 # raccourcis clavier # CTRL+ALT+ENTER envoie au terminal la ligne de l'éditeur # ALT+CMD+F togle entre le terminal et l'éditeur +# définitions à faire AVANT ! +export luatool_tty="/dev/cu.wchusbserial1410" +export zIP="192.168.0.135" -echo "yeah cela marche" +# ouvrir et fermer une session telnet sur le NodeMCU (zIP) +telnet -rN $zIP +~. + +# faire un cat d'un fichier sur le NodeMCU +dofile("cat.lua") +cat("telnet_srv2.lua") + +# commandes luatool +./luatool.py -h +./luatool.py --ip $zIP -i +./luatool.py --ip $zIP -l +./luatool.py --ip $zIP -f toto.lua -d +./luatool.py --ip $zIP --delete toto.lua diff --git a/Mesures/energy/transfo_courant_clip/upload.sh b/Mesures/energy/transfo_courant_clip/upload.sh index a50db40..26f9d03 100755 --- a/Mesures/energy/transfo_courant_clip/upload.sh +++ b/Mesures/energy/transfo_courant_clip/upload.sh @@ -1,12 +1,16 @@ #!/bin/bash # Petit script pour télécharger facilement tout le binz -#zf191021.1613 +#zf191023.0959 # S'il y a des erreurs lors d'un téléchargement, il faut simplement augmenter un peu le délai ! # Il est préférable de télécharger en premier les *gros* fichiers .lua ! # ATTENTION: cela efface tout le NodeMCU ! +echo "attention il n'est PAS à jour, zf191023.0959 !" +exit + + luatool_tty="/dev/cu.wchusbserial1410" echo ""