|
|
||
|---|---|---|
| .. | ||
| dashboard_core | ||
| README.md | ||
| dashboard_installer.sh | ||
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
.htmlfile 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
.htmlfiles from/var/lib/itscreen/Downloads/it-screen/ - if at least one
.htmlfile exists,/returns the selected file as the dashboard entrypoint - if no
.htmlfile 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