Temperature logs call JSON

Moderator: leecollings

Post Reply
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Temperature logs call JSON

Post 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 ...
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
User avatar
gizmocuz
Posts: 2511
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Temperature logs call JSON

Post by gizmocuz »

Why not look in the source code ?

"ta" = Highest temp?
temp avarage

"te" = Average temp?
max temp

"tm" = Lowest temp?
min temp
Quality outlives Quantity!
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: Temperature logs call JSON

Post by Minglarn »

Thanks Gizmo... Will do that next time...
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest