Gregor Hartmann
ca4fb20c00
Serve static pages efficiently. Fix #53 ( #118 )
...
* 1st draft to serve static files faster
* Allow serving 5 images in a page
the 6th image cannot be served as the esp does not open more than 5 connections at the same time
* win the prize
* Update comments
2019-11-14 11:58:56 -06:00
Gregor Hartmann
7c8fe9c164
Upload for all files fix 119 ( #120 )
...
* allow uploading files not only to http + replace symbol images by unicode symbols
allow uploading files to root dir and http.
+ replace symbol images by unicode symbols
* backend for uploading arbitrary files
* fix uploading to http
2018-01-14 22:02:51 -06:00
Gregor Hartmann
5cf303de79
make cars dynamic to load 1 to 6 cars ( #114 )
...
For lazy people like me for not having to change the page by hand every
time.
+ adding 2 more cars.
2017-10-02 11:15:12 -05:00
Gregor Hartmann
c67ed16e10
Support long filenames in upload ( #115 )
...
appending '.dnl' to the filename shortens the available filename length by 4 chars. Now a long filename ist cut off first and then the dnl is appended resulting in a unique but short enough temp filename.
2017-10-02 08:50:47 -05:00
Dmitry
a70fa745b0
Small fix to upload form ( #117 )
...
Fixed bug when you cannot browse or D&D same file multiple times without reloading the whole page.
2017-10-02 08:49:49 -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 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
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
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 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
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
1a5f7507be
Merge branch 'dev' into master
2017-01-27 21:58:50 -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
2165484413
Add file.fscfg() results to example.
2017-01-01 22:12:52 -06:00
Marcos Kirsch
f9d94d9aa2
Fixed typo in HTML and reduced file size of image.
2016-02-21 22:11:03 -06:00
Marcos Kirsch
86b00f922c
Added example that loads several images as a stress test. This does not currently work.
2016-02-21 11:32:35 -06:00
Marcos Kirsch
d71b079932
clean up, but example does not work at this time
2016-02-15 22:54:19 -06:00
Marcos Kirsch
11dde7075b
Added a second link to zipped file, with gz extension
2016-02-15 22:48:53 -06:00
Marcos Kirsch
5ccc69dc73
Updated examples to remove yields, pass req param. Integration woes.
2016-02-15 22:33:30 -06:00
Marcos Kirsch
d31b2d2c89
No need to yield. Conditionally show form. Updated title.
2016-02-15 22:31:48 -06:00
Marcos Kirsch
fbc6506faa
Merged with main repository
2016-02-15 20:54:11 -06:00
Marcos Kirsch
64f07cb38d
Change NodeMCU firmware link to point to github project.
2016-02-15 14:21:16 -06:00
Marcos Kirsch
4d4442318d
Fix example server-side scripts to work on new nodemcu-firmware. Specifically, call coroutine.yield() after each connection:send() except the last one, since we can no longer queue sends.
2016-02-15 14:20:28 -06:00
Philip Gladstone
9fee6ee8e8
Removed another unused file
2015-11-28 16:36:53 -05:00
Philip Gladstone
a54159b39f
Remove unused file
2015-11-28 12:23:22 -05:00
Philip Gladstone
8a195cb798
Reduce memory requirements a bit and fix weird issue in node_info.lua
...
example
2015-11-28 12:22:20 -05:00
Philip Gladstone
b4a2d02431
Fix the problem with the more modern SDK only allowing one outstanding
...
connection:send at a time. Long and short of it, don't use coroutine.yield
any more when serving content.
2015-11-22 13:39:03 -05:00
Ryan Voots
ef340bc82a
Implement support for more arbitrary HTTP methods. Allows GET PUT and POST. With minor changes needed to support others
2015-08-31 18:28:03 -07:00
TJ Borromeo
e52ca7731f
Update node_info.lua
...
reducing overhead from extra sends probably well beneath buffer limits
2015-07-20 13:22:38 -07:00
Marcos
350c868063
Merge pull request #28 from borromeotlhs/patch-7
...
Update args.lua
2015-07-19 09:19:05 -05:00
Marcos Kirsch
e49eec62d3
Fix: show minor version. Improve formatting
2015-07-19 09:03:37 -05:00
TJ Borromeo
19bac62e07
Update args.lua
2015-07-18 21:51:09 -07:00
Marcos Kirsch
f62995cf18
Update GPIO lines to use GPIO1 and GPIO2 on NodeMCU devkit 1
2015-07-18 22:43:10 -05:00
Marcos Kirsch
b017526d71
Show size, used, available space in file system
2015-07-18 22:42:29 -05:00
TJ Borromeo
25a7313af5
Update file_list.lua
...
get rid of variables if not actually used. Create variables only when a condition to use them is met.
2015-07-17 14:17:09 -07:00
Marcos Kirsch
453f38b52f
Small wording improvement
2015-04-19 23:40:36 -05:00
Marcos Kirsch
c7b20c0674
shortened file
2015-04-19 23:38:25 -05:00
Marcos Kirsch
0cc7a8b7be
Fix issue 16: gzip example files are too large, replace with much smaller one
2015-04-19 14:48:29 -05:00
Marcos Kirsch
572732fd44
Add sample file with a form using method POST
2015-04-18 23:12:04 -05:00
Artem Pastukhov
596d9dd06b
Fixes
2015-04-02 16:11:33 +03:00