https://github.com/nmuldavin/satellitestreams
https://github.com/nmuldavin/satellitestreams
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/nmuldavin/satellitestreams
- Owner: nmuldavin
- Created: 2016-09-11T18:08:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-20T23:13:25.000Z (over 9 years ago)
- Last Synced: 2025-02-22T02:41:21.489Z (over 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Satellite Streams
A set of streams that provide and transform data from [wheretheiss.at/](http://wheretheiss.at/).
###Installation
``git clone https://github.com/nmuldavin/SatelliteStreams.git`` then ``npm install``.
###Included Streams
* **SatelliteStream**: Provides a readable stream of raw satellite data. Initialize with ``new SatelliteStream(options)`` where options is an object specifying a satellite id and request rate in ms:
```
const SatelliteStream = require('./');
const satStr = new SatelliteStream({ rate: 1000, id: 25544 });
```
* **RateStream**: A transform stream that calculates latitude and longitude rates given a SatelliteStream input. Initialize with ``new RateStream()``:
```
const satStrs = require('./');
const satStream = new satStrs.SatelliteStream({ rate: 1000, id: 25544 });
const rateStream = new satStrs.RateStream();
satStream.pipe(rateStream);
```
###Demo
For a demo run ``node example``.