{"id":24772529,"url":"https://github.com/prashantkoirala465/Digital-Clock-using-C-Plus-Plus","last_synced_at":"2025-10-11T21:30:24.724Z","repository":{"id":274661365,"uuid":"923643220","full_name":"alexbytesback/Digital-Clock-using-C-Plus-Plus","owner":"alexbytesback","description":"A feature-rich console-based digital clock application that displays time in beautiful ASCII art format along with local weather information. The clock supports multiple time zones, 12/24-hour formats, and real-time weather updates.","archived":false,"fork":false,"pushed_at":"2025-01-28T16:28:37.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T17:23:55.472Z","etag":null,"topics":["abstraction","ansi-escape-codes","api","c-plus-plus","c-plus-plus-17","encapsulation","logical-programming","object-oriented-programming","open-weather-map-api"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexbytesback.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-28T16:04:25.000Z","updated_at":"2025-01-28T16:28:40.000Z","dependencies_parsed_at":"2025-01-28T17:23:58.495Z","dependency_job_id":"ec44e2e0-0873-401e-8c69-7f4b7e0edcc6","html_url":"https://github.com/alexbytesback/Digital-Clock-using-C-Plus-Plus","commit_stats":null,"previous_names":["alexbytesback/digital-clock-using-c-plus-plus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexbytesback%2FDigital-Clock-using-C-Plus-Plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexbytesback%2FDigital-Clock-using-C-Plus-Plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexbytesback%2FDigital-Clock-using-C-Plus-Plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexbytesback%2FDigital-Clock-using-C-Plus-Plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexbytesback","download_url":"https://codeload.github.com/alexbytesback/Digital-Clock-using-C-Plus-Plus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236127641,"owners_count":19099162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abstraction","ansi-escape-codes","api","c-plus-plus","c-plus-plus-17","encapsulation","logical-programming","object-oriented-programming","open-weather-map-api"],"created_at":"2025-01-29T04:23:15.201Z","updated_at":"2025-10-11T21:30:19.437Z","avatar_url":"https://github.com/alexbytesback.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Digital Clock with Weather Integration\n\nA feature-rich console-based digital clock application that displays time in beautiful ASCII art format along with local weather information. The clock supports multiple time zones, 12/24-hour formats, and real-time weather updates.\n\n## Features\n\n- **Beautiful ASCII Art Display**: Time is displayed using custom-designed ASCII art characters\n- **Dual Time Format**: Support for both 12-hour and 24-hour time formats\n- **Weather Integration**: Real-time weather information for the specified location\n- **Time Zone Support**: Ability to display time for different time zones\n- **Configurable Display**: Option to show/hide seconds\n- **User Preferences**: Saves user preferences for future sessions\n- **Date Display**: Shows current date for the selected location\n- **Color Output**: Uses ANSI colors for enhanced visibility\n\n## Requirements\n\n- C++ compiler with C++11 support\n- Standard C++ libraries\n- ANSI-compatible terminal\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/alexbytesback/Digital-Clock-using-C-Plus-Plus\n   cd Digital-Clock-using-C-Plus-Plus\n   ```\n\n2. Compile the project:\n   ```bash\n   g++ -std=c++17 main.cpp Clock.cpp Display.cpp Input.cpp Utility.cpp -o DigitalClock\n   ```\n\n## Usage\n\n1. Run the compiled program:\n   ```bash\n   ./DigitalClock\n   ```\n\n2. Follow the prompts to:\n   - Enter your name\n   - Select your location\n   - Choose time format (12/24 hour)\n   - Toggle seconds display\n\n## Code Structure\n\n- `main.cpp`: Entry point of the application\n- `Clock.h/cpp`: Core clock functionality and main display loop\n- `Display.h/cpp`: ASCII art rendering and screen management\n- `Input.h/cpp`: User input handling and validation\n- `Utility.h/cpp`: Helper functions for time zones and weather\n\n## Display Features\n\n- Large, clear ASCII art digits\n- Blinking colon separator\n- AM/PM indicator for 12-hour format\n- Color-coded output for better visibility\n- Weather information display\n- Current date display\n\n## Configuration\n\nThe application stores user preferences in `clock_log.txt`, including:\n- Username\n- Preferred location\n- Time format choice\n- Seconds display preference\n\n## Technical Details\n\n- Written in C++\n- Uses ANSI escape sequences for terminal manipulation\n- Custom ASCII art patterns for digits and symbols\n- Real-time updates with 1-second refresh rate\n- Efficient screen clearing and cursor positioning\n- Time zone and weather data integration\n\n## Contributing\n\nContributions are welcome! Please feel free to submit pull requests.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashantkoirala465%2FDigital-Clock-using-C-Plus-Plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprashantkoirala465%2FDigital-Clock-using-C-Plus-Plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashantkoirala465%2FDigital-Clock-using-C-Plus-Plus/lists"}