diff --git a/Firmware/nodemcu-master-16-modules-2019-12-01-22-17-07-float.bin b/Firmware/nodemcu-master-16-modules-2019-12-01-22-17-07-float.bin new file mode 100644 index 0000000..02202ef Binary files /dev/null and b/Firmware/nodemcu-master-16-modules-2019-12-01-22-17-07-float.bin differ diff --git a/Firmware/nodemcu-master-16-modules-2019-12-01-22-17-07-float.pdf b/Firmware/nodemcu-master-16-modules-2019-12-01-22-17-07-float.pdf new file mode 100644 index 0000000..1915287 Binary files /dev/null and b/Firmware/nodemcu-master-16-modules-2019-12-01-22-17-07-float.pdf differ diff --git a/Mesures/humidity/bolo/README.md b/Mesures/humidity/bolo/README.md index 58c0c08..6b7b763 100644 --- a/Mesures/humidity/bolo/README.md +++ b/Mesures/humidity/bolo/README.md @@ -43,8 +43,7 @@ Il faut *flasher* le NodeMCU avec ce firmware: Avec ces modules: ``` -adc ds18b20 file gpio http i2c mdns mqtt net -node ow pcm rtctime sntp spi tmr uart wifi ws2812 +adc file gpio http i2c mqtt net node ow rtctime si7021 sntp tmr uart wifi ``` @@ -122,7 +121,7 @@ Seulement la corrélation entre les trois température https://thingspeak.com/apps/plugins/300559 -zf191201.2305 +zf191201.2315 pense bête: diff --git a/Mesures/humidity/bolo/_zremote_cmd.txt b/Mesures/humidity/bolo/_zremote_cmd.txt index ae15a9b..61727b4 100644 --- a/Mesures/humidity/bolo/_zremote_cmd.txt +++ b/Mesures/humidity/bolo/_zremote_cmd.txt @@ -1,5 +1,5 @@ # Quelques commandes remote (luatool) à envoyer avec le plugin Atom-IDE-terminal de l'éditeur Atom -# zf191124.2340 +# zf191201.2334 # si luatool ne marche pas sur le MAC, il faut lire ceci: # https://docs.google.com/document/d/1q64uK3IMOgEDdKaIAttbYuFt4GuLQ06k3FLeyfCsWLg/edit#heading=h.bmefcu67uwj0 @@ -12,8 +12,8 @@ # définitions à faire AVANT ! cd /Users/zuzu/Desktop/NodeMCU/NodeMCU_Lua/WIFI_sniffer/cret_project export luatool_tty="/dev/cu.wchusbserial1410" -export zIP="192.168.0.122" -export zIP="192.168.0.137" +export zIP="192.168.0.200" +#export zIP="192.168.0.137" export zport="23" cd '/Users/zuzu/Google Drive/FamilleZ Share/FamilleZ/Papa/LUA/NodeMCU ESP8266/NodeMCU_Lua/WIFI_sniffer/cret_project' @@ -49,7 +49,7 @@ zsort_rssi() zshow() #commandes luatool pour ce projet le .137 est à jour avec la nouvelle version du wifi ! ~. ./luatool.py --ip $zIP:$zport -l -./luatool.py --ip $zIP:$zport -f dir2.lua +./luatool.py --ip $zIP:$zport -f wifi_init.lua ./luatool.py --ip $zIP:$zport -f secrets_wifi.lua @@ -99,7 +99,7 @@ print(pcall(function () print("2"..t) end)) # ici c'est maintenant ;-) ~. ./luatool.py --ip $zIP:$zport -f b.lua ---./luatool.py --ip $zIP:$zport --zrestart +#./luatool.py --ip $zIP:$zport --zrestart telnet -rN $zIP $zport zsort_rssi() zshow() print(ztrig_rssi) diff --git a/Mesures/humidity/bolo/upload_s.sh b/Mesures/humidity/bolo/upload_s.sh index 456b088..9cad8c5 100755 --- a/Mesures/humidity/bolo/upload_s.sh +++ b/Mesures/humidity/bolo/upload_s.sh @@ -1,6 +1,6 @@ #!/bin/bash # Petit script pour télécharger facilement tout le binz via le port série -#zf191124.1019 +#zf191201.2323 # S'il y a des erreurs lors d'un téléchargement, il faut simplement augmenter un peu le délai ! # Il est préférable de télécharger en premier les *gros* fichiers .lua ! @@ -35,10 +35,10 @@ read -p "Est-ce bien vide ?" ./luatool.py --port $luatool_tty --bar -f flash_led_xfois.lua ./luatool.py --port $luatool_tty --bar -f dir2.lua ./luatool.py --port $luatool_tty --bar -f cat.lua -./luatool.py --port $luatool_tty --bar -f c.lua +#./luatool.py --port $luatool_tty --bar -f c.lua ./luatool.py --port $luatool_tty --bar -f boot2.lua ./luatool.py --port $luatool_tty --bar -f boot.lua -./luatool.py --port $luatool_tty --bar -f b.lua +#./luatool.py --port $luatool_tty --bar -f b.lua ./luatool.py --port $luatool_tty -l read -p "Pas eu d'erreur, on part à fond avec le init.lua ?" diff --git a/Mesures/humidity/bolo/wifi_init.lua b/Mesures/humidity/bolo/wifi_init.lua index 2728306..107fddf 100644 --- a/Mesures/humidity/bolo/wifi_init.lua +++ b/Mesures/humidity/bolo/wifi_init.lua @@ -1,13 +1,13 @@ -- Petit script pour initaliser la couche WIFI function wifi_init() - print("\n wifi_init.lua zf191030.2040 \n") + print("\n wifi_init.lua zf191201.2329 \n") -- charge les secrets pour le wifi f= "secrets_wifi.lua" if file.exists(f) then dofile(f) end - - wifi.setmode(wifi.STATIONAP,true) - - wifi.ap.config({ ssid = ap_ssid.." "..wifi.ap.getmac(), pwd = ap_pwd, save=true }) + + wifi.setmode(wifi.STATION,true) +-- wifi.setmode(wifi.STATIONAP,true) +-- wifi.ap.config({ ssid = ap_ssid.." "..wifi.ap.getmac(), pwd = ap_pwd, save=true }) wifi.sta.config{ssid=cli_ssid, pwd=cli_pwd, auto=true, save=true} wifi.sta.autoconnect(1) @@ -15,4 +15,3 @@ function wifi_init() end wifi_init() - diff --git a/zflash.sh b/zflash.sh index 34e117d..fb46c2d 100755 --- a/zflash.sh +++ b/zflash.sh @@ -3,7 +3,7 @@ #ATTENTION: c'est pour ma structure, il faudra donc l'adapter -#zf191021.0935 +#zf191201.2321 #test si l'argument est vide @@ -11,7 +11,7 @@ if [ -z "$1" ] then echo -e "\nSyntax: -./zflash.sh ../../Firmware/nodemcu-master-20-modules-2019-10-21-07-30-13-float.bin +./zflash.sh ../../Firmware/nodemcu-master-16-modules-2019-12-01-22-17-07-float.bin " exit