@Gordon, skimming over the code in post #38 as the extension (and post #39 in its use), I think that the 4th 'item' in post #39 should read .baselineData as said in post #39 by @mix2009 (instead of repeating 3th 'item' .filteredData). ...just in case for what you will copy into the update of the module... ;-)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Gordon, skimming over the code in post #38 as the extension (and post #39 in its use), I think that the 4th 'item' in post #39 should read
.baselineData
as said in post #39 by @mix2009 (instead of repeating 3th 'item'.filteredData
). ...just in case for what you will copy into the update of the module... ;-)