Corrigé les todo des différents projets en cours
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom
|
# Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom
|
||||||
# zf191228.2312
|
# zf200101.1304
|
||||||
|
|
||||||
Todo à faire pour ce projet !
|
Todo à faire pour ce projet !
|
||||||
|
|
||||||
@@ -11,6 +11,11 @@ Todo à faire pour ce projet !
|
|||||||
- if verbose print partout dans 0_send_data.lua
|
- if verbose print partout dans 0_send_data.lua
|
||||||
- garder variable node_id pour identification après poweron général, reattribution adrs ip sur modem 4G
|
- garder variable node_id pour identification après poweron général, reattribution adrs ip sur modem 4G
|
||||||
- indiquer nodeMCU name du dhcp modem 4G dans table liste adresses ip
|
- indiquer nodeMCU name du dhcp modem 4G dans table liste adresses ip
|
||||||
|
- passer à 10 secondes la seconde chance
|
||||||
|
- passer à 15x les tentatives de connexions au WIFI
|
||||||
|
- déplacer le mode AP dans wifi_init
|
||||||
|
- ajouter le web_srv2 dans boot au lieu de boot2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,29 +1,21 @@
|
|||||||
# Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom
|
# Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom
|
||||||
# zf191226.1236
|
# zf200101.1304
|
||||||
|
|
||||||
Todo à faire pour ce projet !
|
Todo à faire pour ce projet !
|
||||||
|
|
||||||
- mettre un pkill -f '21223' dans zautossh après avoir testé le tunnel
|
-
|
||||||
|
|
||||||
- ajouter 2e opiz dans make_tunnels.sh
|
|
||||||
|
|
||||||
- ajouter argument ok dans make_tunnels.sh
|
|
||||||
|
|
||||||
- ajouter th00 dans check_all.sh et sauvegarder les resultats dans th00.txt, th0.txt...th4.txt
|
|
||||||
|
|
||||||
- ajouter fonction restart dans zindex.html (argument restart)
|
- ajouter fonction restart dans zindex.html (argument restart)
|
||||||
|
|
||||||
- ajouter argument ok dans wifi_init.html
|
- ajouter argument ok dans wifi_init.html
|
||||||
|
|
||||||
- ajouter get_data() dans 0_send_data.lua
|
- ajouter get_data() dans 0_send_data.lua
|
||||||
|
|
||||||
- cron 10 seconde get_data avec moyenne et cron 300 sendata et zero moyenne
|
- cron 10 seconde get_data avec moyenne et cron 300 sendata et zero moyenne
|
||||||
|
|
||||||
- if verbose print partout dans 0_send_data.lua
|
- if verbose print partout dans 0_send_data.lua
|
||||||
|
|
||||||
- garder variable node_id pour identification après poweron général, reattribution adrs ip sur modem 4G
|
- garder variable node_id pour identification après poweron général, reattribution adrs ip sur modem 4G
|
||||||
|
|
||||||
- indiquer nodeMCU name du dhcp modem 4G dans table liste adresses ip
|
- indiquer nodeMCU name du dhcp modem 4G dans table liste adresses ip
|
||||||
|
- passer à 10 secondes la seconde chance
|
||||||
|
- passer à 15x les tentatives de connexions au WIFI
|
||||||
|
- déplacer le mode AP dans wifi_init
|
||||||
|
- ajouter le web_srv2 dans boot au lieu de boot2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,19 @@
|
|||||||
# Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom
|
# Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom
|
||||||
# zf191228.2312
|
# zf200101.1304
|
||||||
|
|
||||||
Todo à faire pour ce projet !
|
Todo à faire pour ce projet !
|
||||||
|
|
||||||
-
|
|
||||||
- ajouter fonction restart dans zindex.html (argument restart)
|
- ajouter fonction restart dans zindex.html (argument restart)
|
||||||
- ajouter argument ok dans wifi_init.html
|
- ajouter argument ok dans wifi_init.html (sécurité)
|
||||||
- ajouter get_data() dans 0_send_data.lua
|
- faire la page web service pour allumer la LED
|
||||||
- cron 10 seconde get_data avec moyenne et cron 300 sendata et zero moyenne
|
- faire la page web service pour allumer le relay
|
||||||
- if verbose print partout dans 0_send_data.lua
|
- if verbose print partout dans 0_send_data.lua
|
||||||
- garder variable node_id pour identification après poweron général, reattribution adrs ip sur modem 4G
|
- garder variable node_id pour identification après poweron général, reattribution adrs ip sur modem 4G
|
||||||
- indiquer nodeMCU name du dhcp modem 4G dans table liste adresses ip
|
v- passer à 10 secondes la seconde chance
|
||||||
|
v- passer à 15x les tentatives de connexions au WIFI
|
||||||
|
v- déplacer le mode AP dans wifi_init
|
||||||
|
v- ajouter le web_srv2 dans boot au lieu de boot2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -54,7 +57,7 @@ export zIP="192.168.0.113"
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
export zIP="192.168.0.143"
|
export zIP="192.168.0.156"
|
||||||
export zport="23"
|
export zport="23"
|
||||||
|
|
||||||
cd '/Users/zuzu/Google Drive/FamilleZ Share/FamilleZ/Papa/LUA/NodeMCU ESP8266/NodeMCU_Lua/Mesures/humidity/bolo
|
cd '/Users/zuzu/Google Drive/FamilleZ Share/FamilleZ/Papa/LUA/NodeMCU ESP8266/NodeMCU_Lua/Mesures/humidity/bolo
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
-- le script repair.lua pendant xx secondes avant de continuer
|
-- le script repair.lua pendant xx secondes avant de continuer
|
||||||
--Source: https://nodemcu.readthedocs.io/en/master/en/modules/node/#nodebootreason
|
--Source: https://nodemcu.readthedocs.io/en/master/en/modules/node/#nodebootreason
|
||||||
|
|
||||||
print("\n init.lua zf200101.1223 \n")
|
print("\n init.lua zf200101.1301 \n")
|
||||||
|
|
||||||
function initz()
|
function initz()
|
||||||
zswitch=3 --switch flash ou SonOff
|
zswitch=3 --switch flash ou SonOff
|
||||||
@@ -55,3 +55,19 @@ function initz()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
initz()
|
initz()
|
||||||
|
|
||||||
|
--[[
|
||||||
|
zLED=7
|
||||||
|
gpio.mode(zLED, gpio.OUTPUT)
|
||||||
|
gpio.write(zLED, gpio.LOW) -- actif !
|
||||||
|
gpio.write(zLED, gpio.HIGH)
|
||||||
|
|
||||||
|
zBTN=3
|
||||||
|
gpio.mode(zBTN, gpio.INPUT)
|
||||||
|
print(gpio.read(zBTN))
|
||||||
|
|
||||||
|
zRELAY=6
|
||||||
|
gpio.mode(zRELAY, gpio.OUTPUT)
|
||||||
|
gpio.write(zRELAY, gpio.HIGH) -- actif !
|
||||||
|
gpio.write(zRELAY, gpio.LOW)
|
||||||
|
]]
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
-- Petit script pour initaliser la couche WIFI
|
-- Petit script pour initaliser la couche WIFI
|
||||||
|
|
||||||
function wifi_init()
|
function wifi_init()
|
||||||
print("\n wifi_init.lua zf200101.1236 \n")
|
print("\n wifi_init.lua zf200101.1302 \n")
|
||||||
-- charge les secrets pour le wifi
|
-- charge les secrets pour le wifi
|
||||||
f= "secrets_wifi.lua" if file.exists(f) then dofile(f) end
|
f= "secrets_wifi.lua" if file.exists(f) then dofile(f) end
|
||||||
f= "secrets_project.lua" if file.exists(f) then dofile(f) end
|
f= "secrets_project.lua" if file.exists(f) then dofile(f) end
|
||||||
|
|
||||||
wifi.setmode(wifi.STATIONAP,true)
|
wifi.setmode(wifi.STATIONAP,true)
|
||||||
|
|
||||||
wifi.sta.config{ssid=cli_ssid, pwd=cli_pwd, auto=true, save=true}
|
wifi.sta.config{ssid=cli_ssid, pwd=cli_pwd, auto=true, save=true}
|
||||||
@@ -14,7 +14,7 @@ function wifi_init()
|
|||||||
if node_id == nil then node_id = "generic" end
|
if node_id == nil then node_id = "generic" end
|
||||||
wifi.ap.config({ ssid = ap_ssid.."_"..node_id, pwd = ap_pwd, save=true })
|
wifi.ap.config({ ssid = ap_ssid.."_"..node_id, pwd = ap_pwd, save=true })
|
||||||
ap_ssid=nil ap_pwd=nil
|
ap_ssid=nil ap_pwd=nil
|
||||||
|
|
||||||
wifi_init2=tmr.create()
|
wifi_init2=tmr.create()
|
||||||
wifi_init2:alarm(60*1000, tmr.ALARM_SINGLE, function()
|
wifi_init2:alarm(60*1000, tmr.ALARM_SINGLE, function()
|
||||||
print("BOOOOUM, y'a plus de AP WIFI !")
|
print("BOOOOUM, y'a plus de AP WIFI !")
|
||||||
@@ -48,15 +48,3 @@ function wifi_init()
|
|||||||
end
|
end
|
||||||
|
|
||||||
wifi_init()
|
wifi_init()
|
||||||
|
|
||||||
--[[
|
|
||||||
zLED=7
|
|
||||||
gpio.mode(zLED, gpio.OUTPUT)
|
|
||||||
gpio.write(zLED, gpio.HIGH)
|
|
||||||
gpio.write(zLED, gpio.LOW)
|
|
||||||
|
|
||||||
zSWITCH=3
|
|
||||||
gpio.mode(zSWITCH, gpio.INPUT)
|
|
||||||
print(gpio.read(zSWITCH))
|
|
||||||
|
|
||||||
]]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user