Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:mervis-scada:50-api [2023/09/26 14:39] v.kohout [api/v3/get/history] |
en:mervis-scada:50-api [2025/02/27 11:43] (current) v.kohout [api/get/projectByParts] |
||
---|---|---|---|
Line 249: | Line 249: | ||
* URL: / | * URL: / | ||
* Method: POST | * Method: POST | ||
- | * You should always use "token" instead of simple | + | * You should always use token ("t" |
* " | * " | ||
| | ||
Line 272: | Line 272: | ||
" | " | ||
" | " | ||
- | " | + | " |
" | " | ||
} | } | ||
Line 279: | Line 279: | ||
**Response** | **Response** | ||
- | * Empty " | ||
- | * " | ||
* Values | * Values | ||
* v - value | * v - value | ||
* ts - timestamp - start of the value validity period | * ts - timestamp - start of the value validity period | ||
* gt - goodthrough - end of the value validity period | * gt - goodthrough - end of the value validity period | ||
- | * i - interval, only present if it differs from the interval in Meta section | + | * i - interval |
- | * Meta | + | |
- | * type - value type - double, string, datetime | + | |
- | * unit - unit | + | |
- | * interval - expected interval between the stored records. Useful to identify missing data. | + | |
<code javascript> | <code javascript> | ||
Line 598: | Line 592: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | **Response** | ||
+ | |||
+ | <code xml><? | ||
+ | < | ||
+ | |||
+ | ====api/ | ||
+ | |||
+ | **Request** | ||
+ | |||
+ | * URL: / | ||
+ | * Method: POST | ||
+ | * Content-Type: | ||
+ | |||
+ | <code xml> | ||
+ | <?xml version=" | ||
+ | < | ||
+ | < | ||
+ | <values projId=" | ||
+ | <dps> | ||
+ | <d id=" | ||
+ | < | ||
+ | <p n=" | ||
+ | < | ||
+ | </p> | ||
+ | </ | ||
+ | </d> | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
**Response** | **Response** | ||
Line 775: | Line 799: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ====api/ | ||
+ | |||
+ | To get the list of projects. | ||
+ | |||
+ | **Request** | ||
+ | |||
+ | * URL: / | ||
+ | * Method: POST | ||
+ | |||
+ | <code javascript> | ||
+ | { | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | **Response** | ||
+ | |||
+ | <code xml><? | ||
+ | <?xml version=" | ||
+ | < | ||
+ | < | ||
+ | <project id=" | ||
+ | <loc> | ||
+ | <n1:gps lat=" | ||
+ | </ | ||
+ | <mdi> | ||
+ | <mi n2: | ||
+ | <mi n3: | ||
+ | </ | ||
+ | </ | ||
+ | <project id=" | ||
+ | <mdi> | ||
+ | <mi r: | ||
+ | <mi r: | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </mi> | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
===== Matlab Client ===== | ===== Matlab Client ===== | ||
==== General notes client function parameters ==== | ==== General notes client function parameters ==== |