Scripts

Utility scripts for maintaining the PickNik website.

Get updated behaviors.xml

# In moveitpro repo when your rest api is running, run a curl command to get the generated XML data
curl -X GET http://localhost:3200/behaviors/data > behaviors.xml

update_behaviors_from_xml.py

Updates _data/behaviors.json with port information and metadata extracted from behaviors.xml.

Usage

# From project root
python scripts/update_behaviors_from_xml.py [path_to_behaviors.xml]

# Example with default path
python scripts/update_behaviors_from_xml.py

# Example with custom XML path
python scripts/update_behaviors_from_xml.py /path/to/behaviors.xml

What it does