is there a way you can add a 5th input for pump it up?
johnboyjr opened this issue · 3 comments
is there a way you can add a 5th input for pump it up?
It's possible! You have to add a new sensor state in the SensorStates array in the fsr.ino code. And then for the webui, you'll have to change the following lines to account for the additional sensor.
I do have a plan to streamline all of this so in the future you would only need to change the SensorStates array and the rest should just work. But for now, this is what you have to do.
https://github.com/teejusb/fsr/blob/master/webui/server/server.py#L67
https://github.com/teejusb/fsr/blob/master/webui/server/server.py#L77
https://github.com/teejusb/fsr/blob/master/webui/server/server.py#L123
https://github.com/teejusb/fsr/blob/master/webui/server/server.py#L175
https://github.com/teejusb/fsr/blob/master/webui/server/server.py#L208
https://github.com/teejusb/fsr/blob/master/webui/server/server.py#L217
https://github.com/teejusb/fsr/blob/master/webui/server/server.py#L225 (not as important)
https://github.com/teejusb/fsr/blob/master/webui/server/server.py#L250
https://github.com/teejusb/fsr/blob/master/webui/src/App.js#L29
https://github.com/teejusb/fsr/blob/master/webui/src/App.js#L34
https://github.com/teejusb/fsr/blob/master/webui/src/App.js#L255-L258
https://github.com/teejusb/fsr/blob/master/webui/src/App.js#L267
https://github.com/teejusb/fsr/blob/master/webui/src/App.js#L268
https://github.com/teejusb/fsr/blob/master/webui/src/App.js#L326
https://github.com/teejusb/fsr/blob/master/webui/src/App.js#L347
https://github.com/teejusb/fsr/blob/master/webui/src/App.js#L363
https://github.com/teejusb/fsr/blob/master/webui/src/App.js#L395-L409
Commit: DJKero@d7477b6
I gave it a shot but I won't be able to test it for a while since I'm waiting for the stuff to arrive.