timezone API #27
No reviewers
Labels
No labels
bug
conflicts
documentation
DO NOT MERGE
duplicate
enhancement
good first issue
hardware
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
greg/info-orbs!27
Loading…
Reference in a new issue
No description provided.
Delete branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
please consider the changes in config.h.template!
Trello Card: https://trello.com/c/xjwMScgJ/79-get-timezone-offset-on-boot-from-api
Changes
the globalTime class get's now the timezone offset via a seperate api so it is not depending on other widgets adn you can configure a seperate location for weather and time if you want to
@ -9,7 +9,6 @@ GlobalTime::GlobalTime() {m_timeClient = new NTPClient(m_udp);I don't think we need to keep the commented version around so just remove it
@ -25,8 +24,8 @@ GlobalTime *GlobalTime::getInstance() {void GlobalTime::updateTime() {maybe a default value of "-1" or a constant to indicate unset?
@ -93,12 +92,29 @@ String GlobalTime::getWeekday() {return m_weekday;}the error should mention deserialization or something to be distinct from the http error
@ -25,8 +24,8 @@ GlobalTime *GlobalTime::getInstance() {void GlobalTime::updateTime() {ahh, i thought -1 does not work because timezone can also be negative, but the response is already multiplied by 3600 so it should work