User Tools

Site Tools


access_via_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
access_via_api [2020/04/07 11:32] – [Getting meters log] emozolyakaccess_via_api [2020/04/07 11:57] – [Getting meters log] emozolyak
Line 2219: Line 2219:
   X-WH-START: 1422595501   X-WH-START: 1422595501
   X-WH-END: 1422599101   X-WH-END: 1422599101
-  X-WH-REGISTERS: 8,10  +  X-WH-REGISTERS: 65 
-  check list !!!+
      
 Also, in the headers, you must specify the desired data exchange format. Currently, only the JSON format is supported. Also, in the headers, you must specify the desired data exchange format. Currently, only the JSON format is supported.
Line 2239: Line 2239:
   X-WH-START: 1422595501   X-WH-START: 1422595501
   X-WH-END: 1422599101   X-WH-END: 1422599101
-  X-WH-REGISTERS: 8,10 -- check this +  X-WH-REGISTERS: 65 
  
 Reply example: Reply example:
  
 <code> <code>
-[ { +[ 
-    "t": 1586257200, // time stamp  +  
-    "r": 65,         // register id  +    "t": 1586253600, // timestamp  
 +    "r": 65,         // register id 
     "s": "0.0",      // hour start value      "s": "0.0",      // hour start value 
-    "e": "10.0",     // hour end value  +    "e": "5.0",      // hour end value 
-    "v": "10.0"      // hour consumption+    "v": "5.0"       // difference 
 +  }, 
 +  { 
 +    "t": 1586257200,  
 +    "r": 65, 
 +    "s": "5.0", 
 +    "e": "20.0", 
 +    "v": "15.0" 
 +  }, 
 +  { 
 +    "t": 1586257200, 
 +    "r": 76, 
 +    "s": "100.0", 
 +    "e": "200.0", 
 +    "v": "100.0"
   }   }
 ] ]
 </code> </code>
  
-The '////' are comments, they are absent in the reponse. +The %%//%% are comments, they are absent in the real reponse. 
  
  
  
access_via_api.txt · Last modified: 2023/03/02 10:53 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki