iobroker.parcel 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/io-package.json +2 -2
- package/main.js +34 -34
- package/package.json +1 -1
package/io-package.json
CHANGED
package/main.js
CHANGED
|
@@ -80,45 +80,45 @@ class Parcel extends utils.Adapter {
|
|
|
80
80
|
}),
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
83
|
+
if (this.config.dhlusername && this.config.dhlpassword) {
|
|
84
|
+
this.log.info("Login to DHL");
|
|
85
|
+
await this.loginDHL();
|
|
86
|
+
}
|
|
87
|
+
if (this.config.dpdusername && this.config.dpdpassword) {
|
|
88
|
+
this.log.info("Login to DPD");
|
|
89
|
+
await this.loginDPD();
|
|
90
|
+
}
|
|
91
|
+
if (this.config.t17username && this.config.t17password) {
|
|
92
|
+
this.log.info("Login to T17 User");
|
|
93
|
+
await this.login17T();
|
|
94
|
+
}
|
|
95
|
+
if (this.config.aliUsername && this.config.aliPassword) {
|
|
96
|
+
this.log.info("Login to AliExpres");
|
|
97
|
+
await this.loginAli();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (this.config["17trackKey"]) {
|
|
101
|
+
this.sessions["17track"] = this.config["17trackKey"];
|
|
102
|
+
this.login17TApi();
|
|
103
|
+
this.setState("info.connection", true, true);
|
|
104
|
+
}
|
|
105
|
+
if (this.config.amzusername && this.config.amzpassword) {
|
|
106
|
+
this.log.info("Login to Amazon");
|
|
107
|
+
await this.loginAmz();
|
|
108
|
+
}
|
|
109
109
|
|
|
110
110
|
if (this.config.glsusername && this.config.glspassword) {
|
|
111
111
|
this.log.info("Login to GLS");
|
|
112
112
|
await this.loginGLS();
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
114
|
+
if (this.config.upsusername && this.config.upspassword) {
|
|
115
|
+
this.log.info("Login to UPS");
|
|
116
|
+
await this.loginUPS();
|
|
117
|
+
}
|
|
118
|
+
if (this.config.hermesusername && this.config.hermespassword) {
|
|
119
|
+
this.log.info("Login to Hermes");
|
|
120
|
+
await this.loginHermes();
|
|
121
|
+
}
|
|
122
122
|
|
|
123
123
|
this.updateInterval = null;
|
|
124
124
|
this.reLoginTimeout = null;
|