Skip to content

JSON command

vitotai edited this page Mar 22, 2018 · 5 revisions

By using http://brewpiless.local/testcmd.htm, you can control BrewPi core directly. For example, to set temperature to Fahrenheit. Open the testcm.htm page, and enter the following string, and send.

j{"tempFormat":"F"}

You can set multiple parameters in one command. The command after j is in formal JSON format. Please include the double quote(") for key and string value.

Key Meaning Note
tempFormat Temperature format F for Fahrenheit, C for Celius
tempSetMin Minimum setting temperature
tempSetMax Maximum setting Temperature
pidMax PID Max
Kp Kp parameters of PID
Ki Ki parameters of PID
Kd Kd parameters of PID
iMaxErr iMaxError
idleRangeH idleRangeHigh
idleRangeL idleRangeLow
heatTargetH heatingTargetUpper
heatTargetL heatingTargetLower
coolTargetH coolingTargetUpper
coolTargetL coolingTargetLower
maxHeatTimeForEst maxHeatTimeForEstimate
maxCoolTimeForEst maxCoolTimeForEstimate
fridgeFastFilt fridgeFastFilter
fridgeSlowFilt fridgeSlowFilter
fridgeSlopeFilt fridgeSlopeFilter
beerFastFilt beerFastFilter
beerSlowFilt beerSlowFilter
beerSlopeFilt beerSlopeFilter
lah lightAsHeater
hs rotaryHalfSteps
heatEst heatEstimator
coolEst coolEstimator
minCoolTime Minimum cooling time *1
minCoolIdleTime Minimum idle time before cooling *1
minHeatTime Minimum heating time *1
minHeatIdleTime Minimum idle time before heating *1
deadTime Minimum idle time between switch of heating and cooling. *1

*1: Available if SettableMinimumCoolTime option is set to true, or EnableGlycol is set to true. After v2.4, it is enabled by default.

To view current temperature control setting, issue a single character

c

and send.

Sensor Calibration

The command to set sensor calibration is

U{i:0,j:0.36}

where 0 is the Device Slot that is assigned to the sensor during device setup, and 0.36 is the adjustment to the sensor.

Clone this wiki locally