Morphing Clock 2 with multiple weather services. Part 2 - how to compile the program.

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 40

  • @andrelmarto
    @andrelmarto 8 місяців тому +2

    Hi Gary! Thank you very much for the update and for making it available to us. My clocks so far have worked well with Open Weather but I'm going to do this update. It's strange that Open Weather is not explicitly warning about this API that will be discontinued, hundreds of projects use this service.

    • @GaryQuiring
      @GaryQuiring  8 місяців тому +1

      It's on their website, an email did go out but I never received one. Someone who built the clock forwarded me the email. It explains why the past few months the clock was getting a lot of http 400 errors. They also changed the 2.5 API for some reason and broke it, if your city had spaces in the name it would not work, you had to replace the spaces with a + sign.
      Going forward the code is a lot more flexible now, I can change the weather or web code very easily.
      Here is the link to the depreciated 2.5 call
      openweathermap.org/api/one-call-api

    • @GaryQuiring
      @GaryQuiring  8 місяців тому

      I agree a lot of devices use that API call and it's going to be dust storm when they pull the plug on it. I still don't know if it's happening on June 1 or June 30th.

    • @andrelmarto
      @andrelmarto 8 місяців тому

      Hi! I updated one of the clock's today and it's working fine. When compiling, the ESPAsyncTCP and UDP libraries were requested. They are not present in the Google package.
      Very good, the dim mode is really needed if the clock is in the bedroom!!!

    • @GaryQuiring
      @GaryQuiring  8 місяців тому

      @@andrelmarto Did you download the updated Google Drive package? The link changed with the new version.

    • @andrelmarto
      @andrelmarto 8 місяців тому

      I think so... line 124.
      Tomorrow I'll check.

  • @georgelagardo
    @georgelagardo 6 місяців тому

    Hi Gary. Thank you for the awesome clock.
    I am facing little issue. I am from India. And my time zone is +5:30. So what do I enter.
    I tried entering 5.3
    In serial monitor it is showing ntp time 30min behind my time. How do I fix this.
    More over there is no wether info showing in the monitor. It says no wether info found
    Also please help if this will work with P4 led matrix. What changes do i need to make to make it work with P4 board

    • @GaryQuiring
      @GaryQuiring  6 місяців тому

      The library I use NTPClient does support time zones with 30 minute adjustments. What you need to do is manually edit the NTPClientLib.cpp, line 100. (_minutesOffset = minutes;). Try changing that to _minutesOffset = 30; Then recompile. Someone else had mentioned that to me and I believe he said it worked.
      The P4 board question, I am not a hardware guy. That code was Harry's, I'm not sure how or what the differences are with these LED boards.

    • @georgelagardo
      @georgelagardo 6 місяців тому

      @@GaryQuiring Thank you Gary for your suggestion, i did the changes with the NTPClientLib.cpp line 100 and now it looks like it is ok,
      however i am not able to get any wether updates for the location i privided kindly help to fix this
      20:57:31.675 ->
      20:57:31.675 ->
      20:57:32.117 -> Weather: Unable to retrieve JSON data
      20:57:37.884 -> Writing config file ....
      20:57:37.943 -> Finished writing config
      20:57:38.014 -> ���y�Setup begin
      20:57:39.362 -> Trying WiFi Connect:George_2876
      20:57:39.400 -> .........success!
      20:57:43.533 -> IP Address is: 192.168.1.3
      20:57:43.698 -> Reading data from: api.open-meteo.com
      20:57:43.891 -> HTTP/1.1 200 OK
      20:57:43.891 -> Date: Sun, 14 Jul 2024 15:27:45 GMT
      20:57:43.953 -> Content-Type: application/json; charset=utf-8
      20:57:44.005 -> Transfer-Encoding: chunked
      20:57:44.026 -> Connection: close
      20:57:44.026 ->
      20:57:44.026 -> 215
      20:57:44.026 ->
      20:57:44.513 -> TimeZone for NTP.Begin:+5.3
      20:57:44.545 -> Got NTP time: 00:00:00 00/00/1970
      20:57:46.052 -> Time Sync error: NTP server not reachable
      20:57:58.997 -> Got NTP time: 00:00:00 01/01/1970
      20:57:59.228 -> Got NTP time: 20:58:00 14/07/2024
      20:57:59.544 -> 24h Sync Enabled
      21:00:30.830 -> Reading data from: api.open-meteo.com
      21:00:31.387 -> HTTP/1.1 200 OK
      21:00:31.387 -> Date: Sun, 14 Jul 2024 15:30:32 GMT
      21:00:31.387 -> Content-Type: application/json; charset=utf-8
      21:00:31.387 -> Transfer-Encoding: chunked
      21:00:31.387 -> Connection: close
      21:00:31.387 ->
      21:00:31.387 -> 215
      21:00:31.387 ->

  • @janwawrzyniak8444
    @janwawrzyniak8444 3 місяці тому

    Hey, it is possible to add pressure from weather services.

    • @GaryQuiring
      @GaryQuiring  3 місяці тому

      The problem is the field in the upper left (Wind/Humidity) has room for 4 characters. The pressure field is usually 5-6 characters plus a symbol to indicate what it is. It won't fit there.

  • @alekschef
    @alekschef 6 місяців тому

    Hi Gary Quiring, is it possible to add a DTH11 temperature sensor? to see the temperature in the house.

    • @GaryQuiring
      @GaryQuiring  6 місяців тому

      It's probably doable, there is a library for the DTH11 sensor. D3 is not being used on this project so the sensor could be hooked up to it. The problem is where to display that additional data. It would have to flip/flop between the internet weather data and the in-house data on the display and some sort of indicator would have to show what data it's displaying - indoor or internet.

    • @alekschef
      @alekschef 6 місяців тому

      @@GaryQuiring switched with the weather on the Internet, and the letter C served as an indicator, it was possible without it

  • @5VoltChannel
    @5VoltChannel 8 місяців тому

    very nice 👍👍

  • @nuryanto2912
    @nuryanto2912 6 місяців тому

    😍😍😍

  • @vvk491
    @vvk491 5 місяців тому

    ОТЛИЧНО