{"id":34903957,"url":"https://github.com/imlunchtime/tmos_cardputer","last_synced_at":"2026-04-27T14:01:43.453Z","repository":{"id":327197588,"uuid":"1104453875","full_name":"ImLunchtime/TmOS_Cardputer","owner":"ImLunchtime","description":"[Half-Archived]A simple OS for the Cardputer(-ADV) device. I hadn't come up with a name yet.","archived":false,"fork":false,"pushed_at":"2025-12-30T11:55:09.000Z","size":2117,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"new","last_synced_at":"2026-01-02T11:47:33.852Z","etag":null,"topics":["cardputer","lvgl","m5cardputer","m5stack","platformio"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ImLunchtime.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-26T08:31:22.000Z","updated_at":"2025-12-31T16:55:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ImLunchtime/TmOS_Cardputer","commit_stats":null,"previous_names":["imlunchtime/tmos_cardputer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ImLunchtime/TmOS_Cardputer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImLunchtime%2FTmOS_Cardputer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImLunchtime%2FTmOS_Cardputer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImLunchtime%2FTmOS_Cardputer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImLunchtime%2FTmOS_Cardputer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ImLunchtime","download_url":"https://codeload.github.com/ImLunchtime/TmOS_Cardputer/tar.gz/refs/heads/new","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImLunchtime%2FTmOS_Cardputer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32339290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["cardputer","lvgl","m5cardputer","m5stack","platformio"],"created_at":"2025-12-26T09:37:58.020Z","updated_at":"2026-04-27T14:01:43.448Z","avatar_url":"https://github.com/ImLunchtime.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TmOS\nA *simple* operating system for the M5Stack Cardputer(-ADV).\n\n## How to use?\n - Clone the repo\n - Compile and upload using PlatformIO\n - Follow special instructions for some apps in order to make them work properly.\n\n## Some tips\n - Most of the apps require an SD card (formatted in FAT32/FAT. exFAT won't work)\n  - Some apps require specific files on the SD card. Check the apps' instructions for more info.\n\n## App Instructions\n\n### Music\n- Place `.mp3` files in `/music` or anywhere on the SD card; both locations are scanned.\n- Use the naming pattern `Artist-Album-Title.mp3` to get artist/album grouping in the list. Files without this pattern are grouped as “Uncategorized”.\n- Optional lyrics: put a `.lrc` file next to the `.mp3` with the exact same name (e.g. `Song.mp3` + `Song.lrc`). Timestamps like `[mm:ss.xx]` are supported.\n- Controls: move through the list and select a track; in the player view use the slider for volume, and press `Z` to increase or `X` to decrease volume.\n- Playback auto-advances to the next song when one finishes.\n- Only `.mp3` is supported.\n\nExample `.lrc` snippet:\n```\n[00:12.00] Line before\n[00:15.20] Current line\n[00:18.50] Next line\n```\n\n### Pictures\n- Supported format: LVGL raw image `.bin` in `RGB565` true color (no alpha). Use the LVGL Image Converter and export “Binary” with color format `RGB565`.\n- File naming: visible gallery items must be prefixed `i_` and not start with `iec_` (e.g. `i_mountain.bin`). Files named `iec_...` are reserved for password-locked viewing.\n- You can place images anywhere on the SD card; the app scans all folders for `.bin`.\n- Viewer controls:\n  - Zoom in `=` and Zoom out `-`\n  - Pan Up `;`, Down `.`, Left `,`, Right `/`\n  - Toolbar buttons also provide zoom, fit-to-window, and pan.\n- Password-locked image:\n  - Tap “Decrypt Image”, enter your password.\n  - The app computes `MD5(password).upper()[8:24]` and looks for a file named `iec_\u003cSUBSTRING\u003e.bin` in SD root. If present, it opens it.\n  - To prepare such a file: convert your `.bin` image as usual and rename it to `iec_\u003cSUBSTRING\u003e.bin` using the rule above.\n\n### Station Reporter\n- Folder layout on SD:\n  - `/bus_routes/routes.json` lists available routes and optional templates/tips.\n  - `/bus_routes/\u003cid\u003e.json` defines a specific route (stations, audios).\n  - `/bus_routes/audios/*.mp3` holds audio snippets referenced by the route and tips.\n- Default route loaded from `/bus_routes/line1.json`.\n- Tabs:\n  - Control: shows current/next station with a main action button. Use “Start Run” → “Depart” → “Arrive”. “Prev” goes back a station. “!” toggles emergency. “Announce” plays the departure message sequence.\n  - Route: pick a route from the list.\n  - Settings: adjust volume and view routes.\n  - Tips: quick buttons that play predefined audio files.\n- Audio template tokens in `routes.json`: `$line`, `$terminal`, `$next` (Chinese aliases `$线路`, `$本线路终点站`, `$下一站`). These are replaced with the corresponding audio filenames defined in the route.\n\nMinimal `routes.json`:\n```json\n{\n  \"audio_template\": [\"$line\", \" \", \"$next\"],\n  \"tips_buttons\": [\n    { \"label\": \"Emergency Stop\", \"audio\": \"emergency_stop.mp3\" }\n  ],\n  \"routes\": [\n    { \"id\": \"line1\", \"name\": \"Line 1\" }\n  ]\n}\n```\n\nMinimal `/bus_routes/line1.json`:\n```json\n{\n  \"route_name\": \"Line 1\",\n  \"line_audio\": \"line1_name.mp3\",\n  \"stations\": [\n    { \"name\": \"Alpha Station\", \"id\": \"alpha\", \"audio\": \"alpha_next.mp3\" },\n    { \"name\": \"Bravo Station\", \"id\": \"bravo\", \"audio\": \"bravo_next.mp3\" }\n  ]\n}\n```\n\n### UX Executor\n- Place `.uxc` files (JSON) anywhere on the SD card; they will be listed and can be launched.\n- Format: a JSON object with a `widgets` array; each item describes a widget. Basic types include `label`, `button`, and `img`. Buttons can define `on.click` actions like `toast`.\n- Images used by `img.src` should point to LVGL `.bin` images as described in Pictures.\n- You can author `.uxc` files directly with the built-in UX Editor.\n\nMinimal `.uxc` example:\n```json\n{\n  \"widgets\": [\n    { \"type\": \"label\", \"text\": \"Hello UXC\" },\n    { \"type\": \"button\", \"text\": \"Click\",\n      \"on\": { \"click\": { \"action\": \"toast\", \"text\": \"Clicked!\" } }\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimlunchtime%2Ftmos_cardputer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimlunchtime%2Ftmos_cardputer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimlunchtime%2Ftmos_cardputer/lists"}