Iomatex_OS/stage_dashboards
Andrei Smaliak 6a2c4d48c4 Поправили ошибку с user ? когда не запускался lx terminal 2026-04-12 18:07:21 +04:00
..
dashboard_core Поправили ошибку с user ? когда не запускался lx terminal 2026-04-12 18:07:21 +04:00
README.md Поправили ошибку с user ? когда не запускался lx terminal 2026-04-12 18:07:21 +04:00
dashboard_installer.sh Поправили ошибку с user ? когда не запускался lx terminal 2026-04-12 18:07:21 +04:00

README.md

Edge Dashboards

This stage deploys standalone dashboards on dedicated ports without touching the existing admin UI.

Model

  • dashboard_id = port
  • current runtime source directory: /var/lib/itscreen/Downloads/it-screen/
  • deployed runtime lives in /opt/iomatex-dashboards/
  • one systemd instance serves one dashboard: iomatex-dashboard@<port>.service
  • current HTML selection mode: newest .html file by modification time
  • dashboard server proxies bridge API:
    • /api/bridge/event -> http://127.0.0.1:8787/api/event
    • /api/bridge/component -> http://127.0.0.1:8787/api/component
    • /api/bridge/health -> http://127.0.0.1:8787/api/health

Current behavior for 5678

  • service reads .html files from /var/lib/itscreen/Downloads/it-screen/
  • if at least one .html file exists, / returns the selected file as the dashboard entrypoint
  • if no .html file exists, / returns fallback page: No dashboard HTML file found
  • non-HTML static files from the same directory remain directly accessible by path
  • HTML for LAN clients should call same-origin bridge routes, for example /api/bridge/event

Install

sudo bash stage_dashboards/dashboard_installer.sh

Verify

ls -lah /var/lib/itscreen/Downloads/it-screen/
curl -I http://127.0.0.1:5678/
curl http://127.0.0.1:5678/
systemctl status iomatex-dashboard@5678.service --no-pager -n 40
journalctl -u iomatex-dashboard@5678.service --no-pager -n 50