s2 is a cross-platform command-line utility for controlling the Spooky2 device. It serves as a lightweight, alternative replacement for the standard Spooky2 software and is ideal for scenarios where you may not have access to a Windows PC. Whether you're running on Linux, macOS, or a low-power device like a Raspberry Pi, s2 offers flexibility and ease of use.
s2 is designed for users who need a flexible, command-line based solution to run Spooky2 presets and programs without relying on a full Windows installation. Its cross-platform nature makes it a great choice for embedded systems and low-power devices.
- Run Spooky2 Presets: Execute preset presentations from the Spooky2 collection.
- Execute Saved Programs: Launch and control saved Spooky2 programs.
- Biofeedback Scan: Initiate biofeedback scans directly from the command line.
- Dual Program Execution: Run two different programs simultaneously on the same generator.
- Advanced Biofeedback Scans: Utilize a new algorithm to perform scans and export results back to Spooky2.
- Interruptible Scans: Scans can be paused (Ctrl+C) and resumed.
- Low-Level Control: Set specific generator parameters for fine-tuned operation.
- Pulse Rate Functionality: Manage and adjust pulse rates.
- Activity Diary: Automatically logs all activities.
- Time Compression/Extension: Compress or extend a program to match a desired duration.
- Reverse Lookup: Not available due to the encrypted nature of the Spooky2 database.
- Some Advanced Options: Certain advanced features are not yet implemented.
- Graphical User Interface: Currently, there is no installer or GUI.
Note: This software is not officially supported by Spooky2.
There are two primary methods to get s2 running:
- Pre-built Binaries: Download the binaries and copy them to your machine.
- Building from Source: Follow the platform-specific instructions below to build s2 yourself.
Important: Ensure your generators are connected and powered on.
- Windows: You may need to run the device driver setup program (usually found in
C:\Spooky2\CP210x_VCP_Windows). - Linux: Drivers should install automatically.
- macOS: Check for any necessary driver installations.
Verify your connected hardware by running:
s2 statusTo run a Spooky2 program, copy the desired file from your Spooky2 installation (via USB, network share, etc.) and run:
cd "C:\Spooky2\Preset Collections\Detox\Contact"
s2 run generator=3 preset="Intestinal Parasites (C) - BY.txt"Start a biofeedback scan with:
s2 scan- Interrupt & Resume: Press
Ctrl+Cto interrupt. Runnings2 scanagain will resume from where it left off. - Specify Generator: Use
generator=Nto target a specific generator.
sudo apt-get install git cmake g++
git clone https://github.com/calum74/s2.git
cd s2
cmake -DCMAKE_BUILD_TYPE=Release
make
sudo make install
s2 statusUpgrading:
git pull && make && sudo make install- Install Xcode Command Line Tools and CMake:
xcode-select --install- Clone and build:
git clone https://github.com/calum74/s2.git
cd s2
cmake -DCMAKE_BUILD_TYPE=Release -GXcode
xcodebuild-
Install Prerequisites:
- Git for Windows
- CMake
- Visual Studio 2019 or 2022 (with C++ development tools)
-
Clone the Repository:
git clone https://github.com/calum74/s2.git
cd s2- Generate Visual Studio Solution:
- For Visual Studio 2022:
mkdir build
cd build
cmake -G "Visual Studio 17 2022" -A x64 ..- For Visual Studio 2019:
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A x64 ..- Build the Project:
msbuild s2.sln /p:Configuration=Release /p:Platform=x64Alternatively, open the generated .sln file in Visual Studio, select Release mode, and build (Ctrl + Shift + B).
- Verify your installation with:
s2 status(Expand with concise examples and common use cases.)
(Detailed command explanations and usage examples will be added here.)
s2 uses variables to control program behavior. These settings are stored in:
- Windows:
%AppData%\.s2\ - Linux/macOS:
~/.s2/
Modify values with:
s2 set variable=valueVariables can also be passed on the command line:
s2 run generator=5 preset="My scan.txt" duration=1hLoad from a config file:
s2 scan @my_settings.config| Variable | Commands | Units | Values | Default | Description |
|---|---|---|---|---|---|
| amplitude | control, run | V, mV | 0–20 / 40V | Sets peak-to-peak voltage. | |
| channel | scan, run, control | (none) | 0, 1, 2 | channel=1 | Selects generator channel. |
| duration | control, run | s, m, h | Defines total duration. | ||
| frequency | control | Hz, kHz | Adjusts generator frequency. | ||
| generator | scan, run, control | (none) | Selects generator. | ||
| pulse | pulse, scan | (none) | Selects pulse unit. | ||
| simulation | scan, run, control | (none) | on/off | simulation=on | Simulated hardware. |
| waveform | run, scan | (none) | square | Sets waveform type. | |
| compress | run | (none) | disabled | Compresses/extends program. | |
| loop | run, pulse | (none) | off | Loops program execution. | |
| iterations | run, pulse | (none) | 1 | Execution count. |
(Additional file-related documentation can be added here.)