Skip to content

Update motes states and locations

Keoma Brun edited this page Oct 13, 2016 · 2 revisions

Prerequisite

  • Make sure the IoTLab CLI tools are installed: CLI Tools Installation guide
  • Make sure the iotlabcli python module is in its latest version: pip install -U iotlabcli

Update the motes locations

Go to the locations/ directory and run:

python update_locations.py

It will generate a JSON file like (locations.json) with the following format:

[
  {
    "location": "paris",
    "nodes": [
      {
        "network_address": "m3-1.paris.iotlab.info",
        "x": 111111,
        "y": 222222,
        "z": 333333
      }
    ]
  },
  {
    "location": "grenoble",
    "nodes": [
      {
        "network_address": "m3-1.grenoble.iotlab.info",
        "x": 111111,
        "y": 222222,
        "z": 333333
      }
    ]
  }
]