[DOC] improve raw-output

This commit is contained in:
genofire 2020-01-05 16:56:01 +01:00
parent 39e8f37eaa
commit 5eb75ff9bb
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
3 changed files with 19 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func TestReadConfig(t *testing.T) {
assert.Contains(config.Respondd.Sites["ffhb"].Domains, "city") assert.Contains(config.Respondd.Sites["ffhb"].Domains, "city")
// Test output plugins // Test output plugins
assert.Len(config.Nodes.Output, 4) assert.Len(config.Nodes.Output, 5)
outputs := config.Nodes.Output["meshviewer"].([]interface{}) outputs := config.Nodes.Output["meshviewer"].([]interface{})
assert.Len(outputs, 1) assert.Len(outputs, 1)
meshviewer := outputs[0] meshviewer := outputs[0]

View File

@ -157,6 +157,16 @@ path = "/var/www/html/meshviewer/data/nodelist.json"
no_owner = true no_owner = true
# definition for raw.json
[[nodes.output.raw]]
enable = true
path = "/var/www/html/meshviewer/data/raw.json"
[nodes.output.raw.filter]
# WARNING: if it is not set, it will publish contact information of other persons
no_owner = true
[database] [database]
# this will send delete commands to the database to prune data # this will send delete commands to the database to prune data

View File

@ -548,6 +548,14 @@ path = "/var/www/html/meshviewer/data/nodelist.json"
## [[nodes.output.raw]] ## [[nodes.output.raw]]
{% method %} {% method %}
This output takes the respondd response as sent by the node and includes it in a JSON document. This output takes the respondd response as sent by the node and includes it in a JSON document.
{% sample lang="toml" %}
```toml
[[nodes.output.raw]]
enable = false
path = "/var/www/html/meshviewer/data/raw.json"
#[nodes.output.raw.filter]
#no_owner = false
```
{% endmethod %} {% endmethod %}