© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Miroslav Slapka
Web developer focusing on front-end technologies
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...
Cliff Meakin
Great except the days are listed in reverse order...
Thanks probably it's because of this line: forecastEl[0].insertAdjacentHTML('afterbegin', fday);
You can try this instead: forecastEl.append(fday);
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?
forecastEl[0].insertAdjacentHTML('beforeend', fday); works. Sorted :)
Cliff Meakin
Great except the days are listed in reverse order...