This Program helps to manage Freifunk APIfiles.
To use it you need an existing APIfile. Create one here if necessary.
There is no configuration.
Everything ffflash needs to know is passed each time as shell parameters. (It's not much).
To get help, use
usage: ffflash [-h] [-s SIDECARS [SIDECARS ...]] [-n NODELIST] [-r RANKFILE] [-rc RANKCLIENTS] [-rf RANKOFFLINE] [-rn RANKONLINE] [-rp RANKPOSITION] [-rw RANKWELCOME] [-d] [-v] APIfile
You always need to pass the location to your
-nexpects the full url of your
nodelist.jsonfile, generated by the ffmap-backend.
Do some number crunching and store the scores in the
--rankfile. (Only works if passed together with an
--rankwelcomesets the initial score to start with.
--rankpositionincreases score by that value if any location data is provided.
--rankonlineincreases score by that value if node is online.
--rankofflinedecreases score by that value if node is offline.
--rankclientsincreases score per client by that value.
Pass one or more
-s) to merge content from there into the APIfile.
-d) to preview all changes. Then, nothing is written to the APIfile!
-nare omitted, no action is taken. So to just display your APIfile you could use this:
ffflash.py /path/to/your/ffapi_file.json -d
(makes no sense anyway, better use
-v) switch just displays more information.