Skip to content

Commit

Permalink
v1.5.1 (#149)
Browse files Browse the repository at this point in the history
## [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
donavanbecker authored Jan 23, 2025
1 parent fce6e13 commit 939703d
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
/dist
/homebridge-roomba2-*.tgz
*.DS_Store
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [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](https://github.com/homebridge-plugins/homebridge-roomba2/issues/148)
- Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/homebridge-plugins/homebridge-roomba2/compare/v1.5.0...v1.5.1

## 1.5.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@homebridge-plugins/homebridge-roomba2",
"description": "homebridge-plugin for Roomba devices",
"version": "1.5.0",
"version": "1.5.1",
"engines": {
"homebridge": ">=0.2.0",
"node": ">=10"
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { API } from "homebridge";

import { ACCESSORY_NAME, PLUGIN_NAME } from "./settings";
import RoombaAccessory from "./accessory";
import { ACCESSORY_NAME, PLUGIN_NAME } from "./settings.js";
import RoombaAccessory from "./accessory.js";

/**
* This method registers the platform with Homebridge
Expand Down
20 changes: 11 additions & 9 deletions src/lastcommand.ts
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);
}

0 comments on commit 939703d

Please sign in to comment.