summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"