Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rakesh9100/greeting-time

A project in C++ which fetch the time from the system and greet the user according to the time fetched.
https://github.com/rakesh9100/greeting-time

cpp project

Last synced: 1 day ago
JSON representation

A project in C++ which fetch the time from the system and greet the user according to the time fetched.

Awesome Lists containing this project

README

        

#

⭐Greeting-Time⭐

Table of Contents🧾

- [Introduction📌](#introduction)
- [Technology Used🚀](#technology-used)
- [Overview⭐](#overview)
- [Getting Started💥](#getting-started)
- [Installation of Library📑](#installation-of-Library)
- [Additional files required for Program📑](#additional-files-required-for-Program)
- [Contributing Guidelines📑](#contributing-guidelines)
- [Code Of Conduct📑](#code-of-conduct)
- [Project Admin⚡](#project-admin)
- [Contributing is fun🧡](#contributing-is-fun)

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//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
```
- 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
```
- 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:
- [curl/curl.h](https://curl.se)
- [nlohmann/json.hpp](https://github.com/nlohmann/json)

Installation:
- [curl/curl.h](https://everything.curl.dev/get)
- [Step-by-step installation of curl for Visual studio](https://stackoverflow.com/questions/53861300/how-do-you-properly-install-libcurl-for-use-in-visual-studio-2017)
- [nlohmann/json.hpp](https://github.com/nlohmann/json#integration)

(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](Mo.txt) (For Morning motivation quotes)
- [Af.txt](Af.txt) (For Afternoon motivation quotes)
- [Ev.txt](Ev.txt) (For Evening motivation quotes)

Text file for fetching the current wheater of a location:
- [cnf.txt](cnf.txt)

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](GreetingTime.cpp#L43)

(like: "...&query="+ buffer +",%20Japan")

(back to top)

Contributing Guidelines📑

Read our [Contributing Guidelines](https://github.com/Rakesh9100/Greeting-Time/blob/main/.github/CONTRIBUTING_GUIDELINES.md) 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](https://github.com/Rakesh9100/Greeting-Time/blob/main/.github/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.

(back to top)

Project Admin⚡

Rakesh Roshan
Rakesh Roshan

Contributing is fun🧡

[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)

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


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


(back to top)