1.1.5 • Published 4 months ago

@nesorter/tui v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

nesorter

Web radio with scheduling and "playlisting"

Requirements

  • ffprobe installed on host and available in $PATH

How to use

  • Init Node.JS package/project
mkdir radio && \
cd radio && \
npm init -f
  • Make sure your package.json contains "type": "module"

  • Next, install this app

npm install @nesorter/tui@latest
  • Next, create index.js and paste this code:
import { TUI } from '@nesorter/tui';

const config = {
  server: {
    port: 3000,
    mount: '/listen',
  },
  logger: {
    debug: false,
    info: true,
  },
  library: {
    root: '/Users/kugichka/Music/Electronics Random',
  },
  playlists: [
    {
      id: 'random #1',
      path: '/Users/kugichka/Music/Electronics Random/Random #1 > kugi\'s'
    },
    {
      id: 'random #2',
      path: '/Users/kugichka/Music/Electronics Random/Random #2 > kugi\'s'
    },
  ],
  maxScheduledItems: 256,
  schedule: [{
    type: 'playlist',
    startAt: 0, // 00:00
    duration: 86400, // 24 hours
    playlistId: 'random #1',
    shouldShuffle: true,
  }],
};

TUI.create(config).start().then(() => {
  console.log('Event: server initialized');
});
  • So, start app with:
node index.js
1.1.5

4 months ago

1.1.4

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago

1.0.10

5 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago