Skip to content

Commit

Permalink
report current cleaning time in mqtt status in minutes
Browse files Browse the repository at this point in the history
fixes #123
  • Loading branch information
rand256 committed Feb 16, 2020
1 parent 9982559 commit a9a1984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MqttClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ MqttClient.prototype.updateAttributesTopic = function () {
promises.push(new Promise((resolve,reject) => {
this.vacuum.getCurrentStatus((err, res2) => {
if (!err) {
response.currentCleanTime = (res2.clean_time / 60 / 60).toFixed(1);
response.currentCleanTime = (res2.clean_time / 60).toFixed(1);
response.currentCleanArea = (res2.clean_area / 1000000).toFixed(1);
resolve();
} else {
Expand Down

0 comments on commit a9a1984

Please sign in to comment.