From bb105fcf572ed50f03051da0973d40e9f3cd3389 Mon Sep 17 00:00:00 2001 From: Christian Zufferey Date: Thu, 4 Jun 2020 15:10:51 +0200 Subject: [PATCH] =?UTF-8?q?Nettoy=C3=A9=20des=20restes=20de=20code=20dans?= =?UTF-8?q?=20le=20cron=20;-)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../energy/transfo_courant_clip_1p_1/0_cron.lua | 14 +------------- .../transfo_courant_clip_1p_1/_zremote_cmd.txt | 4 ++-- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/Mesures/energy/transfo_courant_clip_1p_1/0_cron.lua b/Mesures/energy/transfo_courant_clip_1p_1/0_cron.lua index e87e549..12b71e2 100644 --- a/Mesures/energy/transfo_courant_clip_1p_1/0_cron.lua +++ b/Mesures/energy/transfo_courant_clip_1p_1/0_cron.lua @@ -1,5 +1,5 @@ -- Petit script pour faire office de crontab pour les mesures -print("\n 0_cron.lua zf200604.1441 \n") +print("\n 0_cron.lua zf200604.1510 \n") cron1=tmr.create() cron1:alarm(10*1000, tmr.ALARM_AUTO, function() @@ -7,20 +7,8 @@ cron1:alarm(10*1000, tmr.ALARM_AUTO, function() if verbose then gpio.write(zLED, gpio.LOW) tmr.delay(10000) gpio.write(zLED, gpio.HIGH) end http_post(influxdb_url,"energy,memory=cron1_"..yellow_id.." ram="..node.heap()) - - -- f = "0_1_htu21d.lua" if file.exists(f) then dofile(f) end - -- http_post(influxdb_url,"energy,capteur=th1 temperature="..ztemp1) - -- http_post(influxdb_url,"energy,capteur=th1 humidity="..zhum1) - -- - -- ztemp1=nil zhum1=nil ztemp2=nil zhum2=nil - http_post(influxdb_url,"energy,compteur=3 puissance="..zpower/1000) - -- zarg="energy,compteur=2 puissance="..zpower/1000 - - - - -- f = "0_zdyndns.lua" if file.exists(f) then dofile(f) end f=nil diff --git a/Mesures/energy/transfo_courant_clip_1p_1/_zremote_cmd.txt b/Mesures/energy/transfo_courant_clip_1p_1/_zremote_cmd.txt index 621922a..6a97f67 100644 --- a/Mesures/energy/transfo_courant_clip_1p_1/_zremote_cmd.txt +++ b/Mesures/energy/transfo_courant_clip_1p_1/_zremote_cmd.txt @@ -1,5 +1,5 @@ # Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom -# zf200527.1853 +# zf200604.1500 Todo à faire pour ce projet ! @@ -78,7 +78,7 @@ for k,v in pairs(_G) do print(k,v) end ################################ ssh ubuntu@www.zuzu-test.ml killall -9 socat killall -9 ssh -ssh ubuntu@www.zuzu-test.ml socat TCP-LISTEN:23043,reuseaddr,fork TCP-LISTEN:23000,reuseaddr,bind=127.0.0.1 & +ssh ubuntu@www.zuzu-test.ml socat TCP-LISTEN:23060,reuseaddr,fork TCP-LISTEN:23000,reuseaddr,bind=127.0.0.1 & watch -n 1 'ssh ubuntu@www.zuzu-test.ml netstat -nat |grep 230' ALT+CMD+F CTRL+C ALT+CMD+F ssh -N -L 23000:localhost:23000 ubuntu@www.zuzu-test.ml &