Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/resir014/nodecg-resir014-stream-overlays
The broadcast package for twitch.tv/resir014.
https://github.com/resir014/nodecg-resir014-stream-overlays
nodecg nodecg-bundle react stream-overlay tailwindcss twitch
Last synced: 15 days ago
JSON representation
The broadcast package for twitch.tv/resir014.
- Host: GitHub
- URL: https://github.com/resir014/nodecg-resir014-stream-overlays
- Owner: resir014
- License: mit
- Created: 2022-11-28T11:06:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-16T17:29:23.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T05:36:13.454Z (2 months ago)
- Topics: nodecg, nodecg-bundle, react, stream-overlay, tailwindcss, twitch
- Language: TypeScript
- Homepage: https://www.twitch.tv/resir014
- Size: 520 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodecg-resir014-stream-overlays
> The broadcast package for [twitch.tv/resir014](https://www.twitch.tv/resir014).
## Progress
- [x] Flightsim Telemetry
- [x] Clock extension (time stored in replicant)
- [ ] Setup [nodecg-io](https://nodecg.io/0.2/) + StreamElements extension
- [ ] StreamElements alerts
- [ ] Universal Overlay (merged BottomBar™ + background screen)
- [ ] Intermission overlays + timesignal settings## Getting started
### Prerequisites
You will need:
- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/en/) (v16.0+)
- [Yarn](https://classic.yarnpkg.com/lang/en/) (v1)### Install NodeCG
Follow [this guide](https://www.nodecg.dev/docs/installing) to install and run NodeCG locally.
In summary:
```bash
# Install nodecg + dependencies
npm install --global nodecg-cli
mkdir nodecg
cd nodecg
nodecg setup
```### Setup the bundle
On your root NodeCG bundle, install the bundle via the NodeCG CLI
```bash
# Install bundle
cd bundles
git clone https://github.com/resir014/nodecg-resir014-stream-overlays.git# Install bundle's dependencies
cd nodecg-resir014-stream-overlays
yarn# Build for production
yarn build
```### Start developing
On one terminal window, run a local server for development.
```bash
yarn watch
```On another terminal window, navigate to the NodeCG root folder, and start the server.
```bash
# Run nodecg locally
nodecg start
```## Creating bundle files
The Webpack config is set up so you can easily create multiple dashboard/graphics files and will be bundled separately.
As long as you follow these naming conventions, all files are automatically generated in the main `dashboard`/`graphics` folders.
```
my-bundle/
├─ package.json
├─ webpack.config.js
└─ src/
├─ dashboard/
│ ├─ [name].dashboard.html
│ ├─ [name].dashboard.tsx
│ └─ [name].dashboard.css
└─ graphics/
├─ [name].graphics.html
├─ [name].graphics.tsx
└─ [name].graphics.css
```Then, you can manually add these into your bundle config on the `package.json` file.
```json
{
"nodecg": {
"dashboardPanels": [
{
"name": "index",
"title": "Index",
"width": 6,
"file": "index.html",
"headerColor": "#68717b"
},
{
"name": "second",
"title": "Second Panel",
"width": 4,
"file": "second.html",
"headerColor": "#0070f3"
}
],
"graphics": [
{
"file": "index.html",
"width": 1920,
"height": 1080
},
{
"file": "other-graphic.html",
"width": 1920,
"height": 1080
}
]
}
}
```