ffnord / ffmap-backend

THIS PROJECT DOESN'T HAVE A MAINTAINER!
Other
20 stars 56 forks source link

Adds an option (--alfred-file) for existing alfred json files #34

Closed mruettgers closed 9 years ago

mruettgers commented 9 years ago

To be able to create a nodes.json without an alfred instance running in master mode I added an option (--alfred-file) to bat2nodes.py that allows the processing of an existing alfred json file (e.g. ffmap.freifunk-rheinland.net/alfred.json).

mruettgers commented 9 years ago

State.json is stored in the current working directory. I think a better approach is to store the file in the given destination directory. (See my last commit)

kokel commented 9 years ago

The state.json is needed only in ffmap-backend to load the last state in the next run of bat2nodes.py. Why store state.json in ffmap-d3 while it won't use it?

mruettgers commented 9 years ago

Hm, ok, that's a point. I was just wondering about those state.json files lingering around everywhere. So I have to modify my script to chdir before calling bat2nodes.py.