Godzil
363c7a8dd5
Use file.exists instead of open/close when relevant
2017-09-05 15:03:23 +01:00
Manoël Trapier
b5baf6cd48
Fix mistake in config file ( #107 )
2017-09-04 20:42:47 -05:00
Manoël Trapier
28fbb6e7a7
now user proper table based parameter for wifi.ap.setip instead of a string ( #106 )
2017-09-03 17:40:38 -05:00
Gerhard Schwärzler
0f852665ec
WiFi configuration using new, table based API ( #105 )
2017-07-26 16:25:14 -05:00
Marcos Kirsch
dacaf31dc6
Get README.md is up to date.
2017-07-02 22:40:40 -05:00
Marcos
7b25c727fe
Make authenticated username available to scripts. ( #100 )
...
See node_info.lua for usage example.
2017-07-02 21:44:26 -05:00
Marcos
a2ebdee334
Trivial typos in http/counter.html ( #99 )
...
* Handle "nil", add more info
* Split up subnet mask, move unit to the end.
* typos
2017-07-02 21:37:40 -05:00
Gregor Hartmann
a17a0d40ca
fix #96 Basic HTTP Authentication ( #98 )
2017-07-02 10:54:30 -05:00
Marcos Kirsch
251522299a
Save as UTF-8 with DOM so browser can render correctly.
2017-07-01 22:28:31 -05:00
Marcos Kirsch
2bd72a8337
fix typos
2017-07-01 22:26:20 -05:00
Marcos
2bdb2d458c
Improve node info.lua ( #95 )
...
* Handle "nil", add more info
* Split up subnet mask, move unit to the end.
2017-07-01 22:19:38 -05:00
Marcos
7cdbe0ffd0
Move init.lua code into 3 smaller files. Consolidate server configuration. ( #94 )
...
* Move server initialization out of init.lua and into new httpserver-init.lua
* Use wildcard for finding server files to upload.
* Break init.lua up into 3 files. Move all configuration to httpserver.conf.
New files are:
* httpserver-compile.lua
* httpserver-wifi.lua
* httpserver-init.lua
2017-07-01 22:01:45 -05:00
Marcos
adde150009
Overhaul garage door example ( #93 )
...
* script for controlling garage that is aware of door states
* Overhaul garage door example
Hardware now calls for reed relay in order to be able to tell the state
of the switch. This way, we can have distinct open/close operations
that error if the door is already in that state. Allows for potential
better integration with home automation systems.
* Prepare for push to GitHub
* Restore defaults
* Make HTTP auth realm match zeroconf networking name
2017-07-01 15:18:11 -05:00
Marcos
a96ebc6196
Merge pull request #92 from HHHartmann/LoadTestPageload
...
Add stresstest reload page
2017-06-01 21:45:44 -05:00
Gregor
1a364c3585
Add stresstest reload page
2017-06-01 22:36:30 +02:00
Marcos
59665a1a87
Merge pull request #86 from HHHartmann/WrongParameter
...
httpserver-header.lc requires the file extension not the MIME type
2017-05-31 22:02:02 -05:00
Marcos
737477c725
Merge pull request #90 from HHHartmann/BugFixErrorpage
...
use correct code for erropage instead of failing
2017-05-31 21:47:42 -05:00
Marcos
a09b4b4758
Merge pull request #91 from HHHartmann/BetterLoggingAndMoreCloseConnections
...
Improve logging and cleanup when ConnectionThread failes
2017-05-31 21:43:23 -05:00
Gregor
c44deb097c
using args.code now
2017-06-01 04:36:29 +02:00
Gregor
122bb889c9
comment out print statement
2017-06-01 04:31:10 +02:00
Gregor
f24d6e908b
Fix typo
2017-06-01 04:28:52 +02:00
Gregor
addda8dbe7
use correct code for erropage instead of failing
...
Sorry I didn't see this earlier
2017-05-31 22:27:29 +02:00
Gregor
d68dfc75f9
Merge remote-tracking branch 'refs/remotes/marcoskirsch/master' into BetterLoggingAndMoreCloseConnections
2017-05-31 21:19:38 +02:00
Gregor
3b0e3d0aab
Merge remote-tracking branch 'refs/remotes/marcoskirsch/master' into development
2017-05-31 21:16:52 +02:00
Marcos
b6b3fec539
Merge pull request #89 from HHHartmann/FilterInvalidRequest
...
filter invalid requests
2017-05-29 22:41:01 -05:00
Marcos
593f82fc0a
Merge pull request #88 from HHHartmann/WrongParameter2
...
Call to log had wrong parameters
2017-05-29 22:40:23 -05:00
Marcos
578454b254
Merge pull request #87 from HHHartmann/ErrorWithHeader
...
use httpserver-header.lua in httpserver-error.lua implementation
2017-05-29 22:39:47 -05:00
Marcos
42f9b17e8a
Merge pull request #85 from HHHartmann/apNulError
...
fix nodeinfo_lua for AP more.
2017-05-29 22:37:51 -05:00
Gregor
e4d829b6c9
Improve Connection Close handling
...
close connection on coroutine errors and improve logging around closieg
connections.
Release memory warlier
2017-05-29 21:25:35 +02:00
Gregor
f7bb7303e2
filter invalid requests
...
sometimes I observe requests which are malformed (seem to be binary
data) so everything that does not have a method and request (url)
defined gets kicked.
2017-05-29 21:10:51 +02:00
Gregor
9b10383cb6
Call to log had wrong parameters
...
The parameter should be the connection itself. Log then calls getpeer on
it
2017-05-29 21:04:39 +02:00
Gregor
9b33c564db
use httpserver-header.lua in httpserver-error.lua implementation
...
Add all HTTP response codes used in the project
allow extra headers to be passed
2017-05-29 20:55:42 +02:00
Gregor
3833ec8a7b
httpserver-header.lc requires the file extension not the MIME type
2017-05-29 19:13:30 +02:00
Gregor
54b6525805
fix nodeingo_lua for AP more.
...
wifi.sta.getip() is nul in AP mode
2017-05-29 18:51:48 +02:00
Marcos
90cb4e47aa
Merge pull request #79 from stephanMettler/master
...
Update httpserver.lua
2017-03-03 08:08:28 -05:00
smet
79313b0644
Update httpserver.lua
...
fixed typo
2017-03-03 05:18:56 +01:00
Marcos Kirsch
2dea3c9daa
Restart if can't connect or connection is lost
...
Use wifi.eventmon to start server once we have IP, rather than checking
in a loop.
Use wifi.eventmon to restart server if connection is lost.
Use a timer to check if we ever even got a connection after 30 seconds.
Cleaned some other things up.
2017-02-05 08:42:16 -06:00
Marcos Kirsch
6ab6fcfff1
Modify for more standard hardware Wemos D1 Pro and its relay shield.
2017-02-04 23:18:16 -06:00
Marcos Kirsch
cc2173e334
Improve wording, ordering of links
2017-02-04 22:23:44 -06:00
Marcos Kirsch
2e25a63807
Improved logging via serial.
...
Created a single log function that prints a standard message that
includes IP and port of client. Remove or commented out other debug
prints.
2017-02-04 21:50:57 -06:00
Marcos Kirsch
6efa4ce3c0
Add simple text example
2017-01-27 22:22:31 -06:00
Marcos Kirsch
87e1a4babc
upload.html fixes
...
Minor modifications so it works without zipping and without compiling
lua. Fits well on WEMOS D1 Pro - we’ll see if anyone complains.
2017-01-27 22:13:50 -06:00
Marcos
d27251c698
Merge pull request #76 from marcoskirsch/dev
...
Merge pull request #75 from marcoskirsch/master
2017-01-27 22:01:14 -06:00
Marcos
189e4a5c56
Merge pull request #75 from marcoskirsch/master
...
Merge master to dev
2017-01-27 21:59:05 -06:00
Marcos
1a5f7507be
Merge branch 'dev' into master
2017-01-27 21:58:50 -06:00
Marcos
dbeaf452bd
Merge pull request #74 from ATAMAH/dev
...
Upload form for nodemcu-httpserver
2017-01-27 21:52:03 -06:00
ATAMAH
bc3ffffa0c
Upload form for nodemcu-httpserver
...
Now you can update your files in /http directory of your tiny webserver
over Wi-Fi!
Drag&drop or browse one or multiple files.
List uploaded files.
Delete files.
Automatically rename files to http/(filename)
Automatically compile .lua files.
Shows total/used memory.
You must compile upload.lua file!
Have some bugs but works pretty well even for uploading lot of files.
2017-01-23 12:36:46 +03:00
Marcos Kirsch
76750ab99a
Fixed formatting, and added more info on how this stress test crashes and hints on further testing.
2017-01-01 23:09:48 -06:00
Marcos Kirsch
c59af98e19
Change reference to number of images loaded by cars.html more ambiguous, in case that ever changes rendering this incorrect.
2017-01-01 23:09:08 -06:00
Marcos Kirsch
dba1ca7968
Fix - make fileHandle and clean it up, so it plays nice with coroutines.
2017-01-01 23:02:18 -06:00