diff --git a/SonOff/SonOff_2/_zremote_cmd.txt b/SonOff/SonOff_2/_zremote_cmd.txt index 093b9d0..ed61781 100644 --- a/SonOff/SonOff_2/_zremote_cmd.txt +++ b/SonOff/SonOff_2/_zremote_cmd.txt @@ -1,5 +1,5 @@ # Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom -# zf200101.1304 +# zf200101.1823 Todo à faire pour ce projet ! @@ -18,11 +18,6 @@ v- ajouter le web_srv2 dans boot au lieu de boot2 - - - - - # si luatool ne marche pas sur le MAC, il faut lire ceci: # https://docs.google.com/document/d/1q64uK3IMOgEDdKaIAttbYuFt4GuLQ06k3FLeyfCsWLg/edit#heading=h.bmefcu67uwj0 @@ -32,36 +27,11 @@ v- ajouter le web_srv2 dans boot au lieu de boot2 # ALT+CMD+F bascule entre le terminal et l'éditeur # définitions à faire AVANT ! -cd /Users/zuzu/Desktop/NodeMCU/NodeMCU_Lua/WIFI_sniffer/cret_project export luatool_tty="/dev/cu.wchusbserial1410" -export zIP="192.168.0.113" - -#th0 dev mobile -192.168.0.118 -#th1 -192.168.0.143 192.168.8.102 -#th2 -192.168.0.132 192.168.8.105 -#th3 -192.168.0.145 192.168.8.104 -#th4 -192.168.0.117 192.168.8.103 -#th5 chambre à coucher -192.168.0.178 -#th6 buanderie -192.168.0.162 -#th7 cave -192.168.0.199 -#th8 salon -192.168.0.124 - - export zIP="192.168.0.156" export zport="23" -cd '/Users/zuzu/Google Drive/FamilleZ Share/FamilleZ/Papa/LUA/NodeMCU ESP8266/NodeMCU_Lua/Mesures/humidity/bolo -' export zIP="localhost" export zport="2323" ATTENTION: voir les tunnels tout à la fin ! @@ -77,7 +47,13 @@ for k,v in pairs(_G) do print(k,v) end # commandes lua pour ce projet -export zIP="192.168.0.162" +export zIP="192.168.0.156" +export zport="23" +./luatool.py --ip $zIP:$zport -f z_index.html +./luatool.py --ip $zIP:$zport -f api_sonoff.html +http://192.168.0.156 + + telnet -rN $zIP $zport verbose=false dofile("dir.lua") diff --git a/SonOff/SonOff_2/api_sonoff.html b/SonOff/SonOff_2/api_sonoff.html new file mode 100644 index 0000000..b6d23e8 --- /dev/null +++ b/SonOff/SonOff_2/api_sonoff.html @@ -0,0 +1,40 @@ + + + +
+ +