๐Ÿค‘ 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

  • 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
  • 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.

    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.