{"id":16147984,"url":"https://github.com/handiko/mygps","last_synced_at":"2025-07-16T12:06:07.813Z","repository":{"id":113659325,"uuid":"166909282","full_name":"handiko/MyGPS","owner":"handiko","description":"GPS GPRMC Sentence parser library","archived":false,"fork":false,"pushed_at":"2021-07-22T00:36:42.000Z","size":75,"stargazers_count":9,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T18:21:38.559Z","etag":null,"topics":["arduino","arduino-ide","arduino-library","arduino-sketch","gprmc","gps","gps-library","nmea-library","nmea-parser"],"latest_commit_sha":null,"homepage":"https://handiko.github.io/MyGPS","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/handiko.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":"2019-01-22T01:57:43.000Z","updated_at":"2023-02-05T05:59:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"f93499a1-18ed-47e9-acf5-f752dee39f69","html_url":"https://github.com/handiko/MyGPS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/handiko/MyGPS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handiko%2FMyGPS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handiko%2FMyGPS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handiko%2FMyGPS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handiko%2FMyGPS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/handiko","download_url":"https://codeload.github.com/handiko/MyGPS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handiko%2FMyGPS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265508264,"owners_count":23779107,"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":["arduino","arduino-ide","arduino-library","arduino-sketch","gprmc","gps","gps-library","nmea-library","nmea-parser"],"created_at":"2024-10-10T00:29:26.709Z","updated_at":"2025-07-16T12:06:07.773Z","avatar_url":"https://github.com/handiko.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyGPS - A Simple GPS GPRMC Parser Library for Arduino\nParsing GPS GPRMC sentence from a GPS serial data, written in C.\n\n## Instalation\n* Download as .zip\n* Open Arduino IDE.\n* From **Sketch**, **Include Library --\u003e Add .ZIP Library...**\n* Choose the downloaded .zip. (when downloaded, more likely be named **MyGPS-master.zip**)\n* Restart the Arduino IDE\n\n## Usage\n```cpp\n// include this library\n#include \u003cMyGPS.h\u003e          \n//include software serial for creating the second serial line\n#include \u003cSoftwareSerial.h\u003e \n\n// Arduino PIN 8 \u003c-- serial data from GPS\n// Arduino PIN 9 --\u003e serial data to GPS (not required)\nSoftwareSerial gps = SoftwareSerial(8, 9);\n\n// somewhere in your code...\n// creating GPS struct variable\nGPSresults GPS;\n// perform gps GPRMC parsing and save the results into GPS\nGPS = gps_parse(gps);\n```\n\n## Example\nAfter installation, open your Arduino IDE. From **File**, click **Examples --\u003e MyGPS --\u003e GPS_gprmc_parser**\n```cpp\n#include \u003cSoftwareSerial.h\u003e\n#include \u003cMyGPS.h\u003e\n\nSoftwareSerial gps = SoftwareSerial(8, 9);\n\nvoid setup()\n{\n  Serial.begin(115200);\n  \n  Serial.println(\" \");\n  Serial.print(\"Sketch:   \");   Serial.println(__FILE__);\n  Serial.print(\"Uploaded: \");   Serial.println(__DATE__);\n  Serial.println(\" \");\n  \n  Serial.println(\"GPS Struct Test - Started ! \\n\");\n\n  gps.begin(9600);\n}\n\nvoid loop()\n{\n  char buff[250];\n  \n  GPSresults GPS = gps_parse(gps);\n\n  if(GPS.gps_success)\n  {    \n    sprintf(buff, \"\\n%s\", GPS.gps_rmc);\n    \n    sprintf(buff, \"%s \\n GPS Time (HHMMSS): %s\", buff, GPS.gps_time);\n    sprintf(buff, \"%s \\n GPS Valid: %c\", buff, GPS.gps_valid);\n    sprintf(buff, \"%s \\n GPS Latitude: %s\", buff, GPS.gps_lat);\n    sprintf(buff, \"%s \\n GPS N/S: %c\", buff, GPS.gps_ns);\n    sprintf(buff, \"%s \\n GPS Longitude: %s\", buff, GPS.gps_lon);\n    sprintf(buff, \"%s \\n GPS E/W: %c\", buff, GPS.gps_ew);\n    sprintf(buff, \"%s \\n GPS Speed (knots): %s\", buff, GPS.gps_spd);\n    sprintf(buff, \"%s \\n GPS Course (degree): %s\", buff, GPS.gps_cse);\n    sprintf(buff, \"%s \\n GPS Date (DDMMYY): %s \\n\", buff, GPS.gps_date);\n    \n    Serial.println(buff);\n  }\n}\n```\nOn the Serial Monitor, you can examine the parsing results.\n![](./example.png)\n\n## TODO\n* Optimize the code (there is a lot of room for improvements!!)\n* Adding capabitilies for parsing other sentences\n* ...\n\n## Contributing\n1. Fork it [https://github.com/handiko/MyGPS/fork](https://github.com/handiko/MyGPS/fork)\n2. Create new branch (`git checkout -b myfeature`)\n3. Do some editing / create new feature\n4. Commit your works (`git commit -m \"Adding some feature blah blah blah..\"`)\n5. Push to the branch (`git push -u origin myfeature`)\n6. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandiko%2Fmygps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhandiko%2Fmygps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandiko%2Fmygps/lists"}