protocol.txt updated
This commit is contained in:
@ -50,7 +50,7 @@ The only constantly open connection:
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
***** XMLHttp *****
|
||||
|
||||
All other connections are to be closed (getJSON):
|
||||
All other connections are to be closed (getJSON or postForm):
|
||||
|
||||
*********************************************************************************************************************************
|
||||
/getblock?path=<path>&id=<id>
|
||||
@ -132,12 +132,19 @@ All other connections are to be closed (getJSON):
|
||||
|
||||
*********************************************************************************************************************************
|
||||
|
||||
/getvars?time=<time>&id=<id>
|
||||
POST (postForm)
|
||||
|
||||
/getvars
|
||||
|
||||
Parameters for this POST request are passed like this :
|
||||
|
||||
time=<time>&userconfiguration=<user_configuration>&id=<id>
|
||||
|
||||
response: <varlist-message>
|
||||
|
||||
<varlist-message> = {
|
||||
"type":"var_list",
|
||||
"device":<device_name>,
|
||||
"blocks": [
|
||||
{
|
||||
"tag":"K_2",
|
||||
@ -165,9 +172,7 @@ All other connections are to be closed (getJSON):
|
||||
|
||||
*********************************************************************************************************************************
|
||||
|
||||
/updategraph?id=<id>[&variables=<variable list>]
|
||||
|
||||
if <variables list> is given, the given variables will be updated with the graph-update-message
|
||||
/updategraph?id=<id>
|
||||
|
||||
response: <accept-graph-message>
|
||||
|
||||
@ -180,9 +185,7 @@ All other connections are to be closed (getJSON):
|
||||
|
||||
*********************************************************************************************************************************
|
||||
|
||||
/graph?time=<start>,<end>&variables=<variable list>&id=<id>
|
||||
|
||||
the given variables are added to the list of variables being updated with the graph-update-message
|
||||
/graph?time=<start>,<end>&variables=<variable list>&interval=<interval>&id=<id>
|
||||
|
||||
response: <graph-draw-message>
|
||||
|
||||
@ -204,3 +207,9 @@ All other connections are to be closed (getJSON):
|
||||
"type": "accept-console",
|
||||
}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
***** Special route *****
|
||||
|
||||
/export?time=<start>,<end>&variables=<selected_variables>&nan=<nan_representation>&interval=<binning_value>&id=<id>
|
||||
|
||||
This route is reached via a programatically triggered click on an <a> element (GET request)
|
Reference in New Issue
Block a user