tobozo / WiFiManagerTz

A NTP/Timezone extension to @tzapu's WiFiManager
Other
7 stars 2 forks source link
arduino captive-portal esp32 ntp sntp timezone tz wifimanager

WiFiManagerTz for ESP32

Adds NTP/TimeZone and Clock tools to @tzapu's WiFiManager

Integration


#include <WiFiManager.h>
#include <WiFiManagerTz.h>

void setup()
{
  WiFiManager wifiManager;

  WiFiManagerNS::init( &wifiManager );
  // WiFiManagerNS::init( &wifiManager, webserverPreCallback ); // using a custom callback add/override server routes

  // /!\ make sure "custom" is listed there as it's required to pull the "Setup Clock" button
  std::vector<const char *> menu = {"wifi", "info", "custom", "param", "sep", "restart", "exit"};
  wifiManager.setMenu(menu);

  // ....

}

Motivation

I made this library in order to learn how to properly use the WiFiManager, and I'm still learning, so feel free to report any WTF :-)

Roadmap

Dependencies

Credits / External Sources