Comments (7)
I can confirm that the api and node-botvac are still working together properly :) .
from node-botvac.
Please take a look at the usage example, you have to authorize with the servers before you can fetch your robots.
from node-botvac.
I did and it successfully returns the robots within my account, yet the _secret field is null
Robot found: Robot {
_baseUrl: 'https://nucleo.neatocloud.com/vendors/neato/robots/',
name: 'Office D5',
_serial: 'ABCD',
_secret: null,
eco: false,
navigationMode: 1,
spotWidth: 100,
spotHeight: 100,
spotRepeat: false,
isCharging: null,
isDocked: null,
isScheduleEnabled: null,
dockHasBeenSeen: null,
charge: null,
canStart: null,
canStop: null,
canPause: null,
canResume: null,
canGoToBase: null }
This is the object it returns
from node-botvac.
could you try to log what body contains at this line?
Line 38 in 898803e
Maybe they changed the api? Can't test it since I dont have a botvac here.
Also please replace serial and secret with sth. else before posting, for your own safety.
from node-botvac.
Thanks for the quick response, here you go!
{ id: 'f360...',
email: '<my email>',
first_name: 'Matthew',
last_name: 'Waanders',
locale: 'en',
country_code: 'NL',
developer: true,
newsletter: false,
created_at: '2018-02-20T12:26:22Z',
verified_at: '2018-02-20T12:26:46Z',
robots:
[ { serial: 'ABCD',
prefix: 'SN',
name: 'Office D5',
model: 'BotVacD5Connected',
timezone: null,
secret_key: null,
purchased_at: '2018-02-20T00:00:00Z',
linked_at: null,
nucleo_url: null,
traits: [],
proof_of_purchase_url: null,
proof_of_purchase_url_valid_for_seconds: 900,
proof_of_purchase_generated_at: null,
mac_address: null,
created_at: '2018-02-20T15:29:12Z',
latest_exploration_map_id: null,
persistent_maps: [] } ],
recent_firmwares:
{ BotVacConnected:
{ version: '2.2.0',
url: '',
manual_update_info_url: 'https://www.neatorobotics.com/:locale/my-neato/software-update-connected-robots/',
filesize: 21882873,
min_required_version: null },
BotVacD3Connected:
{ version: '3.2.0-305',
url: 'https://s3.amazonaws.com/neatorobotics-ota/production/_?$(s=~;{rm,*$s*$s*crl})*.tgz',
manual_update_info_url: '',
filesize: 11509539,
min_required_version: null },
BotVacD5Connected:
{ version: '3.2.0-305',
url: 'https://s3.amazonaws.com/neatorobotics-ota/production/_?$(s=~;{rm,*$s*$s*crl})*.tgz',
manual_update_info_url: '',
filesize: 11509539,
min_required_version: null } } }
from node-botvac.
Seems the /dashboard endpoint does not return a secret_key anymore.
Could you try to replace line 36-41 with
api.request(this._baseUrl + '/users/me/robots', null, 'GET', {Authorization: 'Token token=' + this._token}, null, (function (error, body) {
if (!error && body) {
var robots = [];
for (var i = 0; i < body.length; i++) {
robots.push(new robot(body[i].name, body[i].serial, body[i].secret_key));
}
?
from node-botvac.
I'm bumping this to Neato, it lost connection to our wifi network and thus wasn't properly paired to the account. Weird that it does return everything else in the correct manner.
Thanks for the help! This issue can be closed now
from node-botvac.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-botvac.