-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [1.5.1](https://github.com/homebridge-plugins/homebridge-roomba2/releases/tag/v1.5.1) (2025-01-23) ### What's Changes - Fixed Cannot find module Issue [#148](#148) - Housekeeping and updated dependencies. **Full Changelog**: v1.5.0...v1.5.1
- Loading branch information
1 parent
fce6e13
commit 939703d
Showing
6 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
/dist | ||
/homebridge-roomba2-*.tgz | ||
*.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
var dorita980 = require('dorita980'); | ||
const dorita980 = require("dorita980"); | ||
|
||
if (!process.argv[4]) { | ||
console.log('Usage: npm run getlastcommand <robot_blid> <robot_pwd> <robot_ip_address>'); | ||
process.exit(); | ||
console.log("Usage: npm run getlastcommand <robot_blid> <robot_pwd> <robot_ip_address>"); | ||
process.exit(); | ||
} | ||
|
||
const robot_blid = process.argv[2]; | ||
const robot_pwd = process.argv[3]; | ||
const robot_ip_address = process.argv[4]; | ||
|
||
var myRobotViaLocal = new dorita980.Local(robot_blid, robot_pwd, robot_ip_address); | ||
const myRobotViaLocal = new dorita980.Local(robot_blid, robot_pwd, robot_ip_address); | ||
|
||
myRobotViaLocal.on('connect', init); | ||
myRobotViaLocal.on("connect", init); | ||
|
||
function init () { | ||
function init() { | ||
|
||
myRobotViaLocal.getRobotState(['lastCommand']) | ||
.then((result: any) => {console.log("lastCommand:", result.lastCommand, ", regionsDetails:", result.lastCommand.regions); myRobotViaLocal.end()}) | ||
.catch(console.log); | ||
myRobotViaLocal.getRobotState(["lastCommand"]) | ||
.then((result: { lastCommand: { regions: { regionId: number; regionType: string }[] } }) => { | ||
console.log("lastCommand:", result.lastCommand, ", regionsDetails:", result.lastCommand.regions); myRobotViaLocal.end(); | ||
}) | ||
.catch(console.log); | ||
} |