Skip to content

Latest commit

 

History

History

wegrow

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

WeGrow

Hamish Cunningham, Gareth Coleman and The.Crowd.Works

TODO

  • better control structure in init.lua
  • finish soil moisture sensor
  • add a reset button option via GPIO that deletes the skip file and restarts
  • HTTPS
  • captive portal code to redirect all requests to the server
    • get softap to include a DNS server IP in its connection data
    • listen on port 53; when anyone sends anything direct to the device IP (192.168.4.1)
    • for any HTTP GET send redirect to https://something.or.other/
    • for any HTTPS GET send the configure form

tmr.alarm(0, 1000, 1, function() ipaddr = wifi.sta.getip() if ipaddr == nil then print("waiting for IP") -- DEBUG else print("got IP: ", ipaddr) -- DEBUG tmr.stop(0) ...() end end)