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
- Host: GitHub
- URL: https://github.com/joeferner/node-rtlsdr
- Owner: joeferner
- Created: 2012-07-17T20:53:49.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2014-06-21T20:21:38.000Z (about 12 years ago)
- Last Synced: 2025-03-11T05:02:05.885Z (over 1 year ago)
- Language: C++
- Size: 165 KB
- Stars: 42
- Watchers: 5
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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
```