Skip to content

Commit

Permalink
more error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck authored May 27, 2024
1 parent 9443395 commit e901edc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ class judoisoftControll extends utils.Adapter {
async setCommandStateCloud(command, state) {
switch (command) {
case 'Regeneration':
this.log.debug("set Regeneration Cloud" + state);
this.log.debug("set Regeneration Cloud " + state);
await axios.get(baseUrl + "?token=" + _tokenData + "&group=register&command=write%20data&serial_number=" + _serialnumber + "&dt=" + _dt + "&index=65&data=&da=" + _da + "&role=customer" , { httpsAgent: agent });
break;
case 'WaterStop':
Expand Down Expand Up @@ -470,7 +470,7 @@ class judoisoftControll extends utils.Adapter {

break;
case 'ResidualHardness':
this.log.debug("set ResidualHardness Cloud" + state);
this.log.debug("set ResidualHardness Cloud " + state);
const val = await axios.get(baseUrl + "?token=" + _tokenData + "&group=register&command=write%20data&serial_number=" + _serialnumber + "&dt=" + _dt + "&index=60&data=" + state + "&da=" + _da + "&role=customer" , { httpsAgent: agent });
break;
default:
Expand All @@ -482,11 +482,11 @@ class judoisoftControll extends utils.Adapter {
async setCommandStateLocal(command, state) {
switch (command) {
case 'Regeneration':
this.log.debug("set Regeneration Local" + state);
this.log.debug("set Regeneration Local " + state);
try {
await axios.get(baseUrl + "settings&command=regeneration&msgnumber=1&token=" + _tokenData + "&parameter=start", { httpsAgent: agent });
} catch (err) {
this.log.error("set ResidualHardness Local ERROR");
this.log.error("set ResidualHardness Local ERROR" + JSON.stringify(err));
}
break;
case 'WaterStop':
Expand Down

0 comments on commit e901edc

Please sign in to comment.