SmarToilets API Manager
— KWH
Stopped
Start
Stop
Server URL
Hospital Connections
Add
Name
WCs
Token
Database (PostgreSQL)
Connection String
Test
Target Table
device_status — Sensor status (bin, tap, flush, soap…)
wc_occupy — Cubicle occupied / vacant
traffic — People in / out count
air_quality — PM2.5, NH3, temperature, humidity…
occupy_level — Fall, movement, overstay, SOS
Reconnect Frequency
Every
Minute(s)
Hour(s)
Day(s)
Month(s)
Year(s)
Socket.IO streams data in real-time. This setting controls how often the collector re-subscribes to all events (useful for automatic reconnection).
Save Configuration
Watchdog Health
View Logs
Data Age
—
Status
—
Last Check
—
Auto-Restarts
—
Recent Data
device_status
wc_occupy
traffic
air_quality
occupy_level
Refresh
No data yet. Start the collector to receive sensor events.
Hospital Connection
Connection Name
Bearer Token (JWT)
API Server URL
(optional — leave blank to use global Server URL above)
Override this only if a specific hospital uses a different Yunhorn API endpoint.
WC Locations
Add WC
siteName = hospital code (kwh / pwh) | wcName = toilet location code (gf / ttt / f2 / kct)
Live API Test
Test Connection
Subscribes to each WC for 15 seconds — shows event counts as they arrive.
Result will appear here.