---
title: "Discussion on \"Display 7 Day Weather Forecast with OpenWeather API\" | Hashnode"
description: "Discussion on \"Display 7 Day Weather Forecast with OpenWeather API\". Using modern JavaScript techniques\nThere are many weather APIs that allow us to get data and display forecast for a specific location. I found openweathermap API to be a good choice. It’s free up to 1,000,000 calls/month and there’s a One Call API th..."
url: "https://hashnode.com/posts/display-7-day-weather-forecast-with-openweather-api-aac8ba21c9e3/60a510d459b7dc409c3d3a2b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Display 7 Day Weather Forecast with OpenWeather API](https://blog.mairo.eu/display-7-day-weather-forecast-with-openweather-api-aac8ba21c9e3?utm_source=hashnode&utm_medium=feed)

Using modern JavaScript techniques There are many weather APIs that allow us to get data and display forecast for a specific location. I found openweathermap API to be a good choice. It’s free up to 1,000,000 calls/month and there’s a One Call API th...

Mar 16, 2021 · 5 min read · blog.mairo.eu  
Read the article

## Written by

[Miroslav Slapka](https://hashnode.com/@miresk)

@miresk · Prague

  
[View profile](https://hashnode.com/@miresk)

Web developer focusing on front-end technologies

## Responses 1

Markdown supported · ⌘↵ to post

[Cliff Meakin](https://hashnode.com/@cbeem)

[Jul 7, 2021](https://hashnode.com/posts/display-7-day-weather-forecast-with-openweather-api-aac8ba21c9e3/60a510d459b7dc409c3d3a2b/comment/60e630d7d534931b99a4f557)

Great except the days are listed in reverse order...

[Jul 8, 2021](https://hashnode.com/posts/display-7-day-weather-forecast-with-openweather-api-aac8ba21c9e3/60a510d459b7dc409c3d3a2b/comment/60e630d7d534931b99a4f557#reply-60e6e6b3c32fbd1b737214b1)

Thanks probably it's because of this line: forecastEl\[0\].insertAdjacentHTML('afterbegin', fday);

You can try this instead: forecastEl.append(fday);

[Cliff Meakin](https://hashnode.com/@cbeem)

[Jul 8, 2021](https://hashnode.com/posts/display-7-day-weather-forecast-with-openweather-api-aac8ba21c9e3/60a510d459b7dc409c3d3a2b/comment/60e630d7d534931b99a4f557#reply-60e72fbe3dc33f032e23bb06)

Thanks :)

Uncaught (in promise) TypeError: forecastEl.append is not a function

forecastEl\[0\].append(fday); works but there is no html, just a long one liner of text?

[Cliff Meakin](https://hashnode.com/@cbeem)

[Jul 8, 2021](https://hashnode.com/posts/display-7-day-weather-forecast-with-openweather-api-aac8ba21c9e3/60a510d459b7dc409c3d3a2b/comment/60e630d7d534931b99a4f557#reply-60e745bb3dc33f032e23bde5)

forecastEl\[0\].insertAdjacentHTML('beforeend', fday); works. Sorted :)
