ระบบเรียกคิวมี จอแสดงผลหลัก (Main Display) และ ตัวลูก 5 ช่องบริการ (Client Terminals) ซึ่งแต่ละช่องสามารถเรียกคิวได้ และกำหนดหมายเลขช่องของตัวเองได้
1. Google Sheet (QueueData)
- QueueNumber: หมายเลขคิว
- Channel: ช่องที่เรียก (1-5)
- Called: TRUE เมื่อถูกเรียกแล้ว
📁 โครงสร้างไฟล์
Code.gs
– ส่วนของ Server (Google Apps Script)mainDisplay.html
– หน้าจอแสดงผลหลัก (ไว้เปิดเต็มหน้าจอทีวี)client.html
– จอของช่องบริการ (ตัวลูก) สำหรับเรียกคิว พร้อมเลือกช่อง
📜 Code.gs
🌐 mainDisplay.html
– หน้าจอแสดงผลหลัก
🧑💼 client.html
– หน้าจอตัวลูกแต่ละช่อง
🔗 วิธีใช้งาน
- เปิด Google Apps Script
- สร้างโปรเจกต์ใหม่
- วาง
Code.gs
,mainDisplay.html
, และclient.html
ตามด้านบน - ผูกกับ Google Sheet ที่ชื่อ
QueueData
- กด
Deploy > Manage deployments > Web app
- Execute as: Me
- Who has access: Anyone
/exec?page=client
→ สำหรับจอเรียกคิว (ของแต่ละช่อง)/exec
→ สำหรับจอแสดงผลหลัก
It's OK for Queue
ตอบลบ