Skip to content

Commit 69c9ee3

Browse files
committed
release 1.0.5
1 parent f6895b6 commit 69c9ee3

5 files changed

Lines changed: 160 additions & 160 deletions

EditTextLabel4421.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import QtQuick 1.1
1+
import QtQuick 2.1
22
import BasicUIControls 1.0
33

44
Item {

HomeassistantApp.qml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import QtQuick 1.1
1+
import QtQuick 2.1
22
import qb.components 1.0
33
import qb.base 1.0
44

@@ -10,7 +10,7 @@ App {
1010
property int debug : 0
1111

1212
property url tileUrl : "HomeassistantTile.qml";
13-
property url thumbnailIcon: "./drawables/homeAssistant.png";
13+
property url thumbnailIcon: "qrc:/tsc/homeAssistant.png";
1414

1515
property HomeassistantConfigurationScreen homeAssistantConfigurationScreen
1616
property url homeAssistantConfigurationScreenUrl : "HomeassistantConfigurationScreen.qml"
@@ -34,7 +34,7 @@ App {
3434

3535
FileIO {
3636
id: tokenFile
37-
source: "./token.txt"
37+
source: "file:///mnt/data/tsc/homeassistant.token.txt"
3838
}
3939

4040
property variant homeAssistantSettingsJson : {
@@ -46,7 +46,7 @@ App {
4646

4747
FileIO {
4848
id: userSettingsFile
49-
source: "./userSettings.json"
49+
source: "file:///mnt/data/tsc/homeassistant.userSettings.json"
5050
}
5151

5252
property string homeAssistantSensor1 : ""
@@ -71,7 +71,7 @@ App {
7171

7272
FileIO {
7373
id: sensorFile
74-
source: "./sensors.json"
74+
source: "file:///mnt/data/tsc/homeassistant.sensors.json"
7575
}
7676

7777
property variant homeAssistantSensor1Info : []
@@ -108,7 +108,7 @@ App {
108108

109109
FileIO {
110110
id: scenesFile
111-
source: "./scenes.json"
111+
source: "file:///mnt/data/tsc/homeassistant.scenes.json"
112112
}
113113

114114
property variant homeAssistantScene1Info : []
@@ -129,16 +129,16 @@ App {
129129
property real homeAssistantSlider1Min : 0.0
130130
property real homeAssistantSlider1Step : 0.0
131131
property int homeAssistantSlider1Options : 0
132-
property string imgNotSelected : "./drawables/notselected.png"
133-
property string imgSelected : "./drawables/selected.png"
132+
property string imgNotSelected : "qrc:/tsc/notselected.png"
133+
property string imgSelected : "qrc:/tsc/selected.png"
134134

135135
property variant homeAssistantSlidersJson : {
136136
'Slider1': "",
137137
}
138138

139139
FileIO {
140140
id: slidersFile
141-
source: "./sliders.json"
141+
source: "file:///mnt/data/tsc/homeassistant.sliders.json"
142142
}
143143

144144
property variant homeAssistantSlider1Info : []
@@ -163,7 +163,7 @@ App {
163163

164164
FileIO {
165165
id: switchFile
166-
source: "./switches.json"
166+
source: "file:///mnt/data/tsc/homeassistant.switches.json"
167167
}
168168

169169
property variant homeAssistantSwitch1Info : []
@@ -193,7 +193,7 @@ App {
193193

194194
FileIO {
195195
id: alarmFile
196-
source: "./alarm.json"
196+
source: "file:///mnt/data/tsc/homeassistant.alarm.json"
197197
}
198198

199199
property string timeStr
@@ -270,7 +270,7 @@ App {
270270
}
271271
catch (err) {
272272
var doc1 = new XMLHttpRequest();
273-
doc1.open("PUT", "file:///HCBv2/qml/apps/homeassistant/token.txt");
273+
doc1.open("PUT", "file:///mnt/data/tsc/homeassistant.token.txt");
274274
doc1.send('');
275275
logText("Please verify token.txt. " + err);
276276
}
@@ -296,7 +296,7 @@ App {
296296
"Legacy" : homeAssistantLegacy,
297297
}
298298
var doc2 = new XMLHttpRequest();
299-
doc2.open("PUT", "file:///HCBv2/qml/apps/homeassistant/userSettings.json");
299+
doc2.open("PUT", "file:///mnt/data/tsc/homeassistant.userSettings.json");
300300
doc2.send(JSON.stringify(homeAssistantSettingsJson));
301301

302302
if (homeAssistantSSL == "yes") {
@@ -329,7 +329,7 @@ App {
329329
"Sensor8" : homeAssistantSensor8,
330330
}
331331
var doc3 = new XMLHttpRequest();
332-
doc3.open("PUT", "file:///HCBv2/qml/apps/homeassistant/sensors.json");
332+
doc3.open("PUT", "file:///mnt/data/tsc/homeassistant.sensors.json");
333333
doc3.send(JSON.stringify(homeAssistantSensorsJson));
334334

335335
getSensorInfo();
@@ -397,7 +397,7 @@ App {
397397
"Scene4" : homeAssistantScene4,
398398
}
399399
var doc4 = new XMLHttpRequest();
400-
doc4.open("PUT", "file:///HCBv2/qml/apps/homeassistant/scenes.json");
400+
doc4.open("PUT", "file:///mnt/data/tsc/homeassistant.scenes.json");
401401
doc4.send(JSON.stringify(homeAssistantScenesJson));
402402

403403
getSceneInfo();
@@ -429,7 +429,7 @@ App {
429429
"Slider1" : homeAssistantSlider1,
430430
}
431431
var doc5 = new XMLHttpRequest();
432-
doc5.open("PUT", "file:///HCBv2/qml/apps/homeassistant/sliders.json");
432+
doc5.open("PUT", "file:///mnt/data/tsc/homeassistant.sliders.json");
433433
doc5.send(JSON.stringify(homeAssistantSlidersJson));
434434

435435
getSliderInfo();
@@ -515,7 +515,7 @@ App {
515515
"Switch5" : homeAssistantSwitch5,
516516
}
517517
var doc6 = new XMLHttpRequest();
518-
doc6.open("PUT", "file:///HCBv2/qml/apps/homeassistant/switches.json");
518+
doc6.open("PUT", "file:///mnt/data/tsc/homeassistant.switches.json");
519519
doc6.send(JSON.stringify(homeAssistantSwitchesJson));
520520

521521
getSwitchInfo();
@@ -579,7 +579,7 @@ App {
579579
"Code" : homeAssistantAlarm2,
580580
}
581581
var doc7 = new XMLHttpRequest();
582-
doc7.open("PUT", "file:///HCBv2/qml/apps/homeassistant/alarm.json");
582+
doc7.open("PUT", "file:///mnt/data/tsc/homeassistant.alarm.json");
583583
doc7.send(JSON.stringify(homeAssistantAlarmJson));
584584

585585
getAlarmInfo();
@@ -657,7 +657,7 @@ App {
657657
}
658658
catch (err) {
659659
var doc8 = new XMLHttpRequest();
660-
doc8.open("PUT", "file:///HCBv2/qml/apps/homeassistant/token.txt");
660+
doc8.open("PUT", "file:///mnt/data/tsc/homeassistant.token.txt");
661661
doc8.send('');
662662
logText("Please add access token to token.txt. " + err);
663663
}

HomeassistantConfigurationScreen.qml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import QtQuick 1.1
1+
import QtQuick 2.1
22
import qb.components 1.0
33

44
Screen {
@@ -260,7 +260,7 @@ Screen {
260260
x: 0; y: 0
261261
width: 54
262262
height: 36
263-
source: "./drawables/backgroundOff.png"
263+
source: "qrc:/tsc/backgroundOff.png"
264264
smooth: true
265265

266266
MouseArea {
@@ -282,7 +282,7 @@ Screen {
282282
x: 1; y: 0
283283
width: 32
284284
height: 36
285-
source: "./drawables/knob.png"
285+
source: "qrc:/tsc/knob.png"
286286

287287
MouseArea {
288288
anchors.fill: parent
@@ -302,13 +302,13 @@ Screen {
302302
State {
303303
name: "on"
304304
PropertyChanges { target: knob6; x: 22 }
305-
PropertyChanges { target: sslButton; source: "./drawables/backgroundOn.png" }
305+
PropertyChanges { target: sslButton; source: "qrc:/tsc/backgroundOn.png" }
306306
PropertyChanges { target: sslSwitch; on: true }
307307
},
308308
State {
309309
name: "off"
310310
PropertyChanges { target: knob6; x: 1 }
311-
PropertyChanges { target: sslButton; source: "./drawables/backgroundOff.png" }
311+
PropertyChanges { target: sslButton; source: "qrc:/tsc/backgroundOff.png" }
312312
PropertyChanges { target: sslSwitch; on: false }
313313
}
314314
]
@@ -373,7 +373,7 @@ Screen {
373373
x: 0; y: 0
374374
width: 54
375375
height: 36
376-
source: "./drawables/backgroundOff.png"
376+
source: "qrc:/tsc/backgroundOff.png"
377377
smooth: true
378378

379379
MouseArea {
@@ -395,7 +395,7 @@ Screen {
395395
x: 1; y: 0
396396
width: 32
397397
height: 36
398-
source: "./drawables/knob.png"
398+
source: "qrc:/tsc/knob.png"
399399

400400
MouseArea {
401401
anchors.fill: parent
@@ -415,13 +415,13 @@ Screen {
415415
State {
416416
name: "on"
417417
PropertyChanges { target: knob7; x: 22 }
418-
PropertyChanges { target: clockButton; source: "./drawables/backgroundOn.png" }
418+
PropertyChanges { target: clockButton; source: "qrc:/tsc/backgroundOn.png" }
419419
PropertyChanges { target: clockSwitch; on: true }
420420
},
421421
State {
422422
name: "off"
423423
PropertyChanges { target: knob7; x: 1 }
424-
PropertyChanges { target: clockButton; source: "./drawables/backgroundOff.png" }
424+
PropertyChanges { target: clockButton; source: "qrc:/tsc/backgroundOff.png" }
425425
PropertyChanges { target: clockSwitch; on: false }
426426
}
427427
]
@@ -485,7 +485,7 @@ Screen {
485485
x: 0; y: 0
486486
width: 54
487487
height: 36
488-
source: "./drawables/backgroundOff.png"
488+
source: "qrc:/tsc/backgroundOff.png"
489489
smooth: true
490490

491491
MouseArea {
@@ -507,7 +507,7 @@ Screen {
507507
x: 1; y: 0
508508
width: 32
509509
height: 36
510-
source: "./drawables/knob.png"
510+
source: "qrc:/tsc/knob.png"
511511

512512
MouseArea {
513513
anchors.fill: parent
@@ -527,13 +527,13 @@ Screen {
527527
State {
528528
name: "on"
529529
PropertyChanges { target: knob8; x: 22 }
530-
PropertyChanges { target: legacyButton; source: "./drawables/backgroundOn.png" }
530+
PropertyChanges { target: legacyButton; source: "qrc:/tsc/backgroundOn.png" }
531531
PropertyChanges { target: legacySwitch; on: true }
532532
},
533533
State {
534534
name: "off"
535535
PropertyChanges { target: knob8; x: 1 }
536-
PropertyChanges { target: legacyButton; source: "./drawables/backgroundOff.png" }
536+
PropertyChanges { target: legacyButton; source: "qrc:/tsc/backgroundOff.png" }
537537
PropertyChanges { target: legacySwitch; on: false }
538538
}
539539
]
@@ -716,7 +716,7 @@ Screen {
716716
right: parent.right
717717
rightMargin: 20
718718
}
719-
source: "./drawables/navArrow-left.png"
719+
source: "qrc:/tsc/navArrow-left.png"
720720
smooth: true
721721
}
722722

@@ -733,7 +733,7 @@ Screen {
733733
id: navPageImage1
734734
width: 100
735735
height: 28
736-
source: "./drawables/page1.png"
736+
source: "qrc:/tsc/page1.png"
737737
smooth: true
738738
anchors {
739739
horizontalCenter: parent.horizontalCenter
@@ -753,7 +753,7 @@ Screen {
753753
id: navRightButton1
754754
width: 18
755755
height: 28
756-
source: "./drawables/navArrow-right.png"
756+
source: "qrc:/tsc/navArrow-right.png"
757757
smooth: true
758758
anchors {
759759
left: parent.left
@@ -905,7 +905,7 @@ Screen {
905905
id: navLeftButton2
906906
width: 18
907907
height: 28
908-
source: "./drawables/navArrow-left.png"
908+
source: "qrc:/tsc/navArrow-left.png"
909909
smooth: true
910910
anchors {
911911
right: parent.right
@@ -926,7 +926,7 @@ Screen {
926926
id: navPageImage2
927927
width: 100
928928
height: 28
929-
source: "./drawables/page2.png"
929+
source: "qrc:/tsc/page2.png"
930930
smooth: true
931931
anchors {
932932
horizontalCenter: parent.horizontalCenter
@@ -946,7 +946,7 @@ Screen {
946946
id: navRightButton2
947947
width: 18
948948
height: 28
949-
source: "./drawables/navArrow-right.png"
949+
source: "qrc:/tsc/navArrow-right.png"
950950
smooth: true
951951
anchors {
952952
left: parent.left
@@ -1083,7 +1083,7 @@ Screen {
10831083
id: navLeftButton3
10841084
width: 18
10851085
height: 28
1086-
source: "./drawables/navArrow-left.png"
1086+
source: "qrc:/tsc/navArrow-left.png"
10871087
smooth: true
10881088
anchors {
10891089
right: parent.right
@@ -1104,7 +1104,7 @@ Screen {
11041104
id: navPageImage3
11051105
width: 100
11061106
height: 28
1107-
source: "./drawables/page3.png"
1107+
source: "qrc:/tsc/page3.png"
11081108
smooth: true
11091109
anchors {
11101110
horizontalCenter: parent.horizontalCenter
@@ -1124,7 +1124,7 @@ Screen {
11241124
id: navRightButton3
11251125
width: 18
11261126
height: 28
1127-
source: "./drawables/navArrow-right.png"
1127+
source: "qrc:/tsc/navArrow-right.png"
11281128
smooth: true
11291129
anchors {
11301130
left: parent.left
@@ -1211,7 +1211,7 @@ Screen {
12111211
id: navLeftButton4
12121212
width: 18
12131213
height: 28
1214-
source: "./drawables/navArrow-left.png"
1214+
source: "qrc:/tsc/navArrow-left.png"
12151215
smooth: true
12161216
anchors {
12171217
right: parent.right
@@ -1232,7 +1232,7 @@ Screen {
12321232
id: navPageImage4
12331233
width: 100
12341234
height: 28
1235-
source: "./drawables/page4.png"
1235+
source: "qrc:/tsc/page4.png"
12361236
smooth: true
12371237
anchors {
12381238
horizontalCenter: parent.horizontalCenter
@@ -1252,7 +1252,7 @@ Screen {
12521252
id: navRightButton4
12531253
width: 18
12541254
height: 28
1255-
source: "./drawables/navArrow-right.png"
1255+
source: "qrc:/tsc/navArrow-right.png"
12561256
smooth: true
12571257
anchors {
12581258
left: parent.left

0 commit comments

Comments
 (0)