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.
Files changed (3) hide show
  1. package/io-package.json +2 -2
  2. package/main.js +34 -34
  3. package/package.json +1 -1
package/io-package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "parcel",
4
- "version": "0.0.19",
4
+ "version": "0.0.20",
5
5
  "news": {
6
- "0.0.19": {
6
+ "0.0.20": {
7
7
  "en": "Fix GLS Parcel"
8
8
  },
9
9
  "0.0.18": {
package/main.js CHANGED
@@ -80,45 +80,45 @@ class Parcel extends utils.Adapter {
80
80
  }),
81
81
  });
82
82
 
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
- // }
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
- // 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
- // }
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.parcel",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Parcel tracking",
5
5
  "author": {
6
6
  "name": "TA2k",