When to use it
When your stream goes live, it shows a LIVE label, the stream title, the elapsed time, and a Watch link above the chat room. When the stream ends, it goes away.
Your external server sends values through the uchat API, and this plugin draws them. Turn on the plugin, get a key from the API menu on the admin page, and put it on your server.
How to send
Send a JSON body with the Authorization: Bearer {API key} header to POST https://api.uchat.io/v2/rooms/{API room ID}/events. plugin is onAir.
curl -X POST https://api.uchat.io/v2/rooms/room_xxxxxxxxxxxxxxxx/events \
-H "Authorization: Bearer uchat_..." \
-H "Content-Type: application/json" \
-d '{"plugin":"onAir","save":true,"data":["on","Today's stream","https://chzzk.naver.com/live/...","1792400400"]}'
dataorder:on, stream title, stream link, start time (unix seconds)- When the stream ends, save
"data":["off"]. Each screen works out the elapsed time from the start time and the server clock. - With
"save": true, the last value is saved, so people who join later get it when they enter. To take it down, save"data":[]. - It draws only values from the server API, and shows them as plain text.