-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.maps response #38
Comments
No one? |
I don't have a D5, so I'm just guessing here, but is it possible that the D5 uses the 'persistent maps', and not the 'maps' that Botvac Connected is using? You can check this by running
|
Thank you for your reply! I have tested this but then the answer is blank and you get the command prompt back (>>>) I noticed that when I run the following command: from pybotvac import Account I receive: Before that was: When I ask: I still receive the serial number. |
Same on Botvac Connected. The >>> for robot in Account('<snip_username>', '<snip_password>').robots:
... print(robot)
...
Your 'boyle-ORIGINAL' robot is offline.
Name: boyle, Serial: OPS26517-(SNIP), Secret: (SNIP) Traits: ['maps']
>>> for map_info in Account('<snip_username>', '<snip_password>').maps:
... print(map_info)
...
Your 'boyle-ORIGINAL' robot is offline.
OPS26517-(SNIP)
>>> for map_info in Account('<snip_username>', '<snip_password>').persistent_maps:
... print(map_info)
...
(empty) |
Is it because the nucleo API doesn't support maps? https://github.com/stianaske/pybotvac/blob/master/pybotvac/account.py#L129 Nucleo: Compare w/ beehive: |
Thanks for this great API!
Default commands like Start, Stop, Dock are now working great in my home automation Domoticz. Now I would like to go a little deeper and download de latest Map but I think something is wrong. I have a Botvac D5.
When running this command:
from pybotvac import Account
for robot in Account('sample@email.com', 'sample_password').robots:
print(robot)
I get this reply:
Name: , Serial: -****, Secret: *****************************
Traits: Brutus Bot
When running this command:
from pybotvac import Account
for map_info in Account('sample@email.com', 'sample_password').maps:
print(map_info)
I only get the serial number of the D5 in return.
So I can't get the "download_link" URL for the following command:
from pybotvac import Account
map = Account('sample@email.com', 'sample_password').maps
download_link = map['robot_serial']['maps'][0]['url']
Account('sample@email.com', 'sample_password').get_map_image('download_link')
Any Ideas?
Greetings.
The text was updated successfully, but these errors were encountered: