Refactoring datalog in common packages (#249)

* using datalog from common packages

* upgrading common package link

* updated block signatures

* more docs
This commit is contained in:
Peli de Halleux
2018-01-29 19:46:54 -08:00
committed by GitHub
parent 104185a41e
commit 16c67f0e30
8 changed files with 68 additions and 147 deletions

View File

@ -1,11 +1,15 @@
{
"datalog": "A data logging framework",
"datalog.DatalogStorage": "A storage for datalog data",
"datalog.DatalogStorage.appendHeaders": "Appends the headers in datalog",
"datalog.DatalogStorage.appendRow": "Appends a row of data",
"datalog.DatalogStorage.flush": "Flushes any buffered data",
"datalog.DatalogStorage.init": "Initializes the storage",
"datalog.addRow": "Starts a row of data",
"datalog.addValue": "Adds a cell to the row of data",
"datalog.addValue|param|name": "name of the cell, eg: \"x\"",
"datalog.addValue|param|value": "value of the cell, eg: 0",
"datalog.flush": "Commits any buffered row to disk",
"datalog.setEnabled": "Turns on or off datalogging",
"datalog.setFile": "Starts a new data logger for the given file",
"datalog.setFile|param|filename": "the filename, eg: \"datalog.csv\"",
"datalog.setStorage": "* @param storage custom storage solution"
}

View File

@ -1,7 +1,7 @@
{
"datalog.addRow|block": "datalog add row",
"datalog.addValue|block": "datalog add %name|=%value",
"datalog.setEnabled|block": "datalog %enabled",
"datalog.setEnabled|block": "datalog %enabled=toggleOnOff",
"datalog|block": "datalog",
"{id:category}Datalog": "Datalog"
}