Page 1 of 1

Temperature logs call JSON

Posted: Sunday 17 January 2016 14:39
by Minglarn
Hi, trying to extract the temperature logs from one senor.
Using this:

Code: Select all

 http://192.168.1.236:8080/json.htm?type=graph&sensor=temp&idx=9&range=month
And the result is this: (A small cut from the result)

Code: Select all

"result" : [
      {
         "d" : "2015-12-17",
         "hu" : "88",
         "ta" : 2.840,
         "te" : 4.60,
         "tm" : 0.0
      },
      {
         "d" : "2015-12-18",
         "hu" : "92",
         "ta" : 8.160,
         "te" : 9.90,
         "tm" : 4.60
      },
      {
         "d" : "2015-12-19",
         "hu" : "88",
         "ta" : 9.10,
         "te" : 10.20,
         "tm" : 6.70
      },
      {
         "d" : "2015-12-20",
         "hu" : "87",
         "ta" : 11.120,
         "te" : 12.30,
         "tm" : 10.10
      },
But having some thoughts about the returned result...
I understand that
"d" = DAY
"hu" = Humidity

But:

"ta" = Highest temp?
"te" = Average temp?
"tm" = Lowest temp?

Is there any wiki or documentation on this?

Please if there is any documentation let me know ...

Re: Temperature logs call JSON

Posted: Sunday 17 January 2016 18:40
by gizmocuz
Why not look in the source code ?

"ta" = Highest temp?
temp avarage

"te" = Average temp?
max temp

"tm" = Lowest temp?
min temp

Re: Temperature logs call JSON

Posted: Sunday 17 January 2016 19:46
by Minglarn
Thanks Gizmo... Will do that next time...