Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Weather Forecast - maxNumberOfDays

    Development
    1
    2
    893
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      relm923 last edited by

      Re: Problem with Weather forecast

      The current Weather Forecast module does not respect maxNumberOfDays when using the /forecast API. I’ve created PR-1176 to fix this by requesting the max number of days possible via the API and filtering when rendering.

      Unfortunately I do not have access to the original /forecast/daily API and cannot confirm what the default behavior is when not passing in cnt.

      Anyone able to help me test this change to confirm it works with both versions of the API?

      1 Reply Last reply Reply Quote 0
      • R
        relm923 last edited by

        1. What count is return when requesting:
        https://api.openweathermap.org/data/2.5/forecast/daily?id=1234567&APPID=$APPID
        
        1. What is the max count possible:
        https://api.openweathermap.org/data/2.5/forecast/daily?id=1234567&APPID=$APPID&cnt=$COUNT
        
        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy