-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
7,980 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.