Passé à une période de msesure plus grande
- Dû passer à une mesure toutes les 3 minutes afin d'économiser l'utilisation du quota du GSM - Dû passer à 60 secondes la connection à socat aussi à cause du quota GSM - Dû passer à python 2.7 dans luatool.py à cause que mon mac n'a plus de lien symbolique sur python2
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
-- Petit script pour faire office de crontab pour les mesures
|
||||
print("\n 0_cron.lua zf200705.2247 \n")
|
||||
print("\n 0_cron.lua zf201003.1044 \n")
|
||||
|
||||
cron1=tmr.create()
|
||||
cron1:alarm(15*1000, tmr.ALARM_AUTO, function()
|
||||
cron1:alarm(180*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
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ ou sur MAC
|
||||
telnet -rN localhost 23000
|
||||
]]
|
||||
|
||||
print("\n 0_tst5_socat.lua zf200628.1458 \n")
|
||||
print("\n 0_tst5_socat.lua zf201003.1043 \n")
|
||||
|
||||
function rt_connect()
|
||||
-- print("................rt_connect")
|
||||
@@ -105,7 +105,7 @@ end
|
||||
|
||||
|
||||
tmr_socat1=tmr.create()
|
||||
tmr_socat1:alarm(20*1000, tmr.ALARM_AUTO , rt_launch)
|
||||
tmr_socat1:alarm(60*1000, tmr.ALARM_AUTO , rt_launch)
|
||||
|
||||
|
||||
ztime_connect=tmr.now()/1000000-10
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom
|
||||
# zf200704.2310
|
||||
# zf201003.1105
|
||||
|
||||
|
||||
Todo à faire pour ce projet !
|
||||
@@ -66,7 +66,10 @@ verbose=true
|
||||
node.restart()
|
||||
|
||||
dofile("head.lua")
|
||||
zhead("0_ultra_son.lua")
|
||||
zhead("boot.lua")
|
||||
zhead("0_cron.lua")
|
||||
dofile("cat.lua")
|
||||
cat("0_tst5_socat.lua")
|
||||
|
||||
./luatool.py --ip $zIP:$zport -f boot.lua
|
||||
./luatool.py --ip $zIP:$zport -f 0_get_power.lua
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Scripts à charger après le boot pour démarrer son projet
|
||||
|
||||
function boot()
|
||||
print("\n boot.lua zf200625.1205 \n")
|
||||
print("\n boot.lua zf201003.1042 \n")
|
||||
print("On lance le boot...")
|
||||
collectgarbage() print(node.heap())
|
||||
local f
|
||||
@@ -25,7 +25,7 @@ function boot()
|
||||
f="0_cron.lua" if file.exists(f) then dofile(f) end
|
||||
collectgarbage() print(node.heap())
|
||||
|
||||
verbose = true
|
||||
verbose = false
|
||||
print("verbose: ",verbose,"\nle boot est lancé...")
|
||||
gpio.write(zLED, gpio.HIGH)
|
||||
f=nil boot=nil
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python2
|
||||
#!/usr/bin/env python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
version = "0.6.8 zf191225.1428"
|
||||
version = "0.6.9 zf201003.1101"
|
||||
|
||||
print("luatool.py ver " + version)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user