Author Topic: Server Temperature Example  (Read 977 times)

erimar77

  • Newbie
  • *
  • Posts: 3
Server Temperature Example
« on: July 06, 2009, 03:30:58 PM »
I'm just following the example of:
http://www.iobridge.net/wiki/api/data-feed-api

trying to get this page to display:
http://www.eric-martin.com/temp2.html

The X and Y axis appear correctly, as does the reported temperature.  However, the orange data plots are nowhere to be found.  Any ideas?

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: Server Temperature Example
« Reply #1 on: July 06, 2009, 03:42:34 PM »
OK, you're almost there. Your temperature is around 78 and the scale of the graph for the server starts at 90 and goes 115 degrees. All you have to do is adjust the scale.

Find this line:

Code: [Select]
var chart_size = "&chs=400x400&chtt=Eric's Office Temperature&chds=40,65&chxt=x,y,x,y&chxl=2:||Time (s)||3:|||Degrees (F)||&chxr=1,90,115|0,0,"+chartSec;
Change it to something like this:

Code: [Select]
var chart_size = "&chs=400x400&chtt=Eric's Office Temperature&chds=40,65&chxt=x,y,x,y&chxl=2:||Time (s)||3:|||Degrees (F)||&chxr=1,60,100|0,0,"+chartSec;
ioBridge Support
Community Team

erimar77

  • Newbie
  • *
  • Posts: 3
Re: Server Temperature Example
« Reply #2 on: July 06, 2009, 03:44:52 PM »
Amazingly obvious, I stared at this for a half hour.. thanks!

EDIT:

Well, maybe that wasn't it.  It's still not generating the points.
« Last Edit: July 06, 2009, 03:47:40 PM by erimar77 »

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: Server Temperature Example
« Reply #3 on: July 06, 2009, 04:48:29 PM »
I rewrote the Google Chart and placed the source code back on the Wiki. Try that out and see if that works better. I added auto-scaling and few other enhancements. Just drop your feed URL into the source code and change the labels on the chart.

http://www.iobridge.net/wiki/api/data-feed-api

Let us know how that works better for you.
ioBridge Support
Community Team

erimar77

  • Newbie
  • *
  • Posts: 3
Re: Server Temperature Example
« Reply #4 on: July 06, 2009, 10:43:08 PM »
Worked like a charm, thanks!