9#ifndef ARDUINO_WOPR_JBWOPRHELPERS_H
10#define ARDUINO_WOPR_JBWOPRHELPERS_H
30 static void configure(JBLogger* log, std::string ntpServer, std::string timeOffsetString);
45 static bool _isInitialized;
46 static std::string _ntpServer;
47 static std::string _timeOffsetString;
48 static JBLogger* _log;
58 static std::string
getCenteredString(
const std::string str,
const uint32_t length,
char padChar =
' ');
This class contains helper functions for string related tasks.
Definition jbwoprhelpers.h:52
static std::string rgbToString(uint32_t rgbValue)
Get hex coded color string.
Definition jbwoprhelpers.cpp:117
static std::string getRightAlignedString(std::string str, uint32_t length, char padChar=' ')
Get right aligned string.
Definition jbwoprhelpers.cpp:104
static std::string getCenteredString(const std::string str, const uint32_t length, char padChar=' ')
Get centered string.
Definition jbwoprhelpers.cpp:87
static uint32_t stringToRgb(std::string rgbString)
Get RGB value from hex coded color string.
Definition jbwoprhelpers.cpp:127
This class contains helper functions for time related tasks.
Definition jbwoprhelpers.h:26
static void configure(JBLogger *log, std::string ntpServer, std::string timeOffsetString)
configure helper
Definition jbwoprhelpers.cpp:17
static int64_t getUtcOffsetInSeconds()
Get UTC offset in seconds.
Definition jbwoprhelpers.cpp:23
static bool getTime(tm *info)
Get local time.
Definition jbwoprhelpers.cpp:49