cloned from https://github.com/zanderso/cordova-plugin-barometer.git