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
  • han voon wong
    han voon wong
    11,650 Points

    does anyone try openweather and successfully did it ?

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

    1 Answer

  • Caleb Newell
    Caleb Newell
    12,562 Points

    unexpected token in JSON at position 4

    Posted March 12, 2021 11:05am by Caleb Newell
    Caleb Newell
    12,562 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    1 Answer

  • Tom Lamb
    Tom Lamb
    9,472 Points

    For OpenWeatherMap, I checked whether the query is a number or a city before passing the url.

    Posted December 9, 2020 12:28am by Tom Lamb
    Tom Lamb
    9,472 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    0 Answers

  • Danny L.
    Danny L.
    10,837 Points

    Where did querystring come from?

    Posted October 12, 2020 4:38pm by Danny L.
    Danny L.
    10,837 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    1 Answer

  • Jonathan Ambriz
    PLUS
    Jonathan Ambriz
    Courses Plus Student 3,902 Points

    Was getting unhandled error event.

    Posted September 17, 2020 12:11pm by Jonathan Ambriz
    Jonathan Ambriz
    Courses Plus Student 3,902 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    1 Answer

  • Julianna Kahn
    Julianna Kahn
    20,702 Points

    Keep getting the error message: Cannot find module '_/api.json'

    Posted May 24, 2019 11:24pm by Julianna Kahn
    Julianna Kahn
    20,702 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    1 Answer

  • ada ada
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    ada ada
    Front End Web Development Techdegree Student 192 Points

    Getting error. Please help

    Posted March 17, 2019 6:16am by ada ada
    .a{fill-rule:evenodd;}techdegree
    ada ada
    Front End Web Development Techdegree Student 192 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    1 Answer

  • Kayvon Wallace
    Kayvon Wallace
    15,687 Points

    i have no question. just wanted to put this out there. this whole section needs to be reworked.

    Posted July 19, 2018 11:03pm by Kayvon Wallace
    Kayvon Wallace
    15,687 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    3 Answers

  • benjaminmosery
    benjaminmosery
    6,346 Points

    "This Key does not exist"

    Posted March 11, 2018 6:56pm by benjaminmosery
    benjaminmosery
    6,346 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    2 Answers

  • Lewis Brown
    PLUS
    Lewis Brown
    Courses Plus Student 573 Points

    cannot read property 'city' of undefined

    Posted February 24, 2018 6:39pm by Lewis Brown
    Lewis Brown
    Courses Plus Student 573 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    5 Answers

  • Brian Patterson
    Brian Patterson
    19,588 Points

    Getting an error from his code

    Posted January 24, 2018 9:21pm by Brian Patterson
    Brian Patterson
    19,588 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    1 Answer

  • Łukasz Sitnik
    Łukasz Sitnik
    3,306 Points

    It seems I have no access to the API's properties

    Posted January 22, 2018 11:04pm by Łukasz Sitnik
    Łukasz Sitnik
    3,306 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    9 Answers

  • Nathaniel Evans
    Nathaniel Evans
    14,205 Points

    Issue getting the correct parameters (I think)

    Posted October 2, 2017 10:19am by Nathaniel Evans
    Nathaniel Evans
    14,205 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    2 Answers

  • Devon Stanton
    Devon Stanton
    7,793 Points

    How do I change the temperature metric

    Posted September 17, 2017 5:58pm by Devon Stanton
    Devon Stanton
    7,793 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    2 Answers

  • Peter Gess
    Peter Gess
    16,553 Points

    Getting error in Node.js: Missing } in template expression somewhere

    Posted May 16, 2017 5:55pm by Peter Gess
    Peter Gess
    16,553 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    1 Answer

  • Petar Karagenov
    Petar Karagenov
    8,608 Points

    The readableQuery const

    Posted May 14, 2017 8:03pm by Petar Karagenov
    Petar Karagenov
    8,608 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - Solution

    1 Answer

  • Nick Trabue
    PLUS
    Nick Trabue
    Courses Plus Student 12,666 Points

    Error: connect ETIMEDOUT

    Posted May 2, 2017 1:56pm by Nick Trabue
    Nick Trabue
    Courses Plus Student 12,666 Points
    • JavaScript
    • Node.js Basics 2017
    • Create a Command Line Weather Application
    • Parsing Data and Printing - 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