🏛️

Kiosk Demo

State Machine Prototype

ขั้นตอน / Steps

หน้าต้อนรับ
1ยินยอม PDPA
2เลือกวัตถุประสงค์
3เลือกผู้ที่ต้องการพบ
4เลือกวิธียืนยันตัวตน
5ยืนยันตัวตน
6ตรวจสอบข้อมูล
7ถ่ายภาพ + WiFi
8รับบัตร/สลิป

ตู้ Kiosk ล็อบบี้หลัก

KIOSK-2024-001

MOTS

กระทรวงการท่องเที่ยวและกีฬา

Visitor Management System

15:12
วันพฤหัสบดีที่ 23 กรกฎาคม 2569

ยินดีต้อนรับ

กรุณาเลือกรายการ

Device Token ไม่ถูกต้อง

กรุณากดไอคอน ⚙️ ด้านล่างเพื่อตั้งค่า Device Token ก่อนใช้งาน

แตะหน้าจอเริ่มทำงาน / Touch To Start
KIOSK-2024-001
v1.0.0
📱
🪪
📕
🖨
State Panel
เริ่มต้น
WELCOME
{
  "type": "WELCOME",
  "hasVisitorData": false,
  "hasAppointmentData": false
}
GET/api/kiosk/{servicePointId}/config

โหลด config ตู้ + เช็คสถานะ online + เวลาทำการ (Public — ไม่ต้อง auth)

{
  "servicePoint": {
    "id": 1,
    "name": "Kiosk ล็อบบี้ ชั้น 1 (ซ้าย)",
    "nameEn": "Lobby Kiosk 1F (Left)",
    "type": "kiosk",
    "status": "online",
    "serialNumber": "KIOSK-C1-L001",
    "location": "ชั้น 1 อาคาร A (ฝั่งซ้าย)",
    "locationEn": "1st Floor Building A (Left)",
    "building": "อาคาร A",
    "floor": "ชั้น 1",
    "ipAddress": "192.168.1.101",
    "adminPin": "10210",
    "followBusinessHours": true,
    "wifiSsid": "MOTS-Guest",
    "wifiPasswordPattern": "mots{year}",
    "wifiValidityMode": "end-of-day",
    "wifiFixedDurationMin": null,
    "pdpaRequireScroll": true,
    "pdpaRetentionDays": 90,
    "slipHeaderText": "กระทรวงการท่องเที่ยวและกีฬา",
    "slipFooterText": "กรุณาส่งคืนบัตรเมื่อออกจากอาคาร",
    "idMaskingPattern": "show-first1-last5",
    "todayTransactions": 42
  },
  "supportedDocuments": [
    {
      "id": 1,
      "name": "บัตรประชาชน",
      "nameEn": "Thai National ID Card"
    },
    {
      "id": 2,
      "name": "หนังสือเดินทาง",
      "nameEn": "Passport"
    },
    {
      "id": 5,
      "name": "แอป ThaiID",
      "nameEn": "ThaiID App"
    }
  ],
  "supportedPurposeIds": [
    1,
    2,
    3,
    4,
    5,
    7
  ],
  "businessHours": {
    "followBusinessHours": true,
    "isOpen": true,
    "allowWalkin": true,
    "allowKiosk": true,
    "currentRule": "เวลาทำการปกติ (จ-ศ)",
    "todaySchedule": {
      "openTime": "08:30",
      "closeTime": "16:30"
    }
  },
  "serverTime": "2026-03-26T09:00:00+07:00"
}
service_pointsbusiness_hours_rulesservice_point_purposesservice_point_documents

💡🔓 Public endpoint — ไม่ต้อง auth (Kiosk ตอน boot ยังไม่มี device token)

💡เรียกตอน boot หรือ reset กลับหน้าแรก

💡Cache ได้ — refresh ทุก 5 นาที

💡ถ้า status ≠ online → แสดงหน้า "ปิดปรับปรุง"

💡ถ้า isOpen=false → แสดงหน้า "นอกเวลาทำการ"

💡กรองเฉพาะ type=kiosk — ไม่สามารถดึง config ของ counter ได้

จุดให้บริการ (Service Points)/web/settings/service-points

กำหนดสถานะตู้ (online/offline/maintenance), ตำแหน่งที่ตั้ง, เปิดตามเวลาทำการหรือไม่

service_points.statusservice_points.typeservice_points.locationservice_points.follow_business_hours
เวลาทำการ (Business Hours)/web/settings/business-hours

ตรวจสอบว่า Kiosk เปิดให้บริการในเวลาปัจจุบันหรือไม่ — กฎวันปกติ, วันหยุด, วันพิเศษ

business_hours_rules.days_of_weekbusiness_hours_rules.open_timebusiness_hours_rules.close_timebusiness_hours_rules.allow_kiosk
Prototype