Commit Graph

31 Commits (0ab4ce6e2bc2a136ef71584781fa1ceaa4359d3b)

Author SHA1 Message Date
Nils Schneider f18d0b38a9 bugs 2014-05-31 14:53:38 +02:00
Nils Schneider ac3366ff13 count clients and add clientcount attribute to each node 2014-04-10 17:17:11 +02:00
Nils Schneider 7f49d93311 bat2nodes: deal with rrd after creating nodes.json 2014-02-11 11:36:05 +01:00
Daniel Ehlers 319b071fd8 alfred: Make the alfred based batadv-vis data source optional. 2014-01-30 22:31:00 +01:00
Daniel Ehlers 2c79b1d91c alfred: Retrieve aliases from alfred and integrate batadv-vis.
Extending the visualisation data sources by the new batadv-vis,
which itself base ontop of alfred. Also extending the aliases import
by parsing informations from alfred. The last part is possible
through the preprocessing of data with alfred-json, so we don't
need to process the 'broken' format alfred itself supports.

This patch needs batadv-vis and tcatm/alfred-json in the PATH.
2014-01-30 22:11:01 +01:00
Daniel Ehlers 33d7b3aefc Write new file to a temporary and move it afterwards. 2014-01-02 01:46:49 +01:00
Daniel Ehlers 3557e471e1 Add client macs obscure option handling 2013-12-29 04:15:40 +01:00
Nils Schneider b722639f1f more merge fixes 2013-11-23 22:10:46 +01:00
Nils Schneider 573d32c29d write nodes.json directly without creating nodes.json.new first 2013-11-23 22:09:27 +01:00
Nils Schneider ccf0a753fb Merge branch 'rrdstats' of https://github.com/toppoint/ffmap-backend into toppoint-rrdstats
Conflicts:
	bat2nodes.py
	mkmap.sh
2013-11-23 22:05:52 +01:00
Daniel Ehlers 44c92ff65f Refactor batctl calls into python class.
This drastically reduces the logic implement in mkmap.sh and also
supports multiple batman mesh interfaces.
2013-11-21 01:27:13 +01:00
Daniel Ehlers 62413d81f3 Generate node stats with rrd.
We have an rrd for every active node. On every run we update
stats about client count and node state from nodes.json to the rrd
databases. After updating the rrds we are able to generate a stat
graph (image) for every node.

The rrds are stored in subdirectory "nodedb" of the scripts location and
the generated images in subdirectory "nodes" of the destination directory.
Both directorys must exist bevor starting the script.
2013-11-21 01:24:12 +01:00
Daniel Ehlers 1b0e830e16 Add destination directory argument and write content instead of piping. 2013-11-21 01:21:46 +01:00
Daniel Ehlers 9a85fd0c97 Fix utf-8 enforcing hack.
The function getdefaultlocale takes one optional argument,
so the replace should behave the same.
2013-11-21 01:17:44 +01:00
Nils Schneider 9eb7da519b do not repoen stdin, stderr, stdout 2013-03-11 09:24:57 +01:00
Nils Schneider d9a9927ecb remove debug print 2013-02-02 01:29:11 +01:00
Nils Schneider 9b236c462b allow parsing of multiple aliases-files 2013-02-02 00:44:46 +01:00
Nils Schneider 32eb2da6eb fix wiki url 2012-10-02 18:04:07 +02:00
Nils Schneider 4a02fe2899 force encoding to utf8 2012-06-15 18:27:51 +02:00
Nils Schneider a0adb74269 move vpn flag to aliases 2012-06-12 02:12:48 +02:00
Nils Schneider 2ef209c67f make scripts executable 2012-06-05 17:43:43 +02:00
Nils Schneider 33ba6a6d33 update to python3 2012-06-05 17:40:21 +02:00
Nils Schneider 03853a8ac0 read nickname from wiki 2012-06-04 18:37:40 +02:00
Nils Schneider dcfcc9ff36 abstract NodeDB and D3MapBuilder into classes 2012-05-11 18:39:26 +02:00
root 968c94e2e7 shorter try block 2012-05-11 18:01:26 +02:00
root d23736d0f5 move Link and Node to seperate files 2012-05-11 14:12:41 +02:00
root c67fcfd09c add online attribut to Node 2012-05-11 14:07:47 +02:00
Nils Schneider b97492f6c7 fix for python3 2012-05-04 12:04:04 +02:00
Matthias Schiffer cd7b9cf235 Make script Python3 compatible 2012-04-28 23:06:34 +02:00
Nils Schneider c8567b1062 fixes 2012-02-17 03:10:46 +01:00
Nils Schneider 1e6302680c initial commit 2012-02-17 02:09:21 +01:00