Mis à jour la docu des fichiers 'secrets'

This commit is contained in:
Christian Zufferey
2020-01-10 18:27:00 +01:00
parent be32296b38
commit ac5e21678e
3 changed files with 43 additions and 40 deletions

View File

@@ -2,28 +2,25 @@
-- et que l'on n'aimerait pas être exportés sur Internet (github)
-- Il faut donc modifier le .gitignore avec secrets*.lua
-- il faut le renommer en 'secrets_project.lua' et sera exécuté
-- par 'boot2.lua' au moment du boot
-- par 'wifi_init.lua' au moment du boot
function secrets_project()
print("\n secrets_project.lua zf191222.1709 \n")
print("\n secrets_project.lua zf20011.1818 \n")
influxdb_url="http://www.xxx.ml:8086/write?db=xxx&u=admin&p=xxx"
--zLED=4 -- NodeMCU
zLED=7 -- SonOff
zRELAY=6 -- SonOff
influxdb_url="http://xxx:8086/write?db=yyy&u=uuu&p=ppp"
print("influxdb_url: "..influxdb_url)
influxdb_table="tutu"
print("influxdb_table: "..influxdb_table)
node_id = "generic"
if node.chipid() == 3049014 then node_id = "0" end
if node.chipid() == 3049553 then node_id = "1" end
if node.chipid() == 14975023 then node_id = "2" end
if node.chipid() == 14972372 then node_id = "3" end
if node.chipid() == 12557128 then node_id = "4" end
if node.chipid() == 3048165 then node_id = "5" end
if node.chipid() == 14973009 then node_id = "6" end
if node.chipid() == 6734851 then node_id = "sonoff_1" end
if node.chipid() == 3049119 then node_id = "adc_1" end
print("node_id: "..node_id)
end
secrets_project()
secrets_project=nil