An open API service indexing awesome lists of open source software.

https://github.com/joeferner/node-rtlsdr

Node bindings for rtl-sdr
https://github.com/joeferner/node-rtlsdr

Last synced: over 1 year ago
JSON representation

Node bindings for rtl-sdr

Awesome Lists containing this project

README

          

# node-rtlsdr

Node wrapper around [rtl-sdr](http://sdr.osmocom.org/trac/wiki/rtl-sdr/).

Note: this is a working fork of the [node-rtlsdr](https://github.com/joeferner/node-rtlsdr) module.

You need to install the rtl-sdr libraries first:

```
$ apt-get install librtlsdr0 librtlsdr-dev
```

## Usage

```
$ mkdir node_modules
$ npm install git+https://github.com/pminervini/node-rtlsdr.git
```

```javascript
var rtlsdr = require('rtlsdr');

rtlsdr.getDevices(function (err, devices) {
devices[0].open(function (err, device) {
device.setSampleRate(2048000);
device.setCenterFrequency(99500000);
device.on("data", function (data) {
// process data
console.log(data);
});
device.start();
setTimeout(function () {
device.stop();
}, 1000);
});
});
```

Output:

```
Found Rafael Micro R820T tuner

```