From 335f03a0c70e81e433c94e5224718bfc5c93a665 Mon Sep 17 00:00:00 2001 From: bwagstaff <8354948+bwagstaff@users.noreply.github.com> Date: Thu, 6 Aug 2020 17:46:15 -0500 Subject: [PATCH] make wifi interface a little more friendly For #5 make wifi interface a little more friendly. * Add an index.html page to the SPIFFS tree * Add a favicon because browsers spam the network for it if they can't find one, and the ~2KB of storage is a small price to pay. * Add some more info to the info page which I have found useful. --- data/favicon.ico | Bin 0 -> 1150 bytes data/index.htm | 20 ++++++++++++++++++++ src/webserver/webserver.cpp | 6 ++++-- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 data/favicon.ico create mode 100644 data/index.htm diff --git a/data/favicon.ico b/data/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..71b25fe6ee6012a4c26602977262d217af885520 GIT binary patch literal 1150 zcmd5)T}YZ?6n@3p3@y{hrv0dyWg4`Ks8LiSs1Zp~iZo)Ag)vw}5=AXod1FBkBZ8nH zm^Z-|?V=!w1lNUBASeXo@J`0^VlWvo2dii2d%G#v{l>?6f6jZJbDr~@k1-K_xw(v1 z9ebI0x7Iqot*#Mb_8XCpMW( zReHVNRa#m)qtR%dYqeVa%E}7s=;*k^yt%pgaZOFlCyT}Mt)ikLSyomSAdHVNiTwQh zYlT9AoSdAi?Ck6_l}cqxrBb4{wllAZC#W|h5(!LCPa_ZrfO4a^w-*$T#l=O$<8hpvoWSq* zr+q%3e_~?7OnSW+IMa^f<71qjo??H0AF)^rR;v~3>+77){QNxD*47Y-M377-5sgNF zZ*FeBB8@*378YW1auP>JN7&xpMmQYC!NCEBhljDWw8S}YZEay}Y>emI+uIY~)4^cy z8F70`_|(9_00svKF*G!U(a}+OJRTk|_-LM-)6~=yc6N5SQH{@((@6bGii?Y1E0xNx zGMVg3&{-mpfX*l>DM4Lb9lE=_xgNW_yPVhI;UPky&|8{|m^5NE!wk}(ie_b}IlBq} zMVOVKdwqR9$B&PX3*3JY_m9Nk&GPc{gN==iJO5F2bv2uvofXmS?P|3;LfBta`3zy6F#O-#g&(F`<>gww4@PB>= d7!xdbpRqYH(Gg7acUp7g|4wmf`3*+E{Q*gMMA`rV literal 0 HcmV?d00001 diff --git a/data/index.htm b/data/index.htm new file mode 100644 index 0000000..9e2793c --- /dev/null +++ b/data/index.htm @@ -0,0 +1,20 @@ + + + + + Web Interface + + +

TTGo Watch Web Server

+

This is your device, program it as you see fit. +

Here are some URLs the device already supports, which you might find helpful: +

+

Caution:
Use these with care: +