Commit Graph

44 Commits

Author SHA1 Message Date
genofire 8cc5fe1f01 test: fix reading toml for output and database 2022-04-14 13:17:47 +02:00
genofire 773545643c fix reading toml for output and database 2022-04-14 00:14:09 +02:00
Julian Kornberger ff42378138 Make linter happy 2022-03-28 04:20:58 +02:00
lemoer a76df9b9ac
[TASK] add output raw-jsonl
PR at github: #199

This output takes the respondd response as sent by the node and includes
it in a Line-Delimited JSON (JSONL) document. In this format each line
can be interpreted as separate JSON element, which is useful for json
streaming. The first line is json object holding the timestamp and
version of the file. Then there follows one line for each node, each
containing a json object.

An example output looks like this:

    {"version":1,"updated_at":"2021-03-27T21:58:48+0100","format":"raw-nodes-jsonl"}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    {"firstseen": ..., "lastseen": ..., "online":true, "statistics": {...}, "nodeinfo": {...}, "neighbours":null, "custom_fields":null}
    ...

Signed-off-by: Leonardo Mörlein <git@irrelefant.net>
2021-03-29 16:12:26 +02:00
Geno f4bad7d856 nodeinfo without empty values 2021-03-24 08:57:46 +01:00
genofire aff906d734 black lives matter 2020-06-17 10:14:22 +02:00
nrbffs 9a70560cfb raw output: add custom fields
This will include all configured custom fields in the raw output
under the "custom_fields" key.
2019-12-29 15:41:05 +01:00
nrbffs 70cdb53b49 meshviewer-ffrgb output: add custom fields
This will include all configured custom fields in the meshviewer-ffrgb output
under the "custom_fields" key.
2019-12-29 15:41:05 +01:00
nrbffs 1a1163aaa1 add support for custom fields
At the moment, if one has a custom respondd module which includes custom
fields, Yanic will simply ignore these fields. Communities which have custom
fields have to maintain patches on Yanic to have them available.

This commit allows to define custom fields in the configuration file, which
will cause Yanic to also save the values of these custom fields in its internal
data structures. Output modules can then decide whether they want to include
these fields. For most cases, this should avoid the need for patches in Yanic.
2019-12-29 15:41:05 +01:00
genofire f3da33b15a
[BUGFIX] package name in output raw 2019-11-13 12:37:54 +01:00
genofire f58ad00fec
[TEST] add output raw 2019-11-13 12:21:50 +01:00
nrbffs 6d310614ca [TASK] add output raw (#169) 2019-11-13 12:14:15 +01:00
krombel 80d42433d8 [TASK] Add output for geojson nodes only
PR: #164
2019-05-21 09:31:18 +02:00
Martin/Geno 3ef2d1ece9
[TEST] fix testdata of meshviewer-ffrgb (fixes #160) 2019-02-27 02:29:39 +01:00
Martin/Geno bd13b99378
[TASK] rename NodeInfo to Nodeinfo (same naming overall) 2019-01-24 02:56:13 +01:00
Martin/Geno 27fde7cd8c [TASK] improve logging 2019-01-19 20:58:36 +01:00
Martin/Geno f5d0067eff [BUGFIX] meshviewer-ffrgb export empty array 2019-01-15 19:06:31 +01:00
Martin/Geno 6579d52bac [BUGFIX] show NaN on link (fix #149) 2019-01-04 22:51:05 +01:00
Martin/Geno eddd556ec1
[TASK] cleanup meshviewer-ffrgb, drop vpn field 2018-12-30 03:01:42 +01:00
Martin/Geno 7b4e3ce221 [TASK] meshviewer-ffrgb: drop site for domain 2018-10-07 19:34:38 +02:00
skorpy 4551923d46 [BUGFIX] use available memory for usage estimation
Fix memory usage estimation following this commit:
https://github.com/freifunk-gluon/gluon/pull/1517
2018-08-30 09:48:03 +02:00
Martin Geno c20e216ed6
[TASK] make yanic babel compatible (#104) 2018-05-05 23:30:22 +02:00
Martin Geno 35d6933d31
[TASK] handle domain_code (with filters) (#119) 2018-05-05 23:28:46 +02:00
Geno 4473b4fca9 [BUGFIX] config of filter case of one interface at once 2018-02-15 18:15:12 +01:00
Julian Kornberger 6b522c629c
[TASK] refactoring of filters (#114) 2018-02-15 07:45:42 +01:00
Martin Geno dcf1b6316c [BUGFIX] fix link type detection by different sources 2018-01-15 02:03:55 +01:00
Martin Geno 94c9dd2f6c
[BUGFIX] convert config in steps 2018-01-15 01:01:32 +01:00
Julian Kornberger 082f8d6c7e Fix misspells 2018-01-13 17:04:26 +01:00
Julian Kornberger d2e37f8c7d Simplify with `gofmt -s -w .` 2018-01-13 16:40:23 +01:00
Martin Geno d892d1693d [TASK] extract seperate config to packages 2018-01-13 14:14:39 +01:00
Martin Geno cf2d2c3209 [BUGFIX] tests without sleep 2018-01-13 14:14:39 +01:00
Geno f423da31d2
[TASK] add rules for documentation, PR and testing
(#76 )
2017-12-31 16:01:19 +01:00
Geno 69079b7d64
[TASK] extract enable to all databases + increase testing in database
(#78)
2017-12-31 16:01:11 +01:00
Martin Geno 3422a29254 [TASK] show online clients in output only if online
(#105)
2017-12-28 12:44:48 +01:00
kb-light 8fffdac0a4
[BUGFIX] fix calculation of wifi clients
(#106)
2017-12-28 12:33:39 +01:00
Julian fd9a1e1101 [BUGFIX] fix typo 2017-11-23 13:01:39 +01:00
Geno 395fb46fde
[BUGFIX] write during map interation 2017-11-22 12:58:29 +01:00
Geno 9720835e60
[BUGFIX] export value 0 in output meshviewer-ffrgb
fixed #99
2017-11-17 11:00:01 +01:00
Geno 037ff80193
[TASK] use circle ci for build artifacts + enable data race detection (#95) 2017-11-14 19:33:28 +01:00
Martin Geno 63eaa413d6
[TASK] meshviewer-ffrgb output add mac of link 2017-11-14 19:32:24 +01:00
Xaver Maierhofer 918b279b23 [TASK] Reduce network depth in meshviewer output 2017-11-04 20:22:22 +01:00
Geno 1acd8f4455
[BUGFIX] output meshviewer-ffrgb export owner (#90) 2017-11-04 00:35:30 +01:00
Martin Geno d4b1de3da9
[BUGFIX] ignore links from offline nodes (output meshviewer-ffrgb) 2017-11-01 20:29:00 +01:00
Martin Geno 82fa527386
[TASK] improve output (filtering, fix links type, new outputs nodelist for freifunkapi and meshviewer-ffrgb v10 NextGen) - #63 2017-11-01 14:27:39 +01:00