Edge Automation Gateway
Unified diagnostics, network operations and gateway commissioning.
+diff --git a/docs/releases/console-3.1.9.md b/docs/releases/console-3.1.9.md new file mode 100644 index 0000000..3eb6b7a --- /dev/null +++ b/docs/releases/console-3.1.9.md @@ -0,0 +1,11 @@ +# Console 3.1.9 + +Release date: 2026-10-04. + +- Move Console version, update, help and installation-log controls into the header. Remove the duplicate service card while retaining its existing authenticated release API and shared renderer. +- Explain that Console is this web interface and that its update replaces the interface and management API. +- Keep Version, Install/Update and Installation log together in the shared wrapping action row, with consistent gaps. + +Validation: 99 backend tests; browser checks at 360, 768, 1024 and 1440 pixels for header update confirmation/cancellation, service help, log escaping, layout and keyboard closure. Existing action-row styles are reused without new CSS. + +Released together with IP Camera Streaming 1.0.3. Installation on the local Edge is left to the operator. diff --git a/docs/releases/ip-stream-1.0.3.md b/docs/releases/ip-stream-1.0.3.md new file mode 100644 index 0000000..6d86dbf --- /dev/null +++ b/docs/releases/ip-stream-1.0.3.md @@ -0,0 +1,11 @@ +# IP Camera Streaming 1.0.3 + +Release date: 2026-10-04. + +- Install the missing FFmpeg CLI through the existing commit-pinned IOMATEX Git-only APT transport before creating the streaming service. Check that the executable runs before continuing; package errors remain in the installation log. +- Bundle Debian Bullseye ARM64 FFmpeg 7:4.3.9-0+deb11u2 and 34 additional dependency packages in our Git repository, with package indexes and SHA-256 manifests. Existing bundled DEBs remain unchanged. +- Add FFmpeg to the maintainer build manifest. Upstream downloads happen only during package preparation; Edge installations use our Git storage. + +Edge Environment remains at 1.0.3: installing this streaming release supplies the dependency, so reinstalling Environment is unnecessary. + +Validation: complete dependency resolution/download with networking disabled, package checksum verification, Git-only transport and release-owner tests. The service has not been installed on the local Edge; the operator retains control of installation. diff --git a/offline/packages.txt b/offline/packages.txt index be0b39c..fa5905d 100644 --- a/offline/packages.txt +++ b/offline/packages.txt @@ -16,3 +16,5 @@ lxterminal openbox wmctrl xdotool libqt5serialbus5-bin qml-module-qtmultimedia qml-module-qtpositioning qml-module-qtquick-virtualkeyboard qtvirtualkeyboard-plugin qml-module-qtwebview qml-module-qt-labs-settings qml-module-qtquick-xmllistmodel qml-module-qtquick-controls2 qml-module-qt-websockets qml-module-qt-labs-platform +# Camera streaming and snapshots (CLI, in addition to multimedia libraries). +ffmpeg diff --git a/stage-releases.json b/stage-releases.json index d0e7016..4296489 100644 --- a/stage-releases.json +++ b/stage-releases.json @@ -14,7 +14,7 @@ "version": "1.0.0" }, "stage_ui": { - "version": "3.1.8" + "version": "3.1.9" }, "stage_avahi": { "version": "1.0.0" @@ -31,7 +31,7 @@ }, "optional_stages": { "stage_ip_stream": { - "version": "1.0.2" + "version": "1.0.3" } } } diff --git a/stage_ip_stream/stage_ip_stream_install.sh b/stage_ip_stream/stage_ip_stream_install.sh index 369b4da..6541b26 100644 --- a/stage_ip_stream/stage_ip_stream_install.sh +++ b/stage_ip_stream/stage_ip_stream_install.sh @@ -8,8 +8,15 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" command -v python3 >/dev/null command -v mosquitto_pub >/dev/null command -v mosquitto_sub >/dev/null -command -v ffmpeg >/dev/null || { - echo "ffmpeg is required; install stage_itscreen/base multimedia packages first" >&2 +# require-local.sh activates the commit-pinned Git-only APT source. +# Qt multimedia libraries do not provide the ffmpeg command-line program. +if ! command -v ffmpeg >/dev/null; then + echo "Installing FFmpeg from the IOMATEX Git package repository" + apt-get update + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ffmpeg +fi +ffmpeg -version >/dev/null || { + echo "FFmpeg is installed but cannot run; see package installation output above" >&2 exit 1 } diff --git a/stage_ip_stream/version.json b/stage_ip_stream/version.json index 9a8bfb2..bbea0d7 100644 --- a/stage_ip_stream/version.json +++ b/stage_ip_stream/version.json @@ -1,3 +1,3 @@ { - "version": "1.0.2" + "version": "1.0.3" } diff --git a/stage_ui/console_core/backend/app.py b/stage_ui/console_core/backend/app.py index 01141bc..f6dccad 100644 --- a/stage_ui/console_core/backend/app.py +++ b/stage_ui/console_core/backend/app.py @@ -54,7 +54,7 @@ APP_DIR = "/opt/iomatex-console" PUBLIC_DIR = os.path.join(APP_DIR, "public") PROVIDERS_DIR = os.path.join(APP_DIR, "providers.d") CONFIG_PATH = "/etc/iomatex/console.json" -UI_VERSION = "V 3.1.8" +UI_VERSION = "V 3.1.9" STORAGE_HEALTH_COMMAND = "/usr/local/sbin/iomatex-storage-health" ZONEINFO_ROOT = "/usr/share/zoneinfo" diff --git a/stage_ui/console_core/backend/test_service_diagnostics_browser.cjs b/stage_ui/console_core/backend/test_service_diagnostics_browser.cjs index f374d55..320b472 100644 --- a/stage_ui/console_core/backend/test_service_diagnostics_browser.cjs +++ b/stage_ui/console_core/backend/test_service_diagnostics_browser.cjs @@ -9,18 +9,30 @@ const base=process.env.EDGE_CONSOLE_URL || 'http://192.168.0.109'; const page=await ctx.newPage();const errors=[];page.on('pageerror',e=>errors.push(e.message));let logs=0; await page.route('**/*',async route=>{ const p=new URL(route.request().url()).pathname; + if(p==='/')return route.fulfill({path:'/repo/stage_ui/console_core/frontend/index.html',contentType:'text/html'}); if(['/console.js','/console.css','/console.i18n.js'].includes(p))return route.fulfill({path:'/repo/stage_ui/console_core/frontend'+p}); + if(p==='/api/stages/install')throw Error('Test must never install'); if(p==='/api/stages/log'){logs++;return route.fulfill({json:{stage:'stage_ip_stream',state:'failed',reason:'FFmpeg is missing. The streaming installer stopped before creating the service.',lines:Array(300).fill('ffmpeg is required; '),truncated:true}})} if(p==='/api/health/services'){ const r=await route.fetch();const d=await r.json();d.updates.job={stage:'stage_ip_stream',unit:'fixture',state:'failed',reason:'FFmpeg is missing. The streaming installer stopped before creating the service.'}; + Object.assign(d.services.find(s=>s.id==='console').release,{latest:'3.1.9',status:'update_available',can_install:true}); d.services.find(s=>s.id==='ip_stream').details=[{label:'FFmpeg',value:'Not installed'}];return route.fulfill({json:d}); }return route.continue(); }); await page.goto(base+'/',{waitUntil:'networkidle'}); if(logs!==0)throw Error('Eager log fetch'); + if(await page.locator('#tabContent [onclick="window.__openHelp(\'service:console\')"]').count())throw Error('Duplicate Console card'); + const header=page.locator('header #consoleRelease'); + await header.getByRole('button',{name:'Update 3.1.9',exact:true}).click(); + await page.locator('.platformDialog').waitFor(); + await page.keyboard.press('Escape'); + await page.locator('.platformDialog').waitFor({state:'detached'}); + if(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth))throw Error('Horizontal overflow '+width); + const logButton=page.locator('button[onclick^="window.__stageInstallLog"]'); + if(await logButton.locator('..').getAttribute('class')!=='actionRow serviceActionRow')throw Error('Log outside shared action row'); await page.locator('[onclick="window.__openHelp(\'service:console\')"]').click(); await page.locator('.helpModal').waitFor(); - if(!(await page.locator('.helpModal').innerText()).includes('local device control'))throw Error('Generic help'); + if(!(await page.locator('.helpModal').innerText()).includes('web interface you are using now'))throw Error('Generic help'); await page.evaluate(()=>window.__closeHelp()); await page.locator('button[onclick^="window.__stageInstallLog"]').click(); const modal=page.locator('.platformDialog');await modal.waitFor(); diff --git a/stage_ui/console_core/frontend/console.js b/stage_ui/console_core/frontend/console.js index 8d03a86..c2e35b5 100644 --- a/stage_ui/console_core/frontend/console.js +++ b/stage_ui/console_core/frontend/console.js @@ -36,6 +36,7 @@ edgeId: document.getElementById("edgeId"), hostName: document.getElementById("hostName"), osLabel: document.getElementById("osLabel"), + consoleRelease: document.getElementById("consoleRelease"), updatedAt: document.getElementById("updatedAt"), content: document.getElementById("tabContent"), toastStack: document.getElementById("toastStack") @@ -48,7 +49,7 @@ { mode: "test_by", label: "test.it-screen.by", host: "rest.test.it-screen.by" }, { mode: "custom", label: "Custom", host: "" } ]; - const UI_VERSION = "V 3.1.8"; + const UI_VERSION = "V 3.1.9"; const ITSCREEN_LOG_INITIAL_LINES = 50; const ITSCREEN_LOG_BUFFER_LIMIT = 300; const ITSCREEN_LOG_BATCH_MS = 250; @@ -661,8 +662,8 @@ }, "body": [ { - "en": "The local device control panel: network, registration, diagnostics and module updates. Updating Console does not update the player or install camera streaming.", - "ru": "Локальная панель управления устройством: сеть, регистрация, диагностика и обновление модулей. Обновление Console не обновляет клиент и не устанавливает видеосервис камер." + "en": "Edge Console is the web interface you are using now to manage this device. The version button shows the installed Console release; Update installs the new version of this interface and its management API. During the update, the page may briefly disconnect. Reload it when installation finishes.", + "ru": "Edge Console — веб-интерфейс, в котором вы сейчас управляете этим устройством. Кнопка версии показывает установленный выпуск Console, а «Обновить» устанавливает новую версию этого интерфейса и его API управления. Во время обновления страница может ненадолго потерять соединение. После завершения установки обновите страницу." } ] }, @@ -964,7 +965,7 @@ if (nodes.brandEyebrow) nodes.brandEyebrow.textContent = "IOMATEX G-Box"; if (nodes.heroTitle) nodes.heroTitle.textContent = t("Edge Automation Gateway"); if (nodes.capabilityBadge) nodes.capabilityBadge.textContent = t("Digital DNA ready"); - if (nodes.osLabel) nodes.osLabel.textContent = `${t("Unified diagnostics, network operations and gateway commissioning.")} · ${UI_VERSION}`; + if (nodes.osLabel) nodes.osLabel.textContent = t("Unified diagnostics, network operations and gateway commissioning."); if (nodes.edgeSerialLabel) nodes.edgeSerialLabel.textContent = t("Edge Serial Number"); if (nodes.hostIpLabel) nodes.hostIpLabel.textContent = t("Host / IP"); if (nodes.updatedLabel) nodes.updatedLabel.textContent = t("Updated"); @@ -1032,6 +1033,7 @@ const tabsNode = document.querySelector(".tabs"); const identityPanel = document.querySelector(".identityPanel"); if (tabsNode) tabsNode.hidden = hide; + if (nodes.consoleRelease && hide) nodes.consoleRelease.hidden = true; if (identityPanel) identityPanel.hidden = hide; if (nodes.refreshBtn) nodes.refreshBtn.disabled = hide || state.rebootPending; if (nodes.rebootBtn) nodes.rebootBtn.disabled = hide || state.rebootPending; @@ -2419,7 +2421,7 @@ return t(labels[release.status] || "Unknown"); } - function renderStageVersion(card) { + function renderStageVersion(card, compact = false) { const release = card.release; if (!release) return ""; const updates = (state.healthServices && state.healthServices.updates) || {}; @@ -2432,23 +2434,30 @@ : updates.error ? t(updates.error) : needsCheck ? t("Check available versions before installing.") : ""; return `
Unified diagnostics, network operations and gateway commissioning.
+