Skip to content

Latest commit

 

History

History
166 lines (123 loc) · 7.8 KB

README.md

File metadata and controls

166 lines (123 loc) · 7.8 KB

⭐Greeting-Time⭐

Table of Contents🧾


Introduction📌

Greeting-Time is a console application that welcomes users with a personalized greeting based on the current time of day, provides a random motivational quote for inspiration, and fetches the real-time weather information using an API request, that keeps informed and motivated throughout the day.

Technology Used🚀

Overview⭐

1. The Time on the system is 09:00 AM

Morning_temp

2. The Time on the system is 12:00 PM

Afternoon_temp

3. The Time on the system is 08:00 PM

Evening_temp

(back to top)

Getting Started💥

  • Fork this Repository.
  • Clone the forked repository in your local system.
git clone https://github.com/<your-github-username>/Greeting-Time.git
  • Open the GreetingTime.cpp file in your local code editor.
  • Run the code and you will see the greeting according to the time of your system.
  • Raise an issue if you want to add a feature or fix a bug.
  • Wait for the issue to be assigned and proceed only after the issue is assigned to you.
  • Navigate to the project directory.
cd Greeting-Time
  • Create a new branch for your feature.
git checkout -b <your_branch_name>
  • Perfom your desired changes to the code base.
  • Track and stage your changes.
# Track the changes
git status

# Add changes to Index
git add .
  • Commit your changes.
git commit -m "your_commit_message"
  • Push your committed changes to the remote repo.
git push origin <your_branch_name>
  • Go to your forked repository on GitHub and click on Compare & pull request.
  • Add an appropriate title and description to your pull request explaining your changes and efforts done.
  • Click on Create pull request.
  • Congrats! 🥳 You've made your first pull request to this project repo.
  • Wait for your pull request to be reviewed and if required suggestions would be provided to improve it.
  • Celebrate 🥳 your success after your pull request is merged successfully.

(back to top)

Installation of Library📑

For fetching the details of wheather from an API request. The following two libraries are required to be installed:

Installation:

(back to top)

Additional files required for Program📑

Text files for printing the randomized quotes from the text file according to the current time:

  • Mo.txt (For Morning motivation quotes)
  • Af.txt (For Afternoon motivation quotes)
  • Ev.txt (For Evening motivation quotes)

Text file for fetching the current wheater of a location:

How to edit the text files

Editing quote text files:

  • Make sure to add the hashtag "#" after the last quote so the program can stop reading further.
  • Keep Serial number in format so the program can select the quotes randomly.

Editing the wheater location text file:

  • Just replace the text only with your city name (like: Bhopal, Delhi)
  • To change the location of country, please edit the URL (variable name = user_city) in the source-code
    (like: "...&query="+ buffer +",%20Japan")

(back to top)

Contributing Guidelines📑

Read our Contributing Guidelines to learn about our development process, how to propose bugfixes and improvements, and how to build to Greeting-Time.

Code Of Conduct📑

This project and everyone participating in it is governed by the Code of Conduct. By participating, you are expected to uphold this code.

(back to top)

Project Admin⚡

Rakesh Roshan
Rakesh Roshan

Contributing is fun🧡

forthebadge

Contributions of any kind from anyone are always welcome🌟!!

Give it a 🌟 if you ❤ this project. Happy Coding👨‍💻

(back to top)