question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems with i7+

See original GitHub issue

Hello,

I have i7+ with 1.6.6 firmware (EMEA). I’m able to do basic actions using Local API (start, pause, stop, dock); the only method that works is getWirelessStatus. All others (getSys, getWeek, getPreferences etc.) return nothing.

Also Cloud access doesn’t work - problem with resolving irobot.axeda.com 😕 Result of myRobotViaCloud.getStatus():

pi@raspberrypi:~/Downloads/dorita980 $ node myapp.js
{ RequestError: Error: getaddrinfo ENOTFOUND irobot.axeda.com irobot.axeda.com:443
    at new RequestError (/home/pi/Downloads/dorita980/node_modules/request-promise-core/lib/errors.js:14:15)
    at Request.plumbing.callback (/home/pi/Downloads/dorita980/node_modules/request-promise-core/lib/plumbing.js:87:29)
    at Request.RP$callback [as _callback] (/home/pi/Downloads/dorita980/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at self.callback (/home/pi/Downloads/dorita980/node_modules/request/request.js:185:22)
    at Request.emit (events.js:193:13)
    at Request.onRequestError (/home/pi/Downloads/dorita980/node_modules/request/request.js:881:8)
    at ClientRequest.emit (events.js:193:13)
    at TLSSocket.socketErrorListener (_http_client.js:397:9)
    at TLSSocket.emit (events.js:193:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at processTicksAndRejections (internal/process/task_queues.js:81:17)
  name: 'RequestError',
  message:
   'Error: getaddrinfo ENOTFOUND irobot.axeda.com irobot.axeda.com:443',
  cause:
   { Error: getaddrinfo ENOTFOUND irobot.axeda.com irobot.axeda.com:443
       at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:58:26)
     errno: 'ENOTFOUND',
     code: 'ENOTFOUND',
     syscall: 'getaddrinfo',
     hostname: 'irobot.axeda.com',
     host: 'irobot.axeda.com',
     port: 443 },
  error:
   { Error: getaddrinfo ENOTFOUND irobot.axeda.com irobot.axeda.com:443
       at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:58:26)
     errno: 'ENOTFOUND',
     code: 'ENOTFOUND',
     syscall: 'getaddrinfo',
     hostname: 'irobot.axeda.com',
     host: 'irobot.axeda.com',
     port: 443 },
  options:
   { method: 'GET',
     headers:
      { 'User-Agent': 'aspen%20production/2618 CFNetwork/758.3.15 Darwin/15.4.0',
        Accept: '*/*',
        'Accept-Language': 'en-us',
        'ASSET-ID': 'ElPaso@irobot!F1FFBE8B5FCE439CA080273553DFC57A' },
     uri:
      'https://irobot.axeda.com/services/v1/rest/Scripto/execute/AspenApiRequest?blid=F1FFBE8B5FCE439CA080273553DFC57A&robotpwd=xxxxxx&method=getStatus',
     callback: [Function: RP$callback],
     transform: undefined,
     simple: true,
     resolveWithFullResponse: false,
     transform2xxOnly: false },
  response: undefined }

So what am I doing wrong?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
koalazakcommented, Apr 15, 2019

ok the problem is those methods are waiting for properties in the state that are not there in i7+ robots (like uiSwVer and others). So never return the state. (they are present in 980 robots) So, I recomend to you just use the getRobotState(['fieldYouWant') method to get the system properties you are looking for. To be clear, those methods (getSys, getWeek, getPreferences) just wait for some properties in the state and then return that fields. For example getWeek() is waiting for cleanSchedule in the state and i7 robots has cleanSchedule2 propertie but not cleanSchedule. To emulate getWeek() in i7 robots use getRobotState(['cleanSchedule2').

I will try to fix this in next version.

thank you

1reaction
koalazakcommented, Apr 15, 2019

Hi @thorazine-12 , can you run this code and share the output please?

const dorita980 = require('dorita980');
  const myLocalRobot = new dorita980.Local('blid_here', 'password_here', 'ip_here');

  myLocalRobot.on('connect', () => { 
    console.log('connected'); 
    myLocalRobot.on('packetreceive', packet =>  {
      packet.payload = JSON.parse(packet.payload);
      console.log(JSON.stringify(packet, null, 2));
    });
  });

thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Core i5 beats Core i7: Alder Lake-P creates problems for ...
The biggest issue for customers is the increased fan activity during everyday workloads, because the chips quickly reach high temperatures. The ...
Read more >
Intel Core i7-7700K Problems, Issues: Intel Advises Users Not ...
Months after receiving reports about some overheating issues with the Intel Core i7-7700K, Intel responded by practically discouraging ...
Read more >
iRobot Roomba i7 Troubleshooting - iFixit
This troubleshooting page will help you diagnose problems with the iRobot Roomba i7.
Read more >
Are there any problems with Intel Core i7-9700K 3.6GHz (Octa ...
As far as I know, no there isn't any problem reported with this CPU in general. It is good and enough to power...
Read more >
I'm having serious problems with i7 12700F : r/intel - Reddit
Hello everyone, I'm having serious problems with the i7 12700F. I read everywhere that it was/is one of the best CPUs from intel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found