ericmann / speed-logger

Log network speed to a CSV routinely.
28 stars 19 forks source link

out.client.ip #3

Open Mavrikant opened 6 years ago

Mavrikant commented 6 years ago

JSON output of speednet is changed. Its no longer support ip. So program gives this error: TypeError: Cannot read property 'ip' of undefined

Result of JSON.parse(data):

{ download: 7459494.59180464,
  timestamp: '2018-08-14T23:07:40.696386',
  ping: 59.752,
  upload: 631538.8519807155,
  server: 
   { latency: 59.752,
     name: 'Istanbul',
     url: 'http://st1.doruk.net.tr/upload.php',
     country: 'Turkey',
     lon: '28.9550',
     cc: 'TR',
     host: 'st1.doruk.net.tr:8080',
     sponsor: 'Doruknet',
     url2: 'http://st2.doruk.net.tr/upload.php',
     lat: '41.0136',
     id: '4791',
     d: 1.58923133633594 } }
Feromrk commented 5 years ago

I had this problem when I used an old version of the speedtest-cli. Update to the latest Version fixed it.