Skip to main content

Configuring your server to add Sensors and Activities

By default, you will not be able to assign any activities or sensors to your participants (or groups of participants). At first, when you try to add activities and sensors in the dashboard, none are available in the dropdown. This is because not every mindLAMP deployment needs all of the sensors or activities that are available. Instead, you must individually enable each sensor or activity type you will need. This process is called "adding an ActivitySpec" or "adding a SensorSpec".

Steps to add a SensorSpec (or ActivitySpec):

  1. Navigate to (
  2. Click the "authorize" button in the top right corner
  3. Enter your server's address, your server's admin username, and your server's admin password
  4. Figure out the SensorSpec name (or ActivitySpec) of the sensor (activity) you would like to enable. To see a full list of SensorSpec names, check here: To see a full list of ActivitySpec names, check here: For example, you will see that the SensorSpec for the accelerometer sensor is called "lamp.accelerometer".
  5. Scroll down to the "Body" text box. Replace the field with {"name":<sensorspec>}. For example, to add the "accelerometer" sensor, use: {"name":"lamp.accelerometer"}
  6. Scroll down to the text box that says "". Replace this text with your server's address.
  7. Select "execute". Check back in the dashboard for an updated dropdown list!

Automated Script

import LAMP



print("[LAMP Platform] ActivitySpec & SensorSpec Initialization Tool")
print("You must enter your username, password, and server address to continue installation.")
print("Username: admin [CANNOT BE CHANGED]")
LAMP.connect("admin", input("Password: "), input("Server Address: "))

print(f"Creating ActivitySpec '{spec}'...")
LAMP.ActivitySpec.create({ "name": spec })
for spec in SENSOR_SPEC_LIST:
print(f"Creating SensorSpec '{spec}'...")
LAMP.SensorSpec.create({ "name": spec })