CTT - Recorder English
From PlcWiki
(Difference between revisions)
Jon (Talk | contribs)
(Created page with '== Data recording == === JSON RPC === Example: { "jsonrpc": "2.0", "method": "event", "params": { "time": 1589363924159, "eventId": "1d3cfe6369384034b36771745ddc…')
(Created page with '== Data recording == === JSON RPC === Example: { "jsonrpc": "2.0", "method": "event", "params": { "time": 1589363924159, "eventId": "1d3cfe6369384034b36771745ddc…')
Current revision as of 08:44, 25 May 2020
Contents |
Data recording
JSON RPC
Example:
{ "jsonrpc": "2.0", "method": "event", "params": { "time": 1589363924159, "eventId": "1d3cfe6369384034b36771745ddcee24", "senderId": "http://localhost:8080/clea/?owner=test", "sensorId": "completed.operation_set.oms.processRevision@/clea.L1.test", "subjectId": "6d6f5834-5a05-11ea-9c8e-310892c72f96", "subjectClassId": "", "subjectClassName": "operation_set.oms", "value": 1.0, "author": "clever", "data": { "url": "http://localhost:8080/clea/", "origin": "clea", "action": "processRevision" } } }
URL
Old version of the documentation
Installation
Versions can be downloaded in maven [repository]
The application is distributed as a web archive for the Tomcat server. MySQL data storage - ctt.
General measured value recorder
SQL table ctt_record.
URL: tomcat:8080/ctt-rec/cosi.txt
The return is plain text with a value of "1" indicating successful data writing.
- Unit
-
- mls
- sec (not found in DB yet)
- bol
- bytes (found in DB)
- Record type(value_type)
-
- counter
- event
- rate
- availability (found in DB)
- delta (found in DB)
Computer value recorder
SQL table ctt_computer.
URL: tomcat:8080/ctt-rec/computer/cosi.txt
The return is plain text with a value of "1" indicating successful data writing.
UUID
Each interface URL uses an id in UUID format. It can be generated using the uuidgen line.
Example: id=024eb1a2-9112-4093-a4b7-523e7de49822
The hex () and unhex () conversion functions can be used for SQL select.