diff --git a/Mesures/ADC/ADS1115/0_cron.lua b/Mesures/ADC/ADS1115/0_cron.lua index 39351b2..19925ce 100644 --- a/Mesures/ADC/ADS1115/0_cron.lua +++ b/Mesures/ADC/ADS1115/0_cron.lua @@ -1,8 +1,8 @@ -- Petit script pour faire office de crontab pour les mesures -print("\n 0_cron.lua zf200228.1727 \n") +print("\n 0_cron.lua zf200229.1557 \n") cron1=tmr.create() -cron1:alarm(20*1000, tmr.ALARM_AUTO, function() +cron1:alarm(60*1000, tmr.ALARM_AUTO, function() if verbose then print("cron1........................") end if verbose then gpio.write(zLED, gpio.LOW) tmr.delay(10000) gpio.write(zLED, gpio.HIGH) end diff --git a/Mesures/ADC/ADS1115/0_tst3_socat.lua b/Mesures/ADC/ADS1115/0_tst3_socat.lua index e2bcb19..f844c8e 100644 --- a/Mesures/ADC/ADS1115/0_tst3_socat.lua +++ b/Mesures/ADC/ADS1115/0_tst3_socat.lua @@ -12,7 +12,7 @@ socat TCP-LISTEN:23047,reuseaddr,fork TCP-LISTEN:23000,reuseaddr,bind=127.0.0.1 telnet -r localhost 23000 ]] -print("\n 0_tst3_socat.lua zf200221.1335 \n") +print("\n 0_tst3_socat.lua zf200229.1553 \n") local node, table, tmr, wifi, uwrite, tostring = node, table, tmr, wifi, uart.write, tostring @@ -119,24 +119,24 @@ function rt_connect() srv_rt = nil srv_rt = net.createConnection(net.TCP, 0) srv_rt:on("connection", function(sck) - if verbose then print("connected on "..console_host..":"..console_port+yellow_tag) end + if verbose then print("connected on "..console_host..":"..console_port) end if verbose then print(node.heap()) collectgarbage() print(node.heap()) end telnet_listener(sck) print("Welcome to NodeMCU world.") end) - srv_rt:connect(console_port+yellow_tag,console_host) + srv_rt:connect(console_port,console_host) end tmr_socat1=tmr.create() tmr_socat1:alarm(5*1000, tmr.ALARM_AUTO , function() rt_retry=1 if verbose then gpio.write(zLED, gpio.LOW) tmr.delay(10000) gpio.write(zLED, gpio.HIGH) end - if console_port+yellow_tag == srv_rt:getpeer() then + if console_port == srv_rt:getpeer() then if verbose then gpio.write(zLED, gpio.LOW) end else if verbose then gpio.write(zLED, gpio.HIGH) - print("trying connect to "..console_host..":"..console_port+yellow_tag) + print("trying connect to "..console_host..":"..console_port) if verbose then print(node.heap()) collectgarbage() print(node.heap()) end end rt_connect() diff --git a/Mesures/ADC/ADS1115/0_zdyndns.lua b/Mesures/ADC/ADS1115/0_zdyndns.lua index 60603ec..a6357c1 100644 --- a/Mesures/ADC/ADS1115/0_zdyndns.lua +++ b/Mesures/ADC/ADS1115/0_zdyndns.lua @@ -1,10 +1,10 @@ -- Petit script pour s'inregistrer sur zdyndns function send_zdyndns() - if verbose then print("\n 0_zdyndns.lua zf200221.1209 \n") end + if verbose then print("\n 0_zdyndns.lua zf200229.1553 \n") end zip = wifi.sta.getip() - zdyndns_str = "s "..node_id..","..console_host..":"..tostring(console_port+yellow_tag).." "..zip.."\n" + zdyndns_str = "s "..node_id..","..console_host..":"..tostring(console_port).." "..zip.."\n" if verbose then print("zdyndns_str: /"..zdyndns_str.."/") end srv_zdyndns = net.createConnection(net.TCP, 0) diff --git a/Mesures/ADC/ADS1115/_zremote_cmd.txt b/Mesures/ADC/ADS1115/_zremote_cmd.txt index 4ea42ba..7ba80fb 100644 --- a/Mesures/ADC/ADS1115/_zremote_cmd.txt +++ b/Mesures/ADC/ADS1115/_zremote_cmd.txt @@ -1,16 +1,16 @@ # Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom -# zf200217.0429 +# zf200229.1600 Todo à faire pour ce projet ! -- ajouter la variable yellow_tag avec le numéro de l'étiquette jaune du NodeMCU -- regarder pour mettre "Welcome to NodeMCU world." quand connected, en fait quand on arrive dans le telnet_listener après la redirection du port série ! -- ajouter l'adresse du zdyndns dans les secrets projets -- se connecter sur le zdyndns avec le numéro du port du telnet reverse utilisé +- refaire le fichier _secrets_project.lua_ à partir de secrets_project.lua +- faire la documentation pour le fonctionnement de concept de rtelnet dans un fichier à part .md + - y regarder pour faire tourner en MEME temps le reverse et le forward telnet - z lancement ou arrêt du WEBIDE via la home page v- ajouter fonction restart dans z_index.html (ATTENTION avec un argument restart, pas besoin de faire une page restart.html !) +v- ajouter l'adresse du zdyndns dans les secrets projets v- ajouter l'affichage du node_id dans z_index.html v- ajouter le web_srv2 dans boot au lieu de boot2 v- ajouter un état du RELAY et de la LED dans z_index.html @@ -31,6 +31,8 @@ v- le wifi setup ne fonctionne toujours pas quand il y a déjà un ap de connect v- mettre le numéro jaune du nodemcu dans les secrets projet et prendre 23000+num_jaune comme numéro de port pour le reverse telnet v- passer à 10 secondes la seconde chance v- passer à 15x les tentatives de connexions au WIFI +v- regarder pour mettre "Welcome to NodeMCU world." quand connected, en fait quand on arrive dans le telnet_listener après la redirection du port série ! +v- se connecter sur le zdyndns avec le numéro du port du telnet reverse utilisé v- terminer la page .html affichage de la température et de l'humidité v- terminer le reverse telnet ;-) v- trouver un moyen pour configurer la lED dans initz.lua sans le rendre dangereux en cas de problème (éviter le reflashing en cas de reboot loop)