From 77071d2798627ab557a990611644e023bfc682ad Mon Sep 17 00:00:00 2001 From: Christian Zufferey Date: Sat, 3 Oct 2020 11:07:35 +0200 Subject: [PATCH] =?UTF-8?q?Pass=C3=A9=20=C3=A0=20une=20p=C3=A9riode=20de?= =?UTF-8?q?=20msesure=20plus=20grande=20-=20D=C3=BB=20passer=20=C3=A0=20un?= =?UTF-8?q?e=20mesure=20toutes=20les=203=20minutes=20afin=20d'=C3=A9conomi?= =?UTF-8?q?ser=20l'utilisation=20du=20quota=20du=20GSM=20-=20D=C3=BB=20pas?= =?UTF-8?q?ser=20=C3=A0=2060=20secondes=20la=20connection=20=C3=A0=20socat?= =?UTF-8?q?=20aussi=20=C3=A0=20cause=20du=20quota=20GSM=20-=20D=C3=BB=20pa?= =?UTF-8?q?sser=20=C3=A0=20python=202.7=20dans=20luatool.py=20=C3=A0=20cau?= =?UTF-8?q?se=20que=20mon=20mac=20n'a=20plus=20de=20lien=20symbolique=20su?= =?UTF-8?q?r=20python2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mesures/water-level/water-level_ruru_1/0_cron.lua | 4 ++-- Mesures/water-level/water-level_ruru_1/0_tst5_socat.lua | 4 ++-- Mesures/water-level/water-level_ruru_1/_zremote_cmd.txt | 7 +++++-- Mesures/water-level/water-level_ruru_1/boot.lua | 4 ++-- Mesures/water-level/water-level_ruru_1/luatool.py | 4 ++-- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/Mesures/water-level/water-level_ruru_1/0_cron.lua b/Mesures/water-level/water-level_ruru_1/0_cron.lua index 172b16e..1be62ca 100644 --- a/Mesures/water-level/water-level_ruru_1/0_cron.lua +++ b/Mesures/water-level/water-level_ruru_1/0_cron.lua @@ -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 diff --git a/Mesures/water-level/water-level_ruru_1/0_tst5_socat.lua b/Mesures/water-level/water-level_ruru_1/0_tst5_socat.lua index 0daa852..ade8dbd 100644 --- a/Mesures/water-level/water-level_ruru_1/0_tst5_socat.lua +++ b/Mesures/water-level/water-level_ruru_1/0_tst5_socat.lua @@ -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 diff --git a/Mesures/water-level/water-level_ruru_1/_zremote_cmd.txt b/Mesures/water-level/water-level_ruru_1/_zremote_cmd.txt index d6d2618..265719e 100644 --- a/Mesures/water-level/water-level_ruru_1/_zremote_cmd.txt +++ b/Mesures/water-level/water-level_ruru_1/_zremote_cmd.txt @@ -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 diff --git a/Mesures/water-level/water-level_ruru_1/boot.lua b/Mesures/water-level/water-level_ruru_1/boot.lua index 9297b7a..0d9bfa4 100644 --- a/Mesures/water-level/water-level_ruru_1/boot.lua +++ b/Mesures/water-level/water-level_ruru_1/boot.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 diff --git a/Mesures/water-level/water-level_ruru_1/luatool.py b/Mesures/water-level/water-level_ruru_1/luatool.py index 29e183f..a9c7033 100755 --- a/Mesures/water-level/water-level_ruru_1/luatool.py +++ b/Mesures/water-level/water-level_ruru_1/luatool.py @@ -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)