# ms5803

> Use MS5803-14BA on nodejs, e.g. RPi or similar SBC Tested to run on Raspberry PI 3

Latest version **1.0.1** (published 2018-05-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install ms5803
pnpm add ms5803
yarn add ms5803
bun add ms5803
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-05-09 |
| First published | 2018-03-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andy Tsui |
| Maintainers | andytsui |
| Keywords | iic, i2c, ms5803, pressure, temperature |

## Links

- npm: https://www.npmjs.com/package/ms5803
- Repository: https://github.com/gueei/node-ms5803
- Homepage: https://github.com/gueei/node-ms5803#readme
- Issues: https://github.com/gueei/node-ms5803/issues
- npm.io page: https://npm.io/package/ms5803

## Dependencies (3)

- [i2c](https://npm.io/package/i2c.md) ^0.2.3
- [long](https://npm.io/package/long.md) ^4.0.0
- [nodeify](https://npm.io/package/nodeify.md) ^1.0.1

## Recent versions

- 1.0.1 (latest) — 2018-05-09
- 1.0.0 — 2018-03-16

## README

# ms5803
Use MS5803-14BA on nodejs, e.g. RPi or similar SBC
Tested to run on Raspberry PI 3

## Installation

```bash
npm install ms5803
```

```javascript
var ms5803 = require('ms5803')

var sensor = new ms5803();
```

## Usage
This module supports both Promise style and node callback style of usage. 
Check the example.js for the basic usage. 

```javascript

var ms5803 = require('ms5803');
var sensor = new ms5803();

sensor.reset()
	.then(sensor.begin)
	.then((c)=>{
		console.log("calibration array: " + c);
	})
	.then(()=>{
		setInterval(()=>{
			sensor.measure()
			.then((r)=>{
				console.log("sensor readings:" + r);
			})
		}, 1000);
	})
	.catch((error)=>{
		console.error(error);
	});
```

## Acknowledgements
- This implementations is basically a javascript port from [SparkFun Pressure Sensor Breakout](https://github.com/sparkfun/MS5803-14BA_Breakout)
- Since javascript does not support 64-bit integer, [Long](https://www.npmjs.com/package/long) is used to do 64-bit calculations.

---
_Source: https://npm.io/package/ms5803 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
