summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Kostovsky <nikita@kostovsky.me>2025-11-14 22:50:10 +0100
committerNikita Kostovsky <nikita@kostovsky.me>2025-11-14 22:50:10 +0100
commit06f2b2259f6bb1218e9ab345d6058913a72899d0 (patch)
treea2809c57679b9d2a16587d51348d673cfb9cdaa2
parenta24bb7cb1e2e25805243ce6d63dbc42cbce836ae (diff)
follow server cleanups
-rw-r--r--ImageViewer.qml8
-rw-r--r--Main.qml1
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"