# somastation

> A SomaFM radio station playlist stream.

Latest version **1.0.1** (published 2015-09-05) · 0 weekly downloads

## Install

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

## 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 | 2015-09-05 |
| First published | 2013-12-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Max Kueng |
| Maintainers | maxkueng |
| Keywords | soma, somafm, stream, streams2, playlist |

## Links

- npm: https://www.npmjs.com/package/somastation
- Repository: https://github.com/maxkueng/somastation
- Homepage: https://github.com/maxkueng/somastation#readme
- Issues: https://github.com/maxkueng/somastation/issues
- npm.io page: https://npm.io/package/somastation

## Dependencies (4)

- [xml2js](https://npm.io/package/xml2js.md) ^0.4.2
- [request](https://npm.io/package/request.md) ^2.53.0
- [object-assign](https://npm.io/package/object-assign.md) ^2.0.0
- [readable-stream](https://npm.io/package/readable-stream.md) ^1.0.33

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-09-05
- 1.0.0 — 2015-03-15
- 0.1.0 — 2014-06-02
- 0.0.4 — 2014-05-18
- 0.0.3 — 2014-01-04
- 0.0.2 — 2013-12-28
- 0.0.1 — 2013-12-26

## README

somastation
===========

A readable stream that continuously emits new metadata about what's currently
playing on a particular SomaFM radio station.

If you are looking to consume metadata of what's playing on SomaFM in real-time
check out http://api.somascrobbler.com/ .

## Usage

### stream = somastation(stationId [, options])

**stationId**
```js
//  http://somafm.com/groovesalad/
//  stationId =       ^^^^^^^^^^^
```

**options**

 - `pollInterval` *(integer; optional; default: 30000)*: Poll interval in milliseconds

## Example

```js
var through2 = require('through2');
var somastation = require('somastation');

var groovesalad = somastation('groovesalad', {
  pollInterval: 30000
});

groovesalad
  .pipe(through2.obj(function (track, encoding, callback) {
    console.log(track);
    callback();
  }));
```

Will print:

```
{ time: 1388248804000,
  artist: 'Speedometer',
  title: 'Wake Up Afternoon',
  album: 'Private' }
{ time: 1388249144000,
  artist: 'Visit Venus',
  title: 'Stellar Jungle',
  album: 'Magic Fly Variations' }
{ time: 1388249562000,
  artist: 'Gate Zero',
  title: 'Radio Overboard',
  album: '[THN086] Radio overBoard' }

...
```

## License

MIT License

Copyright (c) 2013 Max Kueng (http://maxkueng.com/)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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