> zwift-smart-fan-controller --help
Options:
--help Show help [boolean]
--version Show version number [boolean]
--config path to JSON config file [string]
To configure command use a JSON config file.
{
"fanIP": "192.168.1.127",
"dataProvider": "zwift",
"observedData": "power",
"antConfig": {
"wheelCircumference": 2.120
},
"zwiftConfig": {
"zwiftID": 1231421,
"pollingInterval": 2500
},
"thresholds": {
"power": {
"level1": 0,
"level2": 10,
"level3": 20
},
"speed": {
"level1": 0,
"level2": 20,
"level3": 30
},
"hr": {
"level1": 70,
"level2": 120,
"level3": 150
}
}
}
-
fanIP
: IP or hostname of the fan (use0.0.0.0
to enable fan mock) -
dataProvider
:zwift
,ant
,mock
select data provider for theobservedData
-
observedData
:power
,speed
,hr
,activity
select data thresholds that trigger fan level change -
antConfig
: Specific configuration forant
data providerwheelCircumference
: size of the wheel in meters - Size chart
-
zwiftConfig
: Specific configuration forzwift
data providerzwiftID
: Your zwift ID, more detail in the Get Zwift ID SectionpollingInterval
: Pulling interval in milliseconds, (keep a value not too high)
npm install -g git+ssh://[email protected]:florianpasteur/zwift-smart-fan-controller.git
Use Zadig to install the WinUSB driver for your USB device. Otherwise you will get a silent LIBUSB_ERROR_NOT_SUPPORTED error when attempting to open devices.