From 06f2b2259f6bb1218e9ab345d6058913a72899d0 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 14 Nov 2025 22:50:10 +0100 Subject: follow server cleanups --- ImageViewer.qml | 8 ++++---- Main.qml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ImageViewer.qml b/ImageViewer.qml index 186faeb..ef9857d 100644 --- a/ImageViewer.qml +++ b/ImageViewer.qml @@ -55,17 +55,17 @@ Page { asynchronous: true retainWhileLoading: true - source: apiRoot + "/sensor/image" + source: newApiRoot + "/sensor/image" width: flickable.contentWidth height: flickable.contentHeight function updateImage() { // console.log("updateImage. visible: ", visible) - if (image.source == apiRoot + "/sensor/image") - image.source = apiRoot + "/sensor/image2" + if (image.source == newApiRoot + "/sensor/image") + image.source = newApiRoot + "/sensor/image2" else - image.source = apiRoot + "/sensor/image" + image.source = newApiRoot + "/sensor/image" // console.log("\nflickImg.width: ", flickImg.width, // "\nflickImg.height: ", flickImg.height, diff --git a/Main.qml b/Main.qml index 01f2b96..7ffa773 100644 --- a/Main.qml +++ b/Main.qml @@ -27,6 +27,7 @@ ApplicationWindow { // readonly property string apiRoot: "http://rpi5:8081/v1" // readonly property string apiRoot: "http://rpizero:8081/v1" readonly property string apiRoot: "http://radxa:8081/v1" + readonly property string newApiRoot: "http://radxa:8080/v1" Shortcut { sequence: "ctrl+q" -- cgit v1.2.3-70-g09d2