409 Commits
Author SHA1 Message Date
Dave MadisonandAndreas Breitschopp 8e4c612fa3 Add user custom header/footer functions (#1769)
* Added setCustomTopBodyElement allowing to define custom HTML to be added at the top of the "<body>" tag.

* Change custom top body element to 'header'

This will make more sense once a footer is added. No functional changes.

* Make custom header concat conditional

Matching the _bodyClass comparison above

* Create getHTTPEnd function

* Add custom body footer functionality

* Fix <small> close tag on update page

* Add missing HTTP ends to exit and close

* Remove 'immediately' from header/footer desc

It's not immediate, the 'wrap' div is added before/after.

---------

Co-authored-by: Andreas Breitschopp <a-breitschopp@ab-tools.com>
2024-12-12 16:40:11 -06:00
Jos Zuijderwijk 0fad7f50d1 Replace deprecated type (#1748) 2024-12-10 21:06:50 -06:00
Dave Madison 9333ec68ed Add CSS body classes for each page (#1767)
* Add body classes argument

Note that the additional function argument for getHTTPHead() includes a default argument for backwards compatibility with the API.

* Add page-specific classes

Allows easy styling of each page

* Change root CSS class to 'home'

Trying to avoid confusion between the class for the root level and the CSS ":root" pseudo-class

* Use conditional body class spacing

Avoids an extra space if a body class is set, but an empty string is passed to the function
2024-12-10 20:56:58 -06:00
tablatronix b1720d2981 disable agressivereconn test method 2024-02-19 21:47:44 -06:00
Yohan Lasorsa 20535edf27 Allow subclassing (#1698) 2024-01-13 09:51:39 -06:00
tablatronix 73da98b3ec Remove S3 NOTEMP 2023-12-31 12:39:34 -06:00
tablatronix 3efb536629 disable captiveportal for webportal 2023-11-17 19:37:44 -06:00
tablatronix 94529cd08b turn off preload and async scanning
Until more qa can be done here , I have reports of these causing issues and first scans being empty on latest IDF and chips
2023-11-03 22:18:26 -05:00
tablatronix 0d07e09a44 Merge branch 'master' of https://github.com/tzapu/WiFiManager 2023-09-18 18:20:48 -05:00
tablatronix 5a8e869a7e add workaround for #1543
@etoten thanks, slight change, Might have to add ipv6 detection instead and handle it that way
2023-09-18 18:18:12 -05:00
tablatronix 465b44d734 localize debuglevel enum, add method 2023-09-18 18:14:18 -05:00
tablatronix eb27c525e3 move 404 handler public, remove 404 info, add examples for overrides 2023-09-08 13:27:15 -05:00
tablatronix ca5df00d60 fix HTTPSend copy 2023-03-15 21:17:46 -05:00
tablatronix ccf04aa5b0 added some http debugging 2023-03-15 17:54:47 -05:00
tablatronix 32b6bda04c fixes #1532 2022-12-15 14:41:21 -06:00
tablatronix fe9774fe0f lower debug level 2022-11-28 16:34:44 -06:00
Shawn A 0080e3581e Refactor strings BREAKING (#1474)
* refactor strings, split out consts breaking!

* move consts out of strings file BREAKING

You will have to remove the constants from your strings files and add the new include instead, a simple diff should obviously show the changes

* adds WM_STRINGS_FILE for env overrides

* Revert "move consts out of strings file BREAKING"

This reverts commit bb9f092413153825d8e7acde1dcc1489e840df1e.

* Create wm_strings_en.h

* final clean up of strings_en.h, legacy

* comments
2022-11-28 16:15:20 -06:00
tablatronix dbefaed1a2 fix #1509 2022-10-14 11:34:50 -05:00
tablatronix 696b920273 update rtc for resetreasons on multiple models 2022-09-20 22:11:52 -05:00
tablatronix 9eee18ab32 add esp32 temp sensor back 2022-09-20 22:08:54 -05:00
tablatronix d5536fbc69 remove workardound for arduino 2.0.5 #1482 2022-09-20 19:37:26 -05:00
Thiti Yamsung c34770ec32 feat(callback): add config portal timeout callback for handle config portal timeout (#1497) 2022-09-15 07:07:55 -05:00
tablatronix 7bdcfd501e fix esp8266 versioning 2022-09-01 15:27:31 -05:00
tablatronix 60efff754e fix redefine 2022-09-01 11:53:53 -05:00
tablatronix 62d951c8e4 try to fixup arduino version debugging info 2022-09-01 10:43:44 -05:00
tablatronix 201ad2e838 Disable temp sensor for all esp32 until can find a better check 2022-09-01 07:54:41 -05:00
tablatronix d04d1f677b enabling #538
Turning on wifi scan preload and async scanning, with hardcoded cachetime of 30seconds. Should make wifi page load faster, and make interface seem smoother. Will have to test with various enviroments and on S2/x3 chips
2022-08-31 16:40:01 -05:00
tablatronix 58baeaba6f adds temporary fallbacks for esp32 set country
Find better way to check version feature check, arduino ver is not always available.
2022-08-09 10:59:33 -05:00
tablatronix 06c63720f6 #1421
remove temp
2022-06-26 16:39:33 -05:00
tablatronix a2c33744f6 rename wifi callbacks 2022-06-17 14:21:13 -05:00
tablatronix 317c026952 adds setPreSaveParamsCallback
//called when saving params before anything else happens
    void          setPreSaveParamsCallback( std::function<void()> func );
2022-06-17 14:07:11 -05:00
tablatronix b257590e98 comments 2022-06-17 11:46:49 -05:00
Perry e7bb9bc28e Change Stream to Print (#1307)
* Change Stream to Print 1/2

Update WifiManager to use base class Print instead of Stream.

I debug into a custom buffer, and that buffer implements Print, but not Stream.

* Change Stream to Print 2/2

Update WifiManager to use base class Print instead of Stream.

I debug into a custom buffer, and that buffer implements Print, but not Stream.
2022-05-08 09:30:33 -05:00
tablatronix 8d34744b29 fixes #1414
added a prefix to macros
2022-05-08 09:24:28 -05:00
tablatronix 7bffda3fe6 adds option to keep cfgp open on wifi save
// if true (default) then stop the config portal from autoConnect when wifi is saved
    void          setDisableConfigPortal(boolean enable);

Name will change
2022-04-08 20:44:08 -05:00
tablatronix 379ffee475 clean up variable declarations 2022-04-07 08:38:23 -05:00
tablatronix ba6336587e Merge branch 'master' of https://github.com/tzapu/WiFiManager 2022-03-29 13:35:00 -05:00
tablatronix 6a85acdf85 add customMenuHTML 2022-03-29 13:34:58 -05:00
tablatronix 88b97c7caa #1383 fix 2022-03-29 13:31:41 -05:00
John ea4ee025f2 Output "Unknown" if Arduino/ESP-IDF version is unknown (#1382)
Closes #1381
2022-03-28 20:41:08 -05:00
tablatronix 278c57b4ec fixes #1379 2022-03-28 08:23:16 -05:00
tablatronix da02b59a21 update template styles, add versionng to info 2022-03-25 14:40:52 -05:00
tablatronix e830fa26e3 Adding a data attribute for ssid for input value
so it has nothing to do with the html , and can have different encoding, we could also just use IDs but scan cannot change, or use bssid

#1370
2022-03-11 00:04:21 -06:00
tablatronix e6d21b8436 use macro for webserver routes fstring helper 2022-02-24 12:15:11 -06:00
tablatronix e9d0012cce abstract httpserver setup 2022-02-23 16:46:24 -06:00
tablatronix c987ee93c8 abstract httpsend 2022-02-23 16:36:52 -06:00
tablatronix 5acc7cc9aa css tweaks for inputs including select,checkbox
added vertical margins to inputs
2022-02-22 13:41:27 -06:00
tablatronix 5052c675be version debug 2022-02-04 22:04:21 -06:00
tablatronix 755aca1643 #1348 just change _hostname to string ? 2022-02-04 22:04:10 -06:00
tablatronix fa76838ee5 fix esp32 softapssid 2022-02-04 17:54:50 -06:00