This project is created to automate so that you can switch between which scoreboard you are showing. It render a page from score.volleystream.no github that shows a scoreboard. When you have a lot of matches then you need to go into OBS, or your similar streaming service and update the url that should be displayed. This means that you need people to do this monkeywork!
When we run our tournaments the secretariat holds track over all matches and their state in a google sheets! So what if we just look into that sheet, find the court we want to show scoreboard for and render the correct scoreboard trough creating an iframe of score.volleystream.no. And then we simply auto refresh the page now and then so that always have the correct scoreboard showing.
http://localhost:3000/court?type=&spredsheetId=&courtId=
See https://github.com/nvbf/volley-score/tree/master/pages for types of scoreboard to render.
- Turn on Google Sheets api here
- it will generate a file for you, download and store it in the folder for this repo.
- Run
node auth.js
- or follow googles instructions. - This should generate a new file token.js, and makes a test api call to see that everything works
node server.js
Check the api responds from the api /api/court/<spreadsheetId>/<courtId>