Skip to content

Files

Latest commit

6360ab9 · Nov 2, 2015

History

History

wegrow

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 2, 2015
Nov 2, 2015
Nov 2, 2015
Nov 2, 2015
Nov 2, 2015
Nov 2, 2015
Nov 2, 2015
Nov 2, 2015
Nov 2, 2015
Nov 2, 2015
Nov 2, 2015
Nov 2, 2015

README.mkd

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)