Automate your BioReactor

Automatice su Biorreactor

Learn how to schedule tasks to control your devices automatically. Perfect for circadian rhythm experiments or timed agitation.

Aprenda cómo programar tareas para controlar sus dispositivos automáticamente. Perfecto para experimentos de ritmo circadiano o agitación temporizada.

Important: Importante:
  • Always use the IP address displayed on the device's LCD screen. The examples below use placeholders.
  • Use siempre la dirección IP que aparece en la pantalla LCD del dispositivo. Los ejemplos a continuación usan marcadores de posición.
  • The devices only support 2.4GHz WiFi networks. Higher frequencies (5GHz, 6GHz) are not supported.
  • Los dispositivos solo soportan redes WiFi de 2.4GHz. Las frecuencias superiores (5GHz, 6GHz) no son compatibles.

Batch Script (.bat)

Script por Lotes (.bat)

Create a file named set_light.bat:

Cree un archivo llamado set_light.bat:

@echo off
:: Set BioLighting to Warm White
curl -X POST http://192.168.1.50/api/light ^
     -H "Content-Type: application/json" ^
     -d "{\"r\":255,\"g\":180,\"b\":100,\"intensity\":100}"
pause

Scheduling (Task Scheduler)

Programación (Programador de Tareas)

  1. Open "Task Scheduler" from the Start Menu. Abra "Programador de Tareas" desde el Menú Inicio.
  2. Click "Create Basic Task" and name it "BioLight Morning". Haga clic en "Crear tarea básica" y nómbrela "BioLight Mañana".
  3. Set the Trigger to "Daily" and choose the time (e.g., 08:00 AM). Configure el Desencadenador en "Diariamente" y elija la hora (ej. 08:00 AM).
  4. Action: "Start a Program". Browse and select your set_light.bat file. Acción: "Iniciar un programa". Busque y seleccione su archivo set_light.bat.
  5. Finish and save. Your lights will now turn on automatically every morning! Finalizar y guardar. ¡Sus luces ahora se encenderán automáticamente cada mañana!

Shell Script

Script Shell

Create a file named set_rpm.sh and make it executable (chmod +x set_rpm.sh):

Cree un archivo llamado set_rpm.sh y hágalo ejecutable (chmod +x set_rpm.sh):

#!/bin/bash
# Set IAShaker to 120 RPM
curl "http://192.168.1.51/rpm?value=120"

Scheduling (Automator)

Programación (Automator)

  1. Open "Automator" and create a "Calendar Alarm". Abra "Automator" y cree una "Alarma de Calendario".
  2. Drag "Run Shell Script" from the actions library. Arrastre "Ejecutar script de shell" desde la biblioteca de acciones.
  3. Paste the content of your script or execute the file path. Pegue el contenido de su script o ejecute la ruta del archivo.
  4. Save. Calendar will open; set the event time and repeat interval (e.g., every day at 9 AM). Guardar. Se abrirá Calendario; establezca la hora del evento y el intervalo de repetición (ej. todos los días a las 9 a.m.).

Bash Script

Script Bash

Create a file named experiment_start.sh:

Cree un archivo llamado experiment_start.sh:

#!/bin/bash
# Turn on Light and Start Shaker
curl -X POST http://192.168.1.50/api/light -d '{"r":0,"g":255,"b":0,"intensity":100}' -H "Content-Type: application/json"
curl "http://192.168.1.51/rpm?value=150"

Scheduling (Crontab)

Programación (Crontab)

Edit your crontab with crontab -e and add a line:

Edite su crontab con crontab -e y agregue una línea:

# Run every day at 08:00 AM
00 08 * * * /path/to/experiment_start.sh