Tell me what you want, What you really, really want.

Moderator: Mmiscool

User avatar
By Mmiscool
#53991 This seems like a simple feature to ad. Let me look in to it and see what i can do.
User avatar
By Markymarc35
#54024 How's that?
In the Eval.ino file
Left pool.ntp.org hardcoded as backup :D

Code: Select allelse if ( fname == F("timesetup") && num_args > 0 ) {
    String bla;
    SaveDataToFile("TimeZone", String(args[0]));
    SaveDataToFile("DaylightSavings", String(args[1]));
    SaveDataToFile("TimeServer", String(args[2]));
    configTime(LoadDataFromFile("TimeZone").toFloat() * 3600, LoadDataFromFile("DaylightSavings").toInt(), LoadDataFromFile("TimeServer"), "pool.ntp.org");
    *value_str = "";
    return PARSER_STRING;
  }
User avatar
By riban
#62872 This looks good but does not seem to be implemented in git master head. Are you planning t apply this and update documentation? Also, whilst updating docs, it would be advantageous to explain that the time is automatically set by SNTP - I searched for how to set time for a while then was perplexed when it was magically correct! (Also, a way to set time manually would be good for occasions that the device is not connected to the Internet.) Cheers