Giter VIP home page Giter VIP logo

weather-app-2's Introduction

Weather365

Weather365 is an application designed to take input from users searching for either the current weather or a 5 day forecast in a specific city.

Functionality of Weather365

  • The user is asked which city they would like the forecast for.Screenshot by Snip My at 18 Jun 2023 at 20:23:12

  • They are then presented with the option to either receive the current or 5-day forecast.

city-entered
  • The application then uses the API key to retrieve information from openweathermap.org.

  • Once the information is provided the user may choose to search for the weather in a different location or not. If they do the application will ask for the same input from the user.again

  • Once the user is happy and they do not wish to continue Weather365 will bid them farewell.

Testing

Using the PEP8 installed into the GitHub repository I was able to check that the code was formatted in an acceptable manner. There remains a few remianing highlighted errors which are down to the lines being longer than the recommended 79 characters. I worked to keep these down as much as possible, however, struggled with some inputs as I prioritised the users experience.

It also highlighted the need for spaces beneath the functions which were easily fixed & the need for the API to be capitalised in order to make it clear that this data was not to be changed.

I struggled to find an online linter which was able to pass my code through as I inported the requests module needed to access the openweathermap.org website. Also, as my API is kept in a seperate file in order to keep it secure this was also a problem I faced.

Deployment

The GitHub repository was linked to Heroku where the application was deployed using the following steps.

  1. Create 'New App'
  2. Choose name 'Weather365' & Region 'Europe'
  3. Go to 'Settings' - Config Vars for the API and the PORT were created
  4. Still in 'Settings' - Python & NodeJS buildpacks were added
  5. Next, go to 'Deploy' where the GitHub repository was linked to the Heroku account & permissions granted. Here we also enabled 'Automatic Deploys' was enabled so that any future pushes to the repository would automatically updatethe Heroku program.

Credits

The only credit required is for Open Weather which allowed the creation of an API key so that requests for information can be made by the user & real-time information would be sent back.

weather-app-2's People

Contributors

alexmaitland avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.