-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PA-14] - Replacing config by yml (#15)
* [PA-14]-Replacing config.py by config.yml * [PA-14]-Updating documentation to reflect config.yml
- Loading branch information
1 parent
01d133e
commit a39ab5d
Showing
4 changed files
with
68 additions
and
50 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
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
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,29 +1,28 @@ | ||
from pathlib import Path | ||
|
||
# SPOTIFY CLIENT AND SECRET | ||
# This allows the program to use different spotify credential(s) to query spotify playlists using these credentials. | ||
# | ||
# The key of the dictionary must match the person's name used for training the face | ||
# recognition algorithm. The config below is valid if your model was trained to detect | ||
# "alice" and "bob". | ||
|
||
SECRET = dict( | ||
alice=dict(client_id="alice-spotify-client-id", client_secret="alice-spotify-client-secret"), | ||
bob=dict(client_id="bob-spotify-client-id", client_secret="bob-spotify-client-secret"), | ||
) | ||
SECRET: | ||
alice: | ||
client_id: alice-spotify-client-id | ||
client_secret: alice-spotify-client-secret | ||
bob: | ||
client_id: bob-spotify-client-id | ||
client_secret: bob-spotify-client-secret | ||
|
||
# SPOTIFY PLAYLIST URI | ||
# Upon recognizing the face of these user, the program will play these spotify playlist. | ||
# You can obtain a spotify playlist's URI by right-clicking a playlist and selecting: "Share --> Copy spotify URI" | ||
|
||
PLAYLIST = dict( | ||
alice="spotify:playlist:alice", | ||
bob="spotify:playlist:bob", | ||
) | ||
PLAYLIST: | ||
alice: spotify:playlist:alice | ||
bob: spotify:playlist:bob | ||
|
||
# PARAMETERS FOR PLAYING A LOCAL SONG | ||
_music_path = Path("/home/pi/Music") | ||
PEOPLE_SONG = dict( | ||
alice=_music_path.joinpath("alice.mp3"), | ||
bob=_music_path.joinpath("bob.mp3"), | ||
) | ||
# As an alternative to playing your spotify music, people's anthem can play a local song | ||
PEOPLE_SONG: | ||
alice: /home/pi/Music/alice.mp3 | ||
bob: /home/pi/Music/bob.mp3 |
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