{"id":49037150,"url":"https://github.com/davedka/ticky","last_synced_at":"2026-04-19T12:02:19.179Z","repository":{"id":347369337,"uuid":"1186279036","full_name":"Davedka/Ticky","owner":"Davedka","description":"Digital room identification system for schools – real-time timetable, QR codes \u0026 teacher finder","archived":false,"fork":false,"pushed_at":"2026-04-14T18:14:17.000Z","size":2527,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T20:16:04.923Z","etag":null,"topics":["api","api-rest","database","docker","php","php8","postgresql","qrcode","real-time","room-management","school","supabase","tailwindcss","timetable"],"latest_commit_sha":null,"homepage":"https://ticky-6r32.onrender.com","language":"PHP","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/Davedka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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":"2026-03-19T13:10:19.000Z","updated_at":"2026-04-14T18:14:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Davedka/Ticky","commit_stats":null,"previous_names":["davedka/ticky"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Davedka/Ticky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davedka%2FTicky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davedka%2FTicky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davedka%2FTicky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davedka%2FTicky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Davedka","download_url":"https://codeload.github.com/Davedka/Ticky/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davedka%2FTicky/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32005831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["api","api-rest","database","docker","php","php8","postgresql","qrcode","real-time","room-management","school","supabase","tailwindcss","timetable"],"created_at":"2026-04-19T12:02:17.661Z","updated_at":"2026-04-19T12:02:19.164Z","avatar_url":"https://github.com/Davedka.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏫 Ticky — Real-Time Classroom Availability System\n\n[![Live](https://img.shields.io/badge/Live-ticky--6r32.onrender.com-00c896?style=for-the-badge\u0026logo=render\u0026logoColor=white)](https://ticky-6r32.onrender.com)\n\n[![PHP](https://img.shields.io/badge/PHP-8.x-777BB4?style=for-the-badge\u0026logo=php\u0026logoColor=white)](https://php.net)\n[![Supabase](https://img.shields.io/badge/Supabase-PostgreSQL-3ECF8E?style=for-the-badge\u0026logo=supabase\u0026logoColor=white)](https://supabase.com)\n\n\u003e QR code-based classroom identification system built as a thesis project — deployed and running live at school, tracking **53 rooms** and **69 teachers** in real time.\n\n---\n\n## 📸 Screenshots\n\n### Home Page\n![Home](screenshots/home.png)\n\n### Live Room Dashboard — Corridor Display\n![Corridor Display](screenshots/kijelzo.png)\n\n### Teacher Finder\n![Teacher Finder](screenshots/tanar.png)\n\n### QR Code Generator\n![QR Generator](screenshots/qr.png)\n\n---\n\n## ✨ Features\n\n- 🟢 **Real-time room status** — see which rooms are free or occupied right now\n- 👩‍🏫 **Teacher finder** — search any of the 69 teachers and see where they are\n- 📺 **Corridor display mode** — full-screen TV/tablet view for hallway screens\n- 🖨️ **QR code generator** — generate \u0026 print QR codes for every classroom\n- 📅 **Weekly timetable** — per-room and per-teacher schedule view\n- 🔐 **Admin panel** — password-protected dashboard for managing teachers and rooms\n- ⚡ **Auto-refresh** — data updates every 30–60 seconds without page reload\n\n---\n\n## 🛠️ Stack\n\n| Layer | Technology |\n|-------|-----------|\n| Backend API | PHP 8.x (Render.com) |\n| Database | Supabase (PostgreSQL) |\n| Frontend | Tailwind CSS + Vanilla JS |\n| Importer | Node.js (run locally) |\n| Deploy | Render.com |\n\n---\n\n## 📡 API Endpoints\n\n| Endpoint | Description |\n|----------|-------------|\n| `GET /api/ping` | Health check |\n| `GET /api/termek` | All rooms |\n| `GET /api/termek?allapot=1` | Rooms with live availability status |\n| `GET /api/terem/{number}` | Current \u0026 next class for a room |\n| `GET /api/napirend/{number}` | Today's schedule for a room |\n| `GET /api/napirend/{number}?nap=heten` | Full weekly schedule for a room |\n| `GET /api/tanarok` | All teacher codes and names |\n| `GET /api/tanar/{code}/orarend` | Today's schedule for a teacher |\n\n---\n\n## 📄 Example Response\n\n```json\nGET /api/terem/204\n{\n  \"terem\": \"204\",\n  \"allapot\": \"foglalt\",\n  \"aktualis\": {\n    \"tanar\": \"ÁSZJ\",\n    \"tanar_nev\": \"Ácsné Szűcs Judit\",\n    \"osztaly\": \"9.b\",\n    \"tantargy\": \"mny\",\n    \"kezdes\": \"09:15\",\n    \"vegzes\": \"10:00\",\n    \"perc_maradt\": 23\n  },\n  \"kovetkezo\": {\n    \"tanar\": \"ÁSZJ\",\n    \"osztaly\": \"10.c\",\n    \"kezdes\": \"10:15\",\n    \"vegzes\": \"11:00\"\n  }\n}\n```\n\n---\n\n## 🗂️ File Structure\n\n```text\nticky-backend/\n├── index.php              ← Router\n├── config/\n│   └── supabase.php       ← Supabase connection\n├── utils/\n│   └── helpers.php        ← Routing, CORS, JSON helpers\n├── api/\n│   ├── terem.php\n│   ├── termek.php\n│   ├── napirend.php\n│   ├── tanarok.php\n│   ├── tanar_orarend.php\n│   ├── admin_tanar.php\n│   └── admin_terem.php\n└── pages/\n    ├── terem.php          ← /terem/{number}\n    ├── termek.php         ← /termek\n    ├── napirend.php       ← /terem/{number}/nap\n    ├── tanar.php          ← /tanar\n    ├── kijelzo.php        ← /kijelzo\n    ├── qr.php             ← /qr\n    └── admin.php          ← hidden route from `ADMIN_PATH`\n```\n\n---\n\n## 🚀 Deployment (Render.com)\n\n1. Push `ticky-backend/` to GitHub\n2. Render → **New Web Service** → Connect repo\n3. **Build command:** `echo \"No build needed\"`\n4. **Start command:** `php -S 0.0.0.0:$PORT index.php`\n5. Set environment variables (see below)\n6. Deploy — takes ~1–2 minutes\n\n\n\n## 📥 Timetable Importer (Node.js)\n\n```bash\ncd importer\nnpm install\nnode importer.js\n```\n\nRequires a `.env` file with `SUPABASE_URL` and `SUPABASE_SERVICE_KEY`.\nThe importer wipes existing data and re-uploads. Run it whenever the timetable changes.\n\n---\n\n## 🗃️ Database Schema\n\n| Table | Fields |\n|-------|--------|\n| `termek` | `terem_szam`, `emelet` |\n| `tanarok` | `rovid_nev`, `nev` |\n| `orarendek` | `terem_id`, `tanar_id`, `osztaly`, `tantargy`, `het_napja`, `kezdes`, `vegzes` |\n\n`het_napja`: `1` = Monday … `5` = Friday\n\n---\n\n## 🔔 Bell Schedule\n\n| Period | Start | End |\n|--------|-------|-----|\n| 1st | 07:30 | 08:10 |\n| 2nd | 08:20 | 09:05 |\n| 3rd | 09:15 | 10:00 |\n| 4th | 10:15 | 11:00 |\n| 5th | 11:10 | 11:55 |\n| 6th | 12:05 | 12:50 |\n| 7th | 12:50 | 13:35 |\n| 8th | 13:40 | 14:20 |\n\n---\n\n\n\n\u003cp align=\"center\"\u003eBuilt with ☕ by \u003ca href=\"https://github.com/Davedka\"\u003eDavedka\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavedka%2Fticky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavedka%2Fticky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavedka%2Fticky/lists"}