• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Date time weather map

Q&A Forum › Category: Home Automation › Date time weather map
0 Vote Up Vote Down
Larry asked 1 year ago

So I assume from your answer I have to make changes below but I don’t have a clue how to proceed thought once I found my city state in the OpenWeatherMap. org that it would automatically work right.

void drawDateTime(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) {
now = time(nullptr);
struct tm* timeInfo;
timeInfo = localtime(&now);
char buff[16];

Actually figured it out myself, changed line 54  #define TZ to -6 which fixed the hours  and line 94 from const boolean IS_METRIC to const boolean IS_METRIC =false for Fahrenheit

 

 

 

Question Tags: ESP8266
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Great!
I’m glad you figured it out.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Firebase Web App with ESP32 and ESP8266 (version 1.2) April 25, 2022
  • [eBook Updated] MicroPython Programming with ESP32 and ESP8266 (version 1.3) February 7, 2022

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2022 · RandomNerdTutorials.com · All Rights Reserved