#Getting roomba creds
1 messages · Page 1 of 1 (latest)
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.
ok
Getting roomba creds
k
locate the directory that git cloned that to
should be there
anyways, cd to that location
i think im there
ok now run py -m pip install -r requirements.txt
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
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
ok, now run py -m pip install -r requirements.txt
lemme know when it's done
looks done
ok, do cd roomba
there
hmm wait a min
kk
well, just try py password.py
(do i need to install a mqtt broker before all of this?)
no
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
do you know what the IP address of your roomba is?
no not off hand. i think i saw it when I was trying to install initially
well you'll probably need that at some point
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
yes, because you didn't do the correct command
this
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.
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.
that makes no sense
no we on the same page
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.
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
something happened
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
i think it might have worked
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:
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
through explorer?
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?
pretty much
no
did you look in C:\Users\Jon\Roomba980-Python\roomba?
yes
and?
there is a file called config_example
none of the files look to have been changed since 1108
est
ok, then run the password.py again
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
tried that too
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
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.
ok, try this instead
C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe password.py <login> <password>
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
using C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe password.py <login> <password> where <login> and <password> are your cloud login/password
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'
ok, C:\Users\Jon\AppData\Local\Programs\Python\Python312\python.exe -m pip install requests
then try the command again
huh?
so do i use this password now withing HA
you use that information w/ HA
BLID Is your username, and the password is the password
I'm going to delete your message
hahahaha
house can use all the cleaning it can get
thanks so much for your help and your patience
np
is HACS not a thing anymore?
cant seem to find it in the addons store