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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
    • Showing results for:
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Retrieving Data - Solution
    • Close
  • Ryan Wikle
    Ryan Wikle
    5,774 Points

    What is chunk?

    Posted on Aug 11, 2021 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 on Jul 29, 2021 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 on Jul 5, 2021 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 on Jul 5, 2021 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 on Aug 1, 2020 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 on Jun 14, 2020 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 on Apr 7, 2020 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 on Jan 17, 2020 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 on Oct 19, 2019 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 on Sep 3, 2019 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 on Jan 10, 2019 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 on Oct 29, 2018 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 on Sep 13, 2018 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 on Aug 31, 2018 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 on Jul 27, 2018 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 on Jul 8, 2018 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 on Apr 29, 2018 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 on Apr 27, 2018 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 on Apr 26, 2018 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 on Apr 16, 2018 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 on Jan 23, 2018 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 on Dec 23, 2017 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 on Dec 23, 2017 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 on Oct 24, 2017 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 on Sep 25, 2017 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 on Jun 20, 2017 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 on Jun 2, 2017 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.