34 lines
1.5 KiB
Markdown
34 lines
1.5 KiB
Markdown
---
|
|
id: bd7158d8c442eddfaeb5bd10
|
|
title: Show the Local Weather
|
|
challengeType: 3
|
|
forumTopicId: 302368
|
|
dashedName: show-the-local-weather
|
|
---
|
|
|
|
# --description--
|
|
|
|
**Objective:** Build a [CodePen.io](https://codepen.io) app that is functionally similar to this: <https://codepen.io/freeCodeCamp/full/bELRjV>.
|
|
|
|
**Rule #1:** Don't look at the example project's code. Figure it out for yourself.
|
|
|
|
**Rule #2:** Fulfill the below [user stories](https://en.wikipedia.org/wiki/User_story). Use whichever libraries or APIs you need. Give it your own personal style.
|
|
|
|
**User Story:** I can see the weather in my current location.
|
|
|
|
**User Story:** I can see a different icon or background image (e.g. snowy mountain, hot desert) depending on the weather.
|
|
|
|
**User Story:** I can push a button to toggle between Fahrenheit and Celsius.
|
|
|
|
**Note:** Many internet browsers now require an HTTP Secure (`https://`) connection to obtain a user's locale via HTML5 Geolocation. For this reason, we recommend using HTML5 Geolocation to get user location and then use the freeCodeCamp Weather API <https://weather-proxy.freecodecamp.rocks/> which uses an HTTP Secure connection for the weather. Also, be sure to connect to [CodePen.io](https://codepen.io) via `https://`.
|
|
|
|
When you are finished, include a link to your project on CodePen and click the "I've completed this challenge" button.
|
|
|
|
You can get feedback on your project by sharing it on the [freeCodeCamp forum](https://forum.freecodecamp.org/c/project-feedback/409).
|
|
|
|
# --solutions--
|
|
|
|
```js
|
|
// solution required
|
|
```
|