Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sralloza/europarty-scoreboard
https://github.com/sralloza/europarty-scoreboard
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sralloza/europarty-scoreboard
- Owner: sralloza
- Created: 2022-04-04T07:08:52.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-12T21:42:11.000Z (over 1 year ago)
- Last Synced: 2023-05-12T22:26:42.056Z (over 1 year ago)
- Language: Java
- Size: 233 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Europarty Scoreboard
[![E2E Tests](https://github.com/sralloza/europarty-scoreboard/actions/workflows/ci.yml/badge.svg)](https://github.com/sralloza/europarty-scoreboard/actions/workflows/ci.yml)
## Configuration
Configuration is managed by environment variables.
### Required
- **SW_USERNAME**: Your scorewiz username
- **SW_PASSWORD**: Your scorewiz password
- **GOOGLE_CREDS_PRIVATE_KEY**: The private key of your Google credentials. Endlines characters must be replaced with `"\\n"`.
- **GOOGLE_CREDS_EMAIL**: Your Google credentials email.
- **GS_VOTE_ID**: The Google Sheet ID of the votes sheet.
- **GS_TELEVOTE_ID**: The Google Sheet ID of the televotes sheet.
- **GS_PARTICIPANTS_ID**: The Google Sheet ID of the participants sheet.### Optional
#### Style
- **SW_FOREGROUND_LETTERS**: Color of the letters and numbers on the scoreboard. Can be `white` or `black`. Defaults to `white`.
- **SW_BACKGROUND_SCOREBOARD_PAGE**: Background color of the scoreboard page. Defaults to `1B0F3B`.
- **SW_BACKGROUND_PARTICIPANT_DEFAULT**: Default background for any participant yet to vote, not getting votes yet and not voting itself. Default to `967C48`.
- **SW_BACKGROUND_PARTICIPANT_VOTED**: Background of participants that already voted. Defaults to `B35B40`.
- **SW_BACKGROUND_PARTICIPANT_RECEIVING_VOTES**: Background of the participants currently getting votes. Defaults to `AFB376`.
- **SW_BACKGROUND_PARTICIPANT_VOTING**: Background of the participant currently voting. Defaults to `A68414`.
- **SW_UPPERCASE_PARTICIPANTS**: Display the names of participants in upper case. Defaults to `true`.
- **SW_FAST_MODE**: Enable fast mode (lower points appear at once, only three highest scores come in one by one). Defaults to `true`.#### Other
- **SW_BASE_URL**: The base URL of your scorewiz installation. Defaults to `https://scorewiz.com`.
- **SW_SCOREBOARD_NAME**: The name of the scoreboard you want to use. Defaults to `Europarty 2022`.
- **TEST**: If set to `true`, the datetime will be appended to the scoreboard name. Defaults to `false`.
- **HEADLESS**: Whether to run the browser in headless mode. Defaults to `true`.
- **LOG_LEVEL**: The log level to use. Defaults to `info`.## Google Sheets Authentication
1. Create a new Google Cloud Platform project.
2. Create a [new service account](https://console.cloud.google.com/iam-admin/serviceaccounts).
3. Create an ssh key for the created service account. You must select the P12 format.