From f6c2ecdd4c391bc629ade98397cb8f642c1cebdd Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Thu, 19 Nov 2026 16:34:37 +0100 Subject: [PATCH] Finally make the controller charts less shitty --- evcharger-app/qml/InformationsTabPage.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evcharger-app/qml/InformationsTabPage.qml b/evcharger-app/qml/InformationsTabPage.qml index b26921a..240ec4f 100644 --- a/evcharger-app/qml/InformationsTabPage.qml +++ b/evcharger-app/qml/InformationsTabPage.qml @@ -145,6 +145,8 @@ ScrollableTabPage { id: dataApiKeyValueHelper deviceConnection: theDeviceConnection apiKey: "data" + + property string replacedValue: value.replace('/data?', '/data_ng?') } ApiKeyValueHelper { @@ -168,7 +170,7 @@ ScrollableTabPage { property var xhr: undefined property bool requestAgain: false - property var parsed: page.parseDataApi(dataApiKeyValueHelper.value) + property var parsed: page.parseDataApi(dataApiKeyValueHelper.replacedValue) property var url: cloudTabs.currentIndex === 0 && parsed && page.width > 30 ? parsed.url + "&title=title&chartTitle=chartTitle&scale=1&width=" + Math.round(page.width - 30) + "&app_id=1&&lang=de"