Author Topic: Error 401 Unauthorized when accessing TED5000/api/LiveData.xml  (Read 4585 times)

phuz

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Error 401 Unauthorized when accessing TED5000/api/LiveData.xml
« on: February 25, 2014, 06:21:20 PM »
I can access this successfully from a web browser, but when I try to use this in Excel with WEBSERVICE("http://TED5000/api/LiveData.xml") I get #VALUE returned.
When I try to use this in my VB.NET application, I get Error 401: Unauthorized.

What gives?

phuz

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: Error 401 Unauthorized when accessing TED5000/api/LiveData.xml
« Reply #1 on: February 25, 2014, 07:57:02 PM »
I disabled secure access for the time being, but would like to know how to pass credentials through a web service like this.

falcon

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
Re: Error 401 Unauthorized when accessing TED5000/api/LiveData.xml
« Reply #2 on: June 03, 2015, 04:47:36 AM »
I know this is an old topic, but I'm sure others have had the same problem.

If you need to pass the basic authentication to get the XML files, you do so like this:

http://username:password@TED5000/api/LiveData.xml

Obviously, replace username and password with whatever you put in for authentication.  ;)

matommy

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: Error 401 Unauthorized when accessing TED5000/api/LiveData.xml
« Reply #3 on: July 15, 2015, 01:41:40 AM »
LiveData.xml? I have a Pro Home and am not aware of this call. I would love to know how to, in one call, get data about each of my three MTUs. Kind of like a pull version of what the 3rd party posting function does..

Does LiveData still exist in the latest FW? I looked through the docs and used curl to try to get it from my Pro, but got a 404.

falcon

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
Re: Error 401 Unauthorized when accessing TED5000/api/LiveData.xml
« Reply #4 on: July 15, 2015, 01:50:40 AM »
He's using a TED5000, which is different from the Pro Home. On the Pro Home you can call /api/SystemOverview.xml?T=0&D=0&M=0 to get a readout of every MTU's current readings. It's the same XML file the Footprints dashboard calls every second or so (along with DashData.xml, but that's for the totals).

matommy

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: Error 401 Unauthorized when accessing TED5000/api/LiveData.xml
« Reply #5 on: July 15, 2015, 02:09:06 AM »
Doh! I knew that. In fact, I have already written the code to parse it!

Thanks for the quick, although embarrassing, reply!  :-[