Settings - cb-stimmer/chaturbate-estim-2b GitHub Wiki

Settings file format

The settings file is contains two main parts. The first are the common settings. These are the serial port and power / mode settings for the 2b. The other are the tip levels that specify how the 2b reacts to incoming tips.

The settings file can be changed during the use of the script. The file will be checked every 10 seconds. And if its changed the new settings are reloaded and the 2b is set to the configured mode.

After downloading the script files the settings.json.example must be renamed to settings.json .

Known issues:

The token amount is misspelled in the code. So make sure it is spelled as ammount in the settings file. This will be fixed in a future update of the script.

Common settings

The following settings are required to configure the 2b

  • "serialPort"; Set to the serial port that is used for the 2b. On Windows something like "COM1" and on Linux "/dev/ttyUSB0"
  • "mode"; The mode of the 2b to use. The numbers correspond to the numbers as displayed on the 2b and as written in the 2b manual.
  • "power": Output power setting. "L" for Low, "H" for High and "X" for Dynamic. Dynamic only supported with new firmware 2.120B

Tip Levels

Any number of different tip levels can be configured. The list should be sorted from low to high token amounts for readability.
Tip levels have the following parameters:

  • "ammount"; The minimum token amount for the tip level.
  • "time": The duration of the shock at this tip level.
  • "levelA": and "levelB": The setting of the 2B for the two output channels.
{
  "ammount": 1,
  "time": 5,
  "levelA": 15,
  "levelB": 20
},

Special Tips

The special tips tip levels are used for a single tip amount. In the example below if someone tips 50 tokens the 2b is set to the special tip level of 50 tokens. But if the tip is higher than 50 the 2b will be set to the 30 token tip level.

Complete example

{
  "mode": 11,
  "power": "L",
  "serialPort": "/dev/ttyUSB0",
  "tipLevels": [
    {
      "ammount": 1,
      "time": 5,
      "levelA": 20,
      "levelB": 21
    },
    {
      "ammount": 2,
      "time": 15,
      "levelA": 25,
      "levelB": 26
    },
    {
      "ammount": 15,
      "time": 20,
      "levelA": 30,
      "levelB": 31
    },
    {
      "ammount": 30,
      "time": 20,
      "levelA": 35,
      "levelB": 36
    }
  ],
  "specialTips": [
    {
      "ammount": 50,
      "time": 5,
      "levelA": 45,
      "levelB": 46
    }
  ]
}