Changeset 14335 in genesis


Ignore:
Timestamp:
Feb 20, 2019, 10:23:13 PM (4 years ago)
Author:
rick
Message:

Add helper PoC to help merge nodeplanner data

How to use:

  • Export new nodeplanner data:

$ ./gformat.py create nodeplanner.json > nodeplanner-genesis.json

  • Export nodeplanner website data:

$ curl -s https://maps.wirelessleiden.nl/nodeplanner/api/get/state > nodeplanner-usermod.json

  • Merge files:

$ ./merge-nodeplanner-json.py nodeplanner-genesis.json nodeplanner-usermod.json > nodeplanner-new.json

  • Use importer function to upload data:

https://maps.wirelessleiden.nl/nodeplanner/

  • Check result
  • Use save function to save data:

https://maps.wirelessleiden.nl/nodeplanner/

Location:
tools
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r14233 r14335  
    23512351          datadump = get_yaml(system)
    23522352          print system, datadump['rdnap_x'], datadump['rdnap_y']
     2353      elif sys.argv[2] == "nodeplanner.json":
     2354        print make_network_kml.make_nodeplanner_json()
    23532355      elif sys.argv[2] == 'ssh_config':
    23542356        print  '''
Note: See TracChangeset for help on using the changeset viewer.