Commit Graph

31 Commits

Author SHA1 Message Date
Matthias Schiffer 3d027847c6 Move all upgrade scripts to a common directory
Moving the scripts to a common directory not only vastly simplifies the
zzz-gluon-upgrade script, but also allows to define an ordering of such
scripts across packages.
2015-01-24 11:27:47 +01:00
flokli 10c42490fb gluon-announce: rename announce.lua to collect.lua
Signed-off-by: flokli <florian@darmstadt.freifunk.net>
2015-01-14 10:36:32 +01:00
Nils Schneider 0eded54626 gluon-alfred: no parallel cronjobs
This should reduce memory consumption a little.

https://github.com/freifunk-gluon/gluon/issues/109#issuecomment-61681696
2014-11-17 15:36:06 +01:00
Nils Schneider 52f54cf122 split announce.d into nodeinfo + statistics 2014-07-20 14:00:10 +02:00
Nils Schneider 13f0308be1 gluon-announce: detach announce.d from alfred
All announce.d scripts have been moved to /lib/gluon/announce/announce.d
The script /lib/gluon/announce/announce.lua will collect all information
and output json.
2014-07-11 14:43:47 +02:00
Matthias Schiffer 59039ca1d1 gluon-alfred: use lua-platform-info 2014-07-10 17:57:31 +02:00
Matthias Schiffer 9d364a6fbc gluon-alfred: some announce.lua cleanup 2014-06-26 17:57:15 +02:00
Nils Schneider 0ddbf8b6b8 gluon-alfred: use gzip 2014-06-10 19:20:55 +02:00
Matthias Schiffer 0db81c1293 gluon-alfred: reduce usage of util.exec, improve table formatting 2014-06-10 15:44:35 +02:00
Matthias Schiffer 3608f0a0a2 gluon-alfred: add fields idletime, memory and processes to statistics 2014-06-09 19:50:25 +02:00
Matthias Schiffer 779d428d9a gluon-alfred: split announce.lua into several files and move parts into the appropriate packages
This also fixes the type of a few fields which were strings instead of numbers.
2014-06-09 19:23:16 +02:00
Nils Schneider 9971ac6f30 gluon-alfred: replace announce.sh with lua script
This replaces announce.sh with a lua script of (hopefully) equal
functionality. Using lua generating JSON is much faster than jshn and
allows for greater flexibility.
2014-03-01 23:47:03 +01:00
Matthias Schiffer 3811912a45 We DON'T want the gluon version file to collide with the package version stamp dir 2014-02-26 10:21:14 +01:00
Matthias Schiffer 8277bbd8de gluon-alfred: add version string to software.firmware.base field 2014-02-25 11:38:06 +01:00
Matthias Schiffer 6354f22212 Rename gluon-location to gluon-node-info, add owner section 2014-02-24 05:12:01 +01:00
Matthias Schiffer 7f61b00db0 gluon-location: move information to /etc/config/gluon-location 2014-01-20 00:06:55 +01:00
Matthias Schiffer e85aeabbb6 gluon-alfred: add chosen gateway and load average 2014-01-19 21:44:26 +01:00
Matthias Schiffer f54ffafb1b gluon-alfred: run every minute
The run frequency and exact time affect the alfred announce interval, so we can
just run it every minute to supply alfred with the most up-to-date data.
2014-01-18 21:56:05 +01:00
Jan-Philipp Litza 7197eb09dc alfred: add more traffic statistics
+ mgmt and forward counters
+ packet in addition to byte counters for everything
2014-01-16 23:47:41 +01:00
Jan-Philipp Litza 7cca730ce4 alfred: Add --no-sleep option to send immediately 2014-01-16 23:46:54 +01:00
Jan-Philipp Litza 238994e1e2 alfred: clean up delay code 2014-01-16 22:42:02 +01:00
Jan-Philipp Litza 8217d666ee alfred: add random node-specific delay before sending 2014-01-16 22:36:09 +01:00
Jan-Philipp Litza 7538125a82 alfred: make traffic counters absolute
After a lenghty discussion, we settled on absolute vs. relative values.
Main reasons:

* stateless implementation on node possible
* convertable to relative values by differentiaion on receiver
* missed transmissions only decrease granularity, whereas relative
  values would introduce wrong numbers on integration if values are
  missed
2014-01-16 22:34:57 +01:00
Jan-Philipp Litza 10f419deef alfred: add statistics (uptime+traffic) 2014-01-16 16:50:25 +01:00
Matthias Schiffer ebf4a7e8a2 Remove initscript enable/disable hacks
Better configure these properly.
2014-01-13 18:29:00 +01:00
Jan-Philipp Litza e38a0c9f11 alfred: name -> hostname 2014-01-13 17:11:41 +01:00
Jan-Philipp Litza f756a71de9 alfred: improved readability 2014-01-13 17:09:15 +01:00
Jan-Philipp Litza 0cfb32ce95 alfred: split up firmware info, include fastd version+status 2014-01-13 17:06:47 +01:00
Jan-Philipp Litza 9648152ef9 alfred: added more information to send, reformatted location
location is object with latitude and longitude
added:
* firmware
* autoupdater status
* hardware model
* primary mac address
* mesh IPv6 addresses
2014-01-13 16:10:03 +01:00
Matthias Schiffer 40ea8d9880 Clean up gluon-alfred
* Merge gluon-alfred-ffmap into gluon-alfred
* Use gluon-crond instead of alfred's "facter" mechanism based on the broken busybox crond
2014-01-12 22:37:28 +01:00
Jan-Philipp Litza b9ac954915 added gluon-alfred and gluon-alfred-ffmap 2014-01-12 22:06:50 +01:00