{"id":31588488,"url":"https://github.com/nmrr/lilygo-gpstracker","last_synced_at":"2026-05-16T11:32:20.109Z","repository":{"id":317091429,"uuid":"1065940609","full_name":"nmrr/lilygo-gpstracker","owner":"nmrr","description":"A tiny GPS tracking app for the LilyGO T-SIM7600 board","archived":false,"fork":false,"pushed_at":"2025-09-28T19:34:33.000Z","size":560,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-28T20:39:13.028Z","etag":null,"topics":["esp32","gps","lilygo","sim7600","sim7600x","tracker"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nmrr.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-28T18:27:26.000Z","updated_at":"2025-09-28T19:34:36.000Z","dependencies_parsed_at":"2025-09-28T20:39:14.752Z","dependency_job_id":"01537229-eae6-4af0-a5c0-66b4cca5c5f4","html_url":"https://github.com/nmrr/lilygo-gpstracker","commit_stats":null,"previous_names":["nmrr/lilygo-gpstracker"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nmrr/lilygo-gpstracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmrr%2Flilygo-gpstracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmrr%2Flilygo-gpstracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmrr%2Flilygo-gpstracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmrr%2Flilygo-gpstracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nmrr","download_url":"https://codeload.github.com/nmrr/lilygo-gpstracker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmrr%2Flilygo-gpstracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278547821,"owners_count":26004775,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["esp32","gps","lilygo","sim7600","sim7600x","tracker"],"created_at":"2025-10-06T02:09:49.885Z","updated_at":"2025-10-06T02:11:13.908Z","avatar_url":"https://github.com/nmrr.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"### LilyGO GPS Tracker\n\nA tiny GPS tracking app for the LilyGO T-SIM7600 board\n\n![banner](https://github.com/nmrr/lilygo-gpstracker/blob/main/img/gpstracker16bit.jpg)\n\nTested on the **T-SIM7600E**. May work on other LTE+GPS LilyGO boards.\n\nThe position is transmitted every minute to a server via **UDP**. The transmission is encrypted using **AES-256-CTR** and authenticated with **HMAC-SHA256**. There is only an uplink connection: the server never communicates with the LilyGO board (for now).\n\n## Setup\n\n\u003cp align=\"center\"\u003e\u003cimg alt=\"T-SIM7600E\" src=\"https://github.com/nmrr/lilygo-gpstracker/blob/main/img/lilygo.jpg\" width=30% height=30%\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\nT-SIM7600E board\n\u003c/p\u003e\n\nDependencies to install in the Arduino IDE:\n* libmbedtls\n* TinyGsmClient\n\nIn the LilyGO project file, add the IP address of your server. Destination port can be changed if necessary:\n\n```\n#define SERVER_ADDR \"XX.XX.XX.XX\"\n#define SERVER_PORT 55100\n```\n\nYou must generate the **AES** key and **HMAC** secret yourself. Execute the following command twice, then insert the hexadecimal string into the Node.js server and as a C-style array in the LilyGO source project. Keys must be identical on both sides.\n```\nopenssl rand -hex 32 | tee \u003e(sed 's/../0x\u0026, /g' | sed 's/, $/};/;s/^/{/' | sed '1s/^/\\r\\n/')\n```\n\nAdd the keys here in the LilyGO project:\n```\nunsigned char keyAES[32] = { /* YOUR AES256 KEY*/ };\nconst unsigned char keyHMAC[32] = { /*YOUR HMAC SECRET*/ };\n```\n\nAdd the keys here in the Node.js server:\n```\nconst AESKey = Buffer.from('YOUR AES256 KEY', 'hex')\nconst HMACKey = Buffer.from('YOUR HMAC SECRET', 'hex')\n```\n\nFor now, a **static key** is generated. The security is sufficient for the purpose and the amount of data that will be transmitted.\n\nIf Node.js server is running on a VPS (with a dedicated IP) inside a container (like LXC) and has a local IP, you need to forward packets: \n```\nsysctl -w net.ipv4.ip_forward=1\niptables -I INPUT 1 -i eno1 -p udp -m state --state NEW,ESTABLISHED -m udp --dport 55100 -j ACCEPT\niptables -t nat -A PREROUTING -i eno1 -p udp --dport 55100 -j DNAT --to-destination XX.XX.XX.XX:55100\n```\n\nNode.js server needs **express** web framework to work:\n```\nnpm install express\n```\n\nWebpage is available here: http://XX.XX.XX.XX:3000/\n\n\n## Run the project\n\nUDP packets are arriving after a few minutes. All packets are encrypted:\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/nmrr/lilygo-gpstracker/blob/main/img/tcpdump.png\" width=40% height=40%\u003e\u003c/p\u003e\n\nYour postion on the map:\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/nmrr/lilygo-gpstracker/blob/main/img/map.png\" width=40% height=40%\u003e\u003c/p\u003e\n\nCurrently, there’s a basic auto-refresh every 75 seconds. Real-time positioning will be available in a future release.\n\n## What's next?\n\n* Real-time positioning via WebSocket\n* Limit data transmission only when tracker is moving\n* Use esp32/modem sleep function to conserve battery\n\n## Changelog\n\n* 2025-10-02\n  * Fix encryption issue: include IV in HMAC calculation\n  * Improve timing accuracy of pause between GPS acquisitions\n\n* 2025-09-28\n  * Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmrr%2Flilygo-gpstracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnmrr%2Flilygo-gpstracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmrr%2Flilygo-gpstracker/lists"}