• 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 4 years 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 4 years 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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

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

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

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.