Code Monkey home page Code Monkey logo

rest980-domoticz's Introduction

rest980-domoticz

Domoticz plugin to control your iRobot Roomba with koalazak/rest980 (https://github.com/koalazak/rest980)

Instructiuons:

1. Install rest980

apt-get install npm nodejs
git clone https://github.com/koalazak/rest980.git
cd rest980
npm install
nano config/default.json

Type in the right values for your Roomba, should look something like this:

  ...
  "blid": "1234567890123456",
  "password": ":1:1234567890:abcDEFghiJKMnopR",
  "robotIP": "192.168.100.90",
  "firmwareVersion": 2,
  ...

and save the config file

see dorita980 for more information and instructions for obtaining blid and password.

Start rest980 forever with with PM2

npm i -g pm2
pm2 startup
pm2 start npm --name "rest980-roomba" -- start
pm2 save

check if everything works fine

wget http://127.0.0.1:3000/api/local/action/start > /dev/null

if your roomba started cleanig, you can install the plugin now.

2. Install this plugin

cd domoticz/plugins
git clone https://github.com/damsma/rest980-domoticz.git
systemctl restart domoticz

3. Configure the plugin

You can now add "iRobot Roomba (rest980-domoticz)" on the hardware page in domoticz. The device will be created automatically.

If you installed rest980 on the same machnie as domoticz, you can leave the default plugin settings, otherwise, type in the IP adress of the machnie you installed rest980 on.

rest980-domoticz's People

Contributors

damsma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dpwood

rest980-domoticz's Issues

rest980 plugin rewritten

Hello,

I found your repository, and I thought that it would be nice to have iRobot working from domoticz.
I've installed your plugin and played with it for a while but it wasn't enough for me.

Thus I've created my own plugin which you can find here: https://github.com/ajarzyn/domoticz-rest980
I'm linking it here not to brag, but I hope you will find using my plugin fun.

Changes:

  • Use of Domoticz.Connection object to handle HTTP request, no need for externally installed requests module
  • Name of the devices are downloaded from iRobot itself
  • More options
  • Device for bin (you can set notification if it's full)

Best of luck.
Jarzyn

Connection refused

Hello,

I hope you can help me. I followed all the steps but when i try to start a cleaning action i get the following message:

wget http://127.0.0.1:3000/api/local/action/start > /dev/null --2020-04-15 21:55:34-- http://127.0.0.1:3000/api/local/action/start Connecting to 127.0.0.1:3000... failed: Connection refused

When i installed npm i -g pm2 the system gave the following error:
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)

Can this be the reason that the connection is refused?

dock roomba i7

Hi,

With my roomba i7, the off command, when off action is set on "Go to dock", just stop the roomba without returning it to the base.
I've made a fix in the script to fix that:
In the onCommand method, when Mode1 == 1, between the stop and dock command i do a:
time.sleep(3) # Sleep for 3 seconds
Don't forgot to add import time at the start of script.

This works fine after this fix.

Feel free to add this fix in your code if you want.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.