Configuration
We offer a couple ways to configure your new LabRat G2. No more menu driving on a tiny screen with a single knob.
SD Card Configuration
🛠️ Use the Configuration Generator Tool
No coding required!
Generate your config.json file with our easy-to-use tool.
Perfect for beginners • Visual interface • Instant download
For almost everything, you can configure it with the SD Card. This includes behavior settings (ie: Random Retrigger or Delay Trigger), WiFi connection, even firmware updating and resetting the memory.
If you prefer a visual interface over editing JSON files, we highly recommend using our Configuration Generator Tool above. It will create a properly formatted config.json file that you can download and copy to your SD card.
Hot Reload
The micro SD Card is "hot loadable" which means that inserting the card while the LabRat is on, it will read and update without rebooting.
It's important to understand what happens when you pull the card while it's running thought. In an effort to prevent interruption in your show, we don't immediately revert to what's stored on the LabRat's internal memory. Pulling the SD Card will leave everything running the way it was. The only thing is that audio is played from the SD Card, so pulling the card, will stop any audio playback.
When you insert the card, the system will read the card and update settings immediately.
In some cases, a hot reload may cause the LabRat to do something unintended. This is can happen when the card is actively being read or written to, like when ambient audio is actively playing off of the SD Card. The system is very good at correcting for these cases, but sometimes a reboot is best to reset things fully.
When in doubt --> Reboot it Out
File and Folder Structure
When an SD Card is inserted for the first time, the LabRat will place the folder structure for you.
SD Card/
├── media/
│ ├── audio_file1.mp3
│ └── another_audiofile.flac
├── routines/
│ ├── igorbox_routine.json
│ └── another_routine.json
└── triggers/
└── igorbox_trigger.json
You can use any folder structure inside the media folder that makes sense for you.
The routines and triggers folder are used by IgorBox mode and do nothing in other modes.
General Configuration
The general configuration is handled through a file named config.json
. This file configures everything on the LabRat G2.
An Example config file looks like this:
{
"configMode": "SDCARD", // can be "SDCARD", "STANDARD", or "IGORBOX"
"show": {
"mode": "DELAY",
"delaySecs": 0,
"onTimeSecs": 5,
"resetSecs": 5,
"audio": "sound.mp3", // (looks in the media folder for this file ie: /media/sound.mp3)
"audioDelaySecs": 0
},
"ambient": {
"audio": "ambient_sound_1.flac", // (looks in the media folder for this file ie: /media/ambient_sound_1.flac)
"ambientDelaySecs": 0
}
}
Config Mode
There are 3 config modes:
SDCARD
- in this mode, the SDCARD is used to control the LabRat. Nothing is saved to the onboard flash in this case.STANDARD
- in this mode, the configuration in theconfig.json
is saved to the onboard flash memory.IGORBOX
- in this mode, the LabRat syncs to your IgorBox account and is able to do full show playback!
Show Settings
This section configures the main LabRat G2 functions.
You can set the following values:
mode
- Can beDELAY
,RETRIGGER
, orMOTION
(if installed)delaySecs
- This is the delay (in seconds) to wait after a trigger happens before activating the outputrangeSecs
- This is used byRETRIGGER
mode for time range for the random retrigger to happen inonTimeSecs
- This is how long the output relay should stay on (setting this to 0 will cause it to blip on)resetSecs
- This is the time to wait after the output turns off before a trigger can happen againaudio
- the audio file to play when the trigger happens (looks for this file in the/media
directory)audioDelaySecs
- This is the time to wait after a trigger before playing the audio file
For more info on Modes you can read our examples in the LabRat G1 Docs
Ambient Settings
This section sets the background audio when the LabRat is not triggered.
audio
- The audio file to play in a loop. This file must be in the media directory of the SD CardambientDelaySecs
- This is the amount of time to wait before starting the Ambient loop after a trigger has completed
WiFi
Connecting your LabRat to your WiFi is super easy.
Create a file on your SD Card called wifi.json
with the contents:
{
"ssid": "<ssid>",
"password": "<password>"
}
This is the minimum config for a secure wiFi access point.
If you need to set more advanced options, these settings are also supported:
authType
- you can set a specific auth method (WPA2
is the default)ip
- a static ip address (requires gateway and subnet to be set)gateway
- the static ip gateway settingsubnet
- the subnet for your static ip address