Skip to content

Commit

Permalink
import project
Browse files Browse the repository at this point in the history
  • Loading branch information
reaby committed Dec 16, 2020
1 parent 0f75f87 commit ff379ff
Show file tree
Hide file tree
Showing 35 changed files with 7,980 additions and 2 deletions.
57 changes: 55 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,55 @@
# obs-serato
Now playing infos from serato
# OBS-Serato

Now playing infos from serato.

# Instructions

1. Install nodejs
2. Extract zip or clone repository to somewhere at same computer where your serato is
3. run `npm install` at repository directory
4. after successfull install type: `npm run start:dev`
5. edit `config.json` to match your favourite colors
6. setup OBS
1. add new browser source
2. set URL: http://localhost:8000
* if you run obs different machine, use the serato machine ip instead of localhost
3. set width 1920
4. set height 400
5. delete everythign from custom CSS
6. set checked: refresh browser when scene becomes active
7. press OK
8. then just move the browser source at editor area where you wish, you can as well scale it if needed.


# config.json

`textColors` takes arguments #RGB or #RRGGBB or html color name.

`animation` takes arguments from animate.css, see preview of effects at https://animate.style/


# Note

Now playing info is updated in delay of 1 song.
This means:
1. Deck1 load Song1
* now playing: Song1
2. Deck2 load Song2
* now playgin: Song1
3. Deck1 load Song3
* now playgin: Song2

So it goes in delay.

If you wish to update song as of instant, just
press eject of non-loaded song:

1. Deck1 load Song1
* now playing: Song1
2. Deck2 load Song2
* Press eject on deck1
* now playgin: Song2
3. Deck1 load Song3
* Press eject on deck2
* now playgin: Song3

17 changes: 17 additions & 0 deletions build.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Remove old files, copy front-end ones.
*/

import fs from 'fs-extra';
import Logger from 'jet-logger';


try {
// Remove current build
fs.removeSync('./dist/');
// Copy front-end files
fs.copySync('./src/public', './dist/public');
fs.copySync('./src/views', './dist/views');
} catch (err) {
Logger.Err(err);
}
11 changes: 11 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"textColors": {
"fill": "white",
"border": "black",
"halo": "transparent"
},
"animation": {
"in": "flipInY",
"out": "flipOutY"
}
}
14 changes: 14 additions & 0 deletions env/development.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Environment ##
NODE_ENV=development


## Server ##
PORT=8000
HOST=localhost


## Setup jet-logger ##
JET_LOGGER_MODE=CONSOLE
JET_LOGGER_FILEPATH=jet-logger.log
JET_LOGGER_TIMESTAMP=TRUE
JET_LOGGER_FORMAT=LINE
14 changes: 14 additions & 0 deletions env/production.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Environment ##
NODE_ENV=production


## Server ##
PORT=8000
HOST=localhost


## Setup jet-logger ##
JET_LOGGER_MODE=CONSOLE
JET_LOGGER_FILEPATH=jet-logger.log
JET_LOGGER_TIMESTAMP=TRUE
JET_LOGGER_FORMAT=LINE
14 changes: 14 additions & 0 deletions env/test.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Environment ##
NODE_ENV=test


## Server ##
PORT=4000
HOST=localhost


## Setup jet-logger ##
JET_LOGGER_MODE=CONSOLE
JET_LOGGER_FILEPATH=jet-logger.log
JET_LOGGER_TIMESTAMP=TRUE
JET_LOGGER_FORMAT=LINE
Loading

0 comments on commit ff379ff

Please sign in to comment.