-
Notifications
You must be signed in to change notification settings - Fork 33
Winner strings and Pi-only schematics #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jeanmichelbouchard
wants to merge
7
commits into
swehner:master
Choose a base branch
from
jeanmichelbouchard:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b2523cb
Added my config file to sync with Raspberry Pi
jeanmichelbouchard 348ddcc
Support for configurable random winner strings.
jeanmichelbouchard 8e80b9a
Merge branch 'master' of https://github.com/jeanmichelbouchard/foos
jeanmichelbouchard 75ce77b
Added schematics for RPi only setup
jeanmichelbouchard aa2954b
Modified comments
jeanmichelbouchard f946bf6
Added save_replays param to config
jeanmichelbouchard 8a660e6
Added replay_save_path
jeanmichelbouchard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains hidden or 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,77 @@ | ||
| """ Override config values from config_base using this file """ | ||
| from config_base import * | ||
|
|
||
|
|
||
| """ Configure the plugin set """ | ||
|
|
||
| # -- Enable camera, replays and video motiondetector | ||
| #plugins.update(set(['replay', 'camera', 'motiondetector'])) | ||
| #camera_preview = "-p 0,0,128,72" | ||
|
|
||
| # -- Modify this to tune your camera settings - see raspivid --help for more info | ||
| #camera_extra_params = "--ev 7" | ||
| #draw_bg_with_dispmanx = False | ||
|
|
||
| blank_console = False | ||
|
|
||
| # -- Enable league sync with server | ||
| #plugins.add('league_sync') | ||
|
|
||
| # -- Enable Youtube video upload | ||
| #plugins.add('upload') | ||
|
|
||
| # -- Enable hipchat bot | ||
| #plugins.add('hipbot') | ||
|
|
||
| # -- Enable Arduino serial input and led output | ||
| #plugins.add('io_serial') | ||
|
|
||
| # -- Enable auto-TV standby | ||
| #plugins.add('standby') | ||
|
|
||
| # -- Enable IO using Raspberry Pi. Change pin numbers according to your setup. | ||
| # -- PWM output for the IR led is BCM18 (hardware PWM pin) | ||
| plugins.add('io_raspberry') | ||
| io_raspberry_pins = { | ||
| "irbarrier_team_black": 8, # Physical pin 8 | ||
| "irbarrier_team_yellow": 26, # Physical pin 26 | ||
| "yellow_plus" : 10, # Physical pin 10 | ||
| "yellow_minus": 16, # Physical pin 16 | ||
| "black_plus": 3, # Physical pin 3 | ||
| "black_minus": 22, # Physical pin 22 | ||
| "ok_button": 24, # Physical pin 24 | ||
| } | ||
|
|
||
| # -- Modify clock format: see strftime | ||
| #clock_format = "%-I:%M %p" # 12 hour format | ||
|
|
||
| """ Configure team names and colors """ | ||
| team_names = {"yellow": "bleus", "black": "rouges"} | ||
| team_colors = {"yellow": (0.1, 0.1, 0.4), "black": (0.7, 0, 0)} | ||
|
|
||
| # game modes: tuples of (winning score, timeout in minutes) | ||
| game_modes = [(None, None), (5, None), (7, None), (10, None), (3, 120)] | ||
|
|
||
| # Customize winner strings | ||
| winner_strings = ["Victoire des {}!","Des kings les {}!","Les {} déchirent!","Trop forts les {}!","Faites place aux {}!","You rock !!!"] | ||
|
|
||
| """ Configure paths """ | ||
|
|
||
| # -- replay path | ||
| replay_save_path = "./replay" | ||
| replay_fps = 25 | ||
| save_replays = True | ||
|
|
||
| # -- or the location of the file_handler | ||
| #log["handlers"]["file_handler"]["filename"] = "" | ||
|
|
||
|
|
||
| """ Override tokens for plugins """ | ||
|
|
||
| #hipchat_token = 'your_token' | ||
| #hipchat_room = 'your_room_id' | ||
|
|
||
| league_url = 'http://localhost:4567/api' | ||
| league_apikey = 'API_KEY_HERE' | ||
|
|
||
| #slack_webhook = 'https://hooks.slack.com/services/BLAW/BLAW' | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't add your config to the repo (same goes for the .vscode files)