doodle3d-firmware/src
Wouter R 9dd2928755 Change REST API to obtain module/function arguments from URL path; move several network settings to config.h. 2013-07-11 10:39:49 +02:00
..
network Change REST API to obtain module/function arguments from URL path; move several network settings to config.h. 2013-07-11 10:39:49 +02:00
rest Change REST API to obtain module/function arguments from URL path; move several network settings to config.h. 2013-07-11 10:39:49 +02:00
script Logging now prints to stderr, which is redirected to a log file; cgi handler always responds with json; test API implemented; several bug fixes. 2013-07-08 13:37:19 +02:00
util Change REST API to obtain module/function arguments from URL path; move several network settings to config.h. 2013-07-11 10:39:49 +02:00
www@ae4e8e080b Added client submodule 2013-07-05 19:31:45 +02:00
www experiment Moved moved www experiment code away for new client submodule 2013-07-05 19:26:04 +02:00
Makefile Restructure src directory; add GPX utility 2013-05-14 16:09:01 +02:00
README Code restructure. 2013-06-28 13:47:45 +02:00
config.lua Change REST API to obtain module/function arguments from URL path; move several network settings to config.h. 2013-07-11 10:39:49 +02:00
logger.lua Logging now prints to stderr, which is redirected to a log file; cgi handler always responds with json; test API implemented; several bug fixes. 2013-07-08 13:37:19 +02:00
main.lua Fix response sending when init() fails; create config.lua to contain global configuration; improve API function resolution; improve API code structure. 2013-07-10 01:23:16 +02:00

README

NOTE: text below is otudated, take it with a grain of salt.
-----

Installation:
- make sure radio0 in /etc/config/wireless is not disabled
- the wlan net must also be added to firewall in the lan zone

== these steps are performed by the package installer
- (ignore) place the src directory in /usr/share/lua and name it 'autowifi'
- (ignore) create a symlink to ext/wfcf in /www/cgi-bin (make sure the file is executable)
- (ignore) create a symlink to admin in /www
- (ignore) create a symlink to ext/autowifi_init in /etc/rc.d and name it S18autowifi_init

== these two items are now handled by the script
- create a wlan network in /etc/config/network as follows <<EOF
config interface 'wlan'
	option ifname 'radio0'
	option proto 'dhcp'
EOF
  NOTE: apparently it should have no ifname (network reload will complain about an unsupported operation)
- HOWEVER in ap mode it should be static with address '192.168.10.1' and netmask '255.255.255.0'
  AND act as dhcp server, add to /etc/config/dhcp <<EOF
config dhcp 'wlan'
	option interface 'wlan0'
	option start '100'
	option limit '150'
	option leasetime '12h' 
EOF