Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Ryan Wikle
    Ryan Wikle
    5,774 Points

    What is chunk?

    Posted August 11, 2021 12:09am by Ryan Wikle
    Ryan Wikle
    5,774 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • han voon wong
    han voon wong
    11,650 Points

    why i got this message?

    Posted July 29, 2021 7:16am by han voon wong
    han voon wong
    11,650 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • Kylie Soderblom
    Kylie Soderblom
    3,890 Points

    Could you provide code using <URLSearchParams>? //The querystring API is considered Legacy.

    Posted July 5, 2021 10:27pm by Kylie Soderblom
    Kylie Soderblom
    3,890 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • Kylie Soderblom
    Kylie Soderblom
    3,890 Points

    Notes don't === what Openweather docs says: api.openweathermap.org/data/2.5/weather?q={city name}&appid={API key}

    Posted July 5, 2021 8:59pm by Kylie Soderblom
    Kylie Soderblom
    3,890 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    0 Answers

  • Trevor Maltbie
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Trevor Maltbie
    Full Stack JavaScript Techdegree Graduate 17,021 Points

    Two word cities don't work

    Posted August 1, 2020 8:56pm by Trevor Maltbie
    .a{fill-rule:evenodd;}techdegree seal-36
    Trevor Maltbie
    Full Stack JavaScript Techdegree Graduate 17,021 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    4 Answers

  • jlampstack
    jlampstack
    23,932 Points

    .env Vs. api.json

    Posted June 14, 2020 6:10pm by jlampstack
    jlampstack
    23,932 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • Luis Giraldo
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Luis Giraldo
    Full Stack JavaScript Techdegree Graduate 27,531 Points

    parseInt will omit 0 at the beginning of a zip code

    Posted April 7, 2020 3:25pm by Luis Giraldo
    .a{fill-rule:evenodd;}techdegree seal-36
    Luis Giraldo
    Full Stack JavaScript Techdegree Graduate 27,531 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    2 Answers

  • Christine Treacy
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Christine Treacy
    Full Stack JavaScript Techdegree Graduate 18,412 Points

    Can someone please explain how to use access keys?

    Posted January 17, 2020 2:50pm by Christine Treacy
    .a{fill-rule:evenodd;}techdegree seal-36
    Christine Treacy
    Full Stack JavaScript Techdegree Graduate 18,412 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    0 Answers

  • Swan The Human
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Swan The Human
    Full Stack JavaScript Techdegree Student 19,338 Points

    Why are you joining the spaces in the query?

    Posted October 19, 2019 7:54pm by Swan The Human
    .a{fill-rule:evenodd;}techdegree
    Swan The Human
    Full Stack JavaScript Techdegree Student 19,338 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    2 Answers

  • <noob />
    <noob />
    17,063 Points

    My solution :}

    Posted September 3, 2019 6:56pm by <noob />
    <noob />
    17,063 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    0 Answers

  • Scott Ratigan
    Scott Ratigan
    3,158 Points

    Weather Underground API permanently shut down.

    Posted January 10, 2019 6:02pm by Scott Ratigan
    Scott Ratigan
    3,158 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • Peter Retvari
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Peter Retvari
    Full Stack JavaScript Techdegree Student 8,392 Points

    My solution for open openweather.org :)

    Posted October 29, 2018 8:43am by Peter Retvari
    .a{fill-rule:evenodd;}techdegree
    Peter Retvari
    Full Stack JavaScript Techdegree Student 8,392 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • Ceil-Ian Maralit
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ceil-Ian Maralit
    Front End Web Development Techdegree Graduate 19,434 Points

    Where did the URL came from?

    Posted September 13, 2018 2:32pm by Ceil-Ian Maralit
    .a{fill-rule:evenodd;}techdegree seal-36
    Ceil-Ian Maralit
    Front End Web Development Techdegree Graduate 19,434 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • Jasper Peijer
    Jasper Peijer
    45,009 Points

    Solution to the Weather API

    Posted August 31, 2018 11:05am by Jasper Peijer
    Jasper Peijer
    45,009 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    0 Answers

  • Saud Tauqeer
    PLUS
    Saud Tauqeer
    Courses Plus Student 8,099 Points

    cant get around accessing the api data

    Posted July 27, 2018 2:49pm by Saud Tauqeer
    Saud Tauqeer
    Courses Plus Student 8,099 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    2 Answers

  • prateek kumar
    prateek kumar
    235 Points

    How to pass JSON when using google API

    Posted July 8, 2018 10:14pm by prateek kumar
    prateek kumar
    235 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    0 Answers

  • tal Shnitzer
    PLUS
    tal Shnitzer
    Courses Plus Student 5,242 Points

    retrieving data from weather underground API: "state/city" in their code examples, "state_city" in instructor code.

    Posted April 29, 2018 8:37am by tal Shnitzer
    tal Shnitzer
    Courses Plus Student 5,242 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    0 Answers

  • Mary Paul
    Mary Paul
    13,792 Points

    "Cannot read property temp_f of undefined"

    Posted April 27, 2018 11:55pm by Mary Paul
    Mary Paul
    13,792 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • Kristian Woods
    Kristian Woods
    23,414 Points

    I don't understand the use of the api.json file

    Posted April 26, 2018 7:03am by Kristian Woods
    Kristian Woods
    23,414 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • Carlos Lantigua
    Carlos Lantigua
    5,938 Points

    Retrieving Data - Solution (Weather doc doesn't mention NodeJS)

    Posted April 16, 2018 11:35pm by Carlos Lantigua
    Carlos Lantigua
    5,938 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    0 Answers

  • Brian Patterson
    Brian Patterson
    19,588 Points

    difference between Node and Ajax.

    Posted January 23, 2018 10:31pm by Brian Patterson
    Brian Patterson
    19,588 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    2 Answers

  • Nikola Jankovic
    Nikola Jankovic
    10,793 Points

    console.dir(core); trows an error

    Posted December 23, 2017 11:00pm by Nikola Jankovic
    Nikola Jankovic
    10,793 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • Nikola Jankovic
    Nikola Jankovic
    10,793 Points

    Can not require api.json

    Posted December 23, 2017 7:11pm by Nikola Jankovic
    Nikola Jankovic
    10,793 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    3 Answers

  • Duy Khanh
    PLUS
    Duy Khanh
    Courses Plus Student 4,911 Points

    Why we need process.argv.slice(2) ?

    Posted October 24, 2017 3:50pm by Duy Khanh
    Duy Khanh
    Courses Plus Student 4,911 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • Patrik Horváth
    Patrik Horváth
    11,110 Points

    Node.JS API and CITY code is wrong and api key is wrong

    Posted September 25, 2017 10:26am by Patrik Horváth
    Patrik Horváth
    11,110 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    2 Answers

  • Chris Mason
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Chris Mason
    Full Stack JavaScript Techdegree Graduate 24,526 Points

    What is being sliced off from the query?

    Posted June 20, 2017 1:14pm by Chris Mason
    .a{fill-rule:evenodd;}techdegree seal-36
    Chris Mason
    Full Stack JavaScript Techdegree Graduate 24,526 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    1 Answer

  • Jarren Bird
    Jarren Bird
    8,125 Points

    why don't i have to require my weather.js file in app.js?

    Posted June 2, 2017 4:45pm by Jarren Bird
    Jarren Bird
    8,125 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution

    0 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord