Nettoyé des restes de code dans le cron ;-)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 &
|
||||
|
||||
Reference in New Issue
Block a user