Skip to content

Filters JSON data from ffmap-backend base on filter strings

License

Notifications You must be signed in to change notification settings

freifunk-rz/ff-communityfilter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ff-communityfilter

Filters JSON data from ffmap-backend base on filter strings

communityfilter.pl

Reads nodes.json and graph.json from ffmap-backend and create filtered ones for several communities. Every community has its own target directory, can have several filter strings an decide to create legacy.json (for the old ffmap-d3) or not and to save the contacts or not.

Every node its name matches the whitelist, the filterstring or is flagged as a gateway, will be taken to the target json.

communityfilter.ini

Config file for communityfiler.pl. Needs the sourcedir and legacyfilter in the general section and at least one community-section with targetdir, legacy- and contacts-switch an one oder more filterstring(s).

Requirements

Communityfilter needs 'jq', File::Basename-, Config:IniFiles- and JSON-Perl modules installed and sourcefiles from ffmap-backend.

About

Filters JSON data from ffmap-backend base on filter strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%