Inspiration
This project was inspired pretty much by the Forge Quest Apprentice project. We wanted to deepen out knowledge of how to access and use external APIs.
What it does
This gadget shows the current weather as well as a 5-day forecast, for a city configured by the user. The user configuration allows the user to input a city and a country and provides the user with a list of possible matches from which the user can select the specific city. The user also can configure the temperature units, Fahrenheit or Celsius, they would like to be displayed.
How we built it
- Used UI Kit to build an Editing interface for the user to setup the city and country they want to get the weather for, as well as the temperature units, Fahrenheit or Celsius, they would like to be displayed.
- Used the OpenWeather API to get data for the Current Weather and the 5-day Weather Forecast. Access to these endpoints was handled in a resolver.
- Used UI Kit to format and display the data returned in a nice and clean visualization.
Challenges we ran into
- It took a while to grasp linking/bridging the frontend and backend.
- We had to learn a bit more details about the external API.
Accomplishments that we're proud of
- The gadget looks pretty cool.
- Was able to "simultaneously connect to different access points of the external API, the Current Weather and the 5-day Weather Forecast.
What we learned
- Setting up permissions for securely accessing external APIs.
- Sending requests to the external APIs.
- Collecting the response from the API.
- Formatting and displaying data returned by the external APIs.
What's next for Weather Gadget for Jira
- Can we add an AI recommendation based on the weather? Maybe clothing, travel time, warnings and such?
Built With
- javascript
- openweather
- react
- uikit
Log in or sign up for Devpost to join the conversation.