#Getting roomba creds

1 messages · Page 1 of 1 (latest)

jolly flint
#

Well I don't know if you did or not

#

type here

merry otter
#

ok so we stop spamming people haha

#

im also happy to jump on a call if that would be easier. can screen share. i really appreciate all your help thus far and i know its a pain dealing with complete newbs on the subject.

jolly flint
#

ok

light ember
#

Getting roomba creds

jolly flint
#

so, you installed it

#

now open command prompt

merry otter
#

k

jolly flint
#

locate the directory that git cloned that to

#

should be there

#

anyways, cd to that location

merry otter
#

i think im there

jolly flint
#

ok now run py -m pip install -r requirements.txt

merry otter
#

error

#

could not open file no such file or directory

jolly flint
#

ok, type dir

#

paste output

merry otter
#

Directory of C:\Users\Jon\Roomba980-Python\roomba

10/12/2023 11:08 AM <DIR> .
10/12/2023 11:08 AM <DIR> ..
10/12/2023 11:08 AM 2,869 config_example.ini
10/12/2023 11:08 AM 7,344 getcloudpassword.py
10/12/2023 11:08 AM 336 getpassword.py
10/12/2023 11:08 AM 13,212 password.py
10/12/2023 11:08 AM 6,505 replay_log.py
10/12/2023 11:08 AM <DIR> res
10/12/2023 11:08 AM 104,093 roomba.py
10/12/2023 11:08 AM 16,717 roomba_direct.py
10/12/2023 11:08 AM 735,153 test_floorplan.png
10/12/2023 11:08 AM <DIR> views
10/12/2023 11:08 AM 14,386 web_server.py
10/12/2023 11:08 AM 100 init.py
10/12/2023 11:08 AM 74 main.py
11 File(s) 900,789 bytes
4 Dir(s) 70,454,681,600 bytes free

jolly flint
#

ok, do cd ..

#

then do dir

#

then paste output

merry otter
#

Directory of C:\Users\Jon\Roomba980-Python

10/12/2023 11:08 AM <DIR> .
10/12/2023 11:08 AM <DIR> ..
10/12/2023 11:08 AM 136 .gitignore
10/12/2023 11:08 AM <DIR> examples
10/12/2023 11:08 AM 1,090 LICENSE
10/12/2023 11:08 AM 56 MANIFEST.in
10/12/2023 11:08 AM <DIR> openhab
10/12/2023 11:08 AM 104,042 README.md
10/12/2023 11:08 AM 70 requirements.txt
10/12/2023 11:08 AM <DIR> roomba
10/12/2023 11:08 AM 812 setup.py
6 File(s) 106,206 bytes
5 Dir(s) 70,453,522,432 bytes free

jolly flint
#

ok, now run py -m pip install -r requirements.txt

merry otter
#

okay

#

something is happening

#

success

jolly flint
#

lemme know when it's done

merry otter
#

looks done

jolly flint
#

ok, do cd roomba

merry otter
#

there

jolly flint
#

hmm wait a min

merry otter
#

kk

jolly flint
#

well, just try py password.py

merry otter
#

(do i need to install a mqtt broker before all of this?)

jolly flint
#

no

merry otter
#

k jsut making sure saw the word

#

C:\Users\Jon\Roomba980-Python\roomba>py password.py
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

#

oops

#

hold on

#

nvm i thought i did it in the wrong window

#

i didnt

jolly flint
#

do you know what the IP address of your roomba is?

merry otter
#

no not off hand. i think i saw it when I was trying to install initially

jolly flint
#

well you'll probably need that at some point

merry otter
#

nvm here it is

#

it listed in ht HA integrations dashboard

jolly flint
#

do cd ..

#

then do py ./password.py

merry otter
#

C:\Users\Jon\Roomba980-Python\roomba>cd..

C:\Users\Jon\Roomba980-Python>py password.py
C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe: can't open file 'C:\Users\Jon\Roomba980-Python\password.py': [Errno 2] No such file or directory

jolly flint
#

yes, because you didn't do the correct command

jolly flint
merry otter
#

C:\Users\Jon\Roomba980-Python>py ./password.py
C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe: can't open file 'C:\Users\Jon\Roomba980-Python\password.py': [Errno 2] No such file or directory

#

sorry this is being a pain. not sure what ive done wrong.

jolly flint
#

ok, cd roomba

#

then py .\password.py

merry otter
#

C:\Users\Jon\Roomba980-Python>cd roomba

C:\Users\Jon\Roomba980-Python\roomba>py .\password.py
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

jolly flint
#

that makes no sense

merry otter
#

no we on the same page

jolly flint
#

just do py

#

py

merry otter
#

k

#

C:\Users\Jon\Roomba980-Python\roomba>py
Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct 2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

jolly flint
#

exit()

#

I have no idea why py password.py is not working for you when py does

#

try this... C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe password.py

merry otter
#

something happened

jolly flint
#

you may need to do C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe password.py -R <roomba IP>

#

but replace <roomba IP> with the ip of the roomba

merry otter
#

i think it might have worked

jolly flint
#

I would assume there's an output somewhere

#

so find that file

merry otter
#

C:\Users\Jon\Roomba980-Python\roomba>C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe password.py
C:\Users\Jon\Roomba980-Python\roomba\password.py:24: SyntaxWarning: invalid escape sequence '\c'
'''
C:\Users\Jon\Roomba980-Python\roomba\password.py:39: SyntaxWarning: invalid escape sequence '\c'
def init(self, address='255.255.255.255', file=".\config.ini", login=[]):
2023-10-12 11:43:46 INFO [Roomba.Password] Using Password version 2.1
2023-10-12 11:43:46 INFO [Roomba.Password] reading/writing info from config file ./config.ini
2023-10-12 11:43:46 INFO [Roomba.Password] waiting on port: 5678 for data
2023-10-12 11:43:47 INFO [Roomba.Password] Robot at IP: 192.168.86.117 Data: {
"ver": "4",
"hostname": "iRobot-35235F583B994BB391F6036C0BA7867D",
"robotname": "Rhonda",
"robotid": "35235F583B994BB391F6036C0BA7867D",
"ip": "192.168.86.117",
"mac": "4C:B9:EA:01:C9:59",
"sw": "sapphire+23.24.8+2023-08-19-0854d1f8254+Firmware-Production+162",
"sku": "j75x020",
"nc": 0,
"proto": "mqtt",
"cap": {
"binFullDetect": 2,
"addOnHw": 1,
"oMode": 10,
"odoa": 7,
"dockComm": 1,
"maps": 3,
"pmaps": 10,
"mc": 2,
"tLine": 2,
"area": 1,
"eco": 1,
"multiPass": 2,
"edge": 0,
"pp": 0,
"team": 1,
"pose": 2,
"lang": 2,
"hm": 0,
"5ghz": 1,
"prov": 3,
"sched": 2,
"svcConf": 1,
"ota": 2,
"log": 2,
"langOta": 0,
"ns": 1,
"bleLog": 1,
"expectingUserConf": 2
},
"freq": 5745,
"cloudConnState": 14
}

#

2023-10-12 11:43:57 INFO [Roomba.Password] 0 robot(s) already defined in file./config.ini, found 1 robot(s) on network
2023-10-12 11:43:57 INFO [Roomba.Password] To add/update Your robot details,make sure your robot (Rhonda) at IP 192.168.86.117 is on the Home Base and powered on (green lights on). Then press and hold the HOME button on your robot until it plays a series of tones (about 2 seconds). Release the button and your robot will flash WIFI light.
Press <Enter> to continue...
s<Enter> to skip configuring this robot:

jolly flint
#

2023-10-12 11:43:46 INFO [Roomba.Password] reading/writing info from config file ./config.ini

#

it wrote the info to the config file

#

or it read it

#

either way, locate that INI file

merry otter
#

through explorer?

jolly flint
#

it's probably in that folder

#

dir will tell you if it is

#

but you can open it like any text file

#

i.e. notepad config.ini

#

if you want to open it via command line

#

or you can slow go it by browsing for the file using windows explorer

#

whatever you choose

#

So... it exploded?

merry otter
#

pretty much

jolly flint
#

how

#

did you locate the file?

merry otter
#

no

jolly flint
#

did you look in C:\Users\Jon\Roomba980-Python\roomba?

merry otter
#

yes

jolly flint
#

and?

merry otter
#

there is a file called config_example

#

none of the files look to have been changed since 1108

#

est

jolly flint
#
2023-10-12 11:43:57 INFO [Roomba.Password] To add/update Your robot details,make sure your robot (Rhonda) at IP 192.168.86.117 is on the Home Base and powered on (green lights on). Then press and hold the HOME button on your robot until it plays a series of tones (about 2 seconds). Release the button and your robot will flash WIFI light.
Press <Enter> to continue...
#

that tells you what to do

merry otter
#

tried that too

jolly flint
#

ok, then after you do that run the password.py file again using the command we used before

#

make sure you specify the IP

#

i.e. C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe password.py -R 192.168.86.117

merry otter
#

2023-10-12 11:56:11 ERROR [Roomba.Password] Error getting password for robot Rhonda at ip192.168.86.117, received 7 bytes. Follow the instructions and try again.

jolly flint
#

ok, try this instead

#

C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe password.py <login> <password>

merry otter
#

hold on this last one is working

#

i think

jolly flint
#

ok

#

if it doesn't you can get it from the cloud

merry otter
#

2023-10-12 11:57:08 DEBUG [Roomba.Password] Connection Successful
2023-10-12 11:57:08 DEBUG [Roomba.Password] Waiting for data
2023-10-12 11:57:19 ERROR [Roomba.Password] Connection Timeout Error (for 192.168.86.117): The read operation timed out
2023-10-12 11:57:19 ERROR [Roomba.Password] Unable to get password from roomba
2023-10-12 11:57:19 ERROR [Roomba.Password] Error getting password for robot Rhonda at ip192.168.86.117, received 7 bytes. Follow the instructions and try again.

#

ya none of this is working

jolly flint
#

using C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe password.py <login> <password> where <login> and <password> are your cloud login/password

merry otter
#

2023-10-12 11:59:12 INFO [Roomba.Password] Getting Roomba information from iRobot aws cloud...
Traceback (most recent call last):
File "C:\Users\Jon\Roomba980-Python\roomba\password.py", line 294, in <module>
main()
File "C:\Users\Jon\Roomba980-Python\roomba\password.py", line 291, in main
get_passwd.get_password()
File "C:\Users\Jon\Roomba980-Python\roomba\password.py", line 117, in get_password
from getcloudpassword import irobotAuth
File "C:\Users\Jon\Roomba980-Python\roomba\getcloudpassword.py", line 20, in <module>
import requests
ModuleNotFoundError: No module named 'requests'

jolly flint
#

ok, C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe -m pip install requests

#

then try the command again

merry otter
#

installed and trying again

#

assume i should hit enter lol

jolly flint
#

yay

#

you got it

#

now delete that message

merry otter
#

huh?

jolly flint
#

look at the last log line

#

it has your blid and password

#

you're done

merry otter
#

so do i use this password now withing HA

jolly flint
#

you use that information w/ HA

#

BLID Is your username, and the password is the password

#

I'm going to delete your message

merry otter
#

WORD

#

roomba shows up under configured now!

jolly flint
#

but if your vacuum starts runnign randomly, it wasn't me

merry otter
#

hahahaha

#

house can use all the cleaning it can get

#

thanks so much for your help and your patience

jolly flint
#

np

merry otter
#

is HACS not a thing anymore?

jolly flint
#

it's still a think

#

thing*

merry otter
#

cant seem to find it in the addons store

jolly flint
#

it's not an addon

#

it's a custom integration

#

you have to manually install it