Giter Club home page Giter Club logo

Comments (7)

naofireblade avatar naofireblade commented on July 25, 2024 2

I can confirm that the api and node-botvac are still working together properly :) .

from node-botvac.

Pmant avatar Pmant commented on July 25, 2024

Please take a look at the usage example, you have to authorize with the servers before you can fetch your robots.

from node-botvac.

MatthewWaanders avatar MatthewWaanders commented on July 25, 2024

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.

Pmant avatar Pmant commented on July 25, 2024

could you try to log what body contains at this line?

var robots = [];

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.

MatthewWaanders avatar MatthewWaanders commented on July 25, 2024

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.

Pmant avatar Pmant commented on July 25, 2024

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.

MatthewWaanders avatar MatthewWaanders commented on July 25, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.