+
Events that the card monitors (SET UP EVENT LIST):
Fetched proactive commands:
@@ -3887,6 +3888,27 @@ async function pysimEventSend() {
}
}
+async function pysimStatusPoll() {
+ const btn = document.getElementById('pli-status-btn');
+ if (!btn) return;
+ btn.disabled = true;
+ btn.textContent = t('STATUS...');
+ try {
+ const resp = await pysimFetch('/api/status-poll', {});
+ if (resp.fetch) {
+ btn.textContent = 'SW: ' + resp.sw + ' + ' + resp.fetch_sw;
+ } else {
+ btn.textContent = 'SW: ' + resp.sw;
+ }
+ pysimEventsRender();
+ pysimProactiveLogRender();
+ } catch (e) {
+ btn.textContent = t('Error');
+ } finally {
+ setTimeout(() => { btn.textContent = t('Send STATUS'); btn.disabled = false; }, 2000);
+ }
+}
+
// ===== proactive command log =====
const CMD_NAMES = {
'03': 'POLL INTERVAL', '05': 'SET UP EVENT LIST',
@@ -4486,6 +4508,8 @@ const LANG_RU = {
'Card reader removed': 'Картридер извлечён',
'Card reader inserted': 'Картридер вставлен',
'PROVIDE LOCAL INFORMATION response data': 'Данные для PROVIDE LOCAL INFORMATION',
+ 'Send STATUS': 'Отправить STATUS',
+ 'STATUS...': 'STATUS...',
'Saving...': 'Сохранение...',
'Saved': 'Сохранено',
'Save': 'Сохранить',