Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rakesh9100/greeting-time
- Owner: Rakesh9100
- Created: 2023-01-28T14:57:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-24T10:33:13.000Z (11 months ago)
- Last Synced: 2024-11-25T12:38:00.652Z (2 months ago)
- Topics: cpp, project
- Language: C++
- Homepage: https://github.com/Rakesh9100/Greeting-Time
- Size: 34.2 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING_GUIDELINES.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
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
2. The Time on the system is 12:00 PM
3. The Time on the system is 08:00 PM
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.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)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")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.
Project Admin⚡
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👨💻