{"id":30889001,"url":"https://github.com/codemeapixel/speed-converter","last_synced_at":"2026-02-14T10:32:05.758Z","repository":{"id":308817413,"uuid":"1034163072","full_name":"CodeMeAPixel/speed-converter","owner":"CodeMeAPixel","description":"A modern Fortran project using Gfortran and/or FPM to convert between km/h and mph.","archived":false,"fork":false,"pushed_at":"2025-08-08T03:01:40.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-09T23:52:53.599Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Fortran","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/CodeMeAPixel.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,"zenodo":null}},"created_at":"2025-08-08T00:35:08.000Z","updated_at":"2025-08-08T03:01:43.000Z","dependencies_parsed_at":"2025-08-08T05:29:00.073Z","dependency_job_id":null,"html_url":"https://github.com/CodeMeAPixel/speed-converter","commit_stats":null,"previous_names":["codemeapixel/speed-converter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeMeAPixel/speed-converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2Fspeed-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2Fspeed-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2Fspeed-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2Fspeed-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeMeAPixel","download_url":"https://codeload.github.com/CodeMeAPixel/speed-converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2Fspeed-converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29442741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:17:46.583Z","status":"ssl_error","status_checked_at":"2026-02-14T10:17:22.534Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-09-08T15:51:24.158Z","updated_at":"2026-02-14T10:32:05.753Z","avatar_url":"https://github.com/CodeMeAPixel.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Speed Converter\n\nA **modern Fortran** project using **FPM (Fortran Package Manager)** to convert between **km/h** and **mph**.\n\n\u003e [!NOTE]\n\u003e This project was created as my introduction to Fortran.  \n\u003e It’s a small but complete example that uses **modern Fortran features**, modular design, and unit testing.\n\n---\n\n## ✨ Features\n\n- 🔄 Convert from **km/h → mph** and **mph → km/h**\n- 🖥 Interactive **command-line interface**\n- 🧪 Comprehensive **unit tests** for accuracy\n- 📦 Structured for **FPM** (Fortran Package Manager)\n- ✅ Written with **explicit interfaces** and `implicit none`\n\n---\n\n## 🛠 Prerequisites\n\n- **gfortran** (GNU Fortran compiler)\n- **FPM** (*FPM build/run support is in progress – see below for manual build steps*)\n\n---\n\n## 🚀 Building and Running\n\n\u003e [!CAUTION]\n\u003e FPM support is being worked on.  \n\u003e For now, please build manually with **gfortran**.\n\n### Build and Run (Manual)\n\n```bash\n# Build the conversion module\ngfortran -c src/convert.f90 -J build\n\n# Build the main application\ngfortran -c app/main.f90 -I build\ngfortran -o speed-converter convert.o main.o\n\n# Run the application\n./speed-converter\n```\n\n### Build and Run Tests (Manual)\n\n```bash\n# Build tests\ngfortran -c test/test_convert.f90 -I build\ngfortran -o test_runner convert.o test_convert.o\n\n# Run tests\n./test_runner\n```\n\n### FPM Commands (Coming Soon)\n\n```bash\n# Will be available once FPM setup is complete\n# fpm run\n# fpm test\n# fpm build\n```\n\n---\n\n## 📖 Usage\n\nWhen running the application, enter a **speed value** followed by the **unit**:\n\n```\nEnter speed value and unit (e.g., \"100 kmh\" or \"60 mph\"): 100 kmh\n100.00 km/h = 62.14 mph\n```\n\n**Supported units:**\n- `kmh` or `km/h` → kilometers per hour\n- `mph` → miles per hour\n\n---\n\n## 📂 Project Structure\n\n```\nspeed-converter/\n├── fpm.toml              # FPM configuration\n├── src/\n│   └── convert.f90       # Conversion functions module\n├── app/\n│   └── main.f90          # Main application\n├── test/\n│   └── test_convert.f90  # Unit tests\n└── README.md             # This file\n```\n\n---\n\n## 📐 Conversion Formula\n\nThe project uses the standard factor:  \n**1 km/h = 0.621371 mph**\n\n---\n\n## 🧪 Testing\n\nThe included tests verify:\n\n- ✅ Conversion accuracy with known values  \n- ✅ Edge cases (e.g., zero values)  \n- ✅ Round-trip conversions  \n- ✅ Reciprocal relationships  \n\nRun tests:\n\n```bash\n# Manual method\ngfortran -c test/test_convert.f90 -I build\ngfortran -o test_runner convert.o test_convert.o\n./test_runner\n\n# With FPM (coming soon)\n# fpm test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemeapixel%2Fspeed-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemeapixel%2Fspeed-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemeapixel%2Fspeed-converter/lists"}