Skip to content
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

Open
Brutuss opened this issue Apr 10, 2019 · 5 comments
Open

.maps response #38

Brutuss opened this issue Apr 10, 2019 · 5 comments

Comments

@Brutuss
Copy link

Brutuss commented Apr 10, 2019

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.

@Brutuss
Copy link
Author

Brutuss commented Apr 20, 2019

No one?

@stianaske
Copy link
Owner

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

from pybotvac import Account
for map_info in Account('sample@email.com', 'sample_password').persistent_maps:
  print(map_info)

@Brutuss
Copy link
Author

Brutuss commented Jul 14, 2019

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

from pybotvac import Account
for map_info in Account('sample@email.com', 'sample_password').persistent_maps:
  print(map_info)

Thank you for your reply!

I have tested this but then the answer is blank and you get the command prompt back (>>>)
So I get no output :(

I noticed that when I run the following command:

from pybotvac import Account
for robot in Account('sample@email.com', 'sample_password').robots:
print(robot)

I receive:
Name: Bot Name Serial: xxxxxxxxx, Secret: xxxxxxxx Traits: ['maps', 'persistent_maps']

Before that was:
Name: Bot Name Serial: xxxxxxxxx, Secret: xxxxxxxx Traits: ['maps']

When I ask:
for map_info in Account('sample@email.com', 'sample_password').maps:

I still receive the serial number.

@fermulator
Copy link
Contributor

Same on Botvac Connected. The maps trait only returns serial.

>>> 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)

@fermulator
Copy link
Contributor

fermulator commented Oct 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants