Author Topic: Posting to a 3rd party server  (Read 43175 times)

ThermoMan

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Posting to a 3rd party server
« Reply #15 on: August 08, 2013, 07:09:38 PM »
It just struck me why my unit stopped posting.

Code: [Select]
<ted500ActivationResponse>
 <PostServer>http://MY_SERVER</PostServer>
 <PostURL>/elec/scripts/postData.php</PostURL>
 <UseSSL>F</UseSSL>
 <PostPort>80</PostPort>
 <AuthToken>myToken</AuthToken>
 <PostRate>1</PostRate>
 <SSLKey>NOT IMPLEMENTED</SSLKey>
</ted500ActivationResponse>

This is my exact XML file and it worked great until the last firmware update, but on re-reading the thread for the umpteenth time I finally got it into my head to check my 500/5000 and to my horror I see that I had "500" and NOT "5000" in my XML.

If the latest firmware got around to actually checking the XML framing then mine woudl have been rejected.  Although no explanation why it would have told me that is successfully set up the contact.

Later on I'll try using this.
Code: [Select]
<ted5000ActivationResponse>
 <PostServer>http://MY_SERVER</PostServer>
 <PostURL>/elec/scripts/postData.php</PostURL>
 <UseSSL>F</UseSSL>
 <PostPort>80</PostPort>
 <AuthToken>myToken</AuthToken>
 <PostRate>1</PostRate>
 <SSLKey>NOT IMPLEMENTED</SSLKey>
</ted5000ActivationResponse>

phuz

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: Posting to a 3rd party server
« Reply #16 on: September 23, 2013, 04:56:52 PM »
I just got this working, and while it's cool, my postings are reporting "Last Value" and not the wattage.  This is great but I don't know how to reverse engineer the Last value into useable data.
Ideas?

ThermoMan

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Posting to a 3rd party server
« Reply #17 on: October 09, 2013, 12:58:06 AM »
I did a thing where I subtract the previous value from the current value and that gives a delta (usage) per minute.

This is the SQL (for MySQL) that I used in my PHP code

SELECT date, (watts*60)-@last_watt AS delta, @last_watt := watts*60 AS dummy
FROM elec__elec_usage 
WHERE date >= (SELECT DATE(MAX(date)) from elec__elec_usage) - INTERVAL 10 DAY
                /* This WHERE clause finds the usage for May 28, 2013 */
WHERE DATE_FORMAT( date, '%Y-%m-%d' ) = '2013-05-28'
ORDER BY 1

The *60 factor is because the main number is in watt hours and I want watt minutes in my chart.

jimmerto

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Posting to a 3rd party server
« Reply #18 on: November 15, 2013, 11:16:54 PM »
"The TED5000 has a XML based service that applications can use to poll the device directly."

żDoes TED PRO has a similar service? (besides the 3rd party posting which is very limited for remote monitoring)

For real time monitoring, we have found more powerful polling in TED5000 than posting to 3rd party. We hope to do something similar with TED PRO. żIs there a manual showing the programmable commands for polling directly the TED PRO?

Kevin

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Re: Posting to a 3rd party server
« Reply #19 on: March 11, 2018, 06:20:03 PM »
"The TED5000 has a XML based service that applications can use to poll the device directly."

żDoes TED PRO has a similar service? (besides the 3rd party posting which is very limited for remote monitoring)

For real time monitoring, we have found more powerful polling in TED5000 than posting to 3rd party. We hope to do something similar with TED PRO. żIs there a manual showing the programmable commands for polling directly the TED PRO?
I'm using the public API (see this thread) to grab the latest instantaneous watts from the MTU and Spyders, as XML.

Works well, but in the long run I plan to write my own listener to receive data via the "3rd party posting" mechanism instead.
Gateway Version 1.0.499, Daughterboard Version 1.0.0, Footprints Version 1.0.281, MTU Version 1.0.61