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
| // Based almost entirely on the work of https://gist.github.com/ilyichvismara/7895bb479e14a999f3cfd2c391f10597 | |
| const teamId = 133811; // Replace this with your team's ID — find the team page on https://www.thesportsdb.com, e.g. Arsenal's page is https://www.thesportsdb.com/team/133604 so their teamID is 133604 | |
| const teamDetailUrl = "https://www.thesportsdb.com/api/v1/json/1/lookupteam.php?id="; | |
| const leagueDetailUrl = "https://www.thesportsdb.com/api/v1/json/1/lookupleague.php?id=" | |
| const teamUrl = teamDetailUrl + teamId; | |
| let r = new Request(teamUrl); | |
| let teamDetail = await r.loadJSON(); |
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
| // widget created by @marco79 (Twitter) user/marco79 (RoutineHub) u/marco79 (Reddit) | |
| // insert your Spotify client id and secret here | |
| const clientId = "xxxxxx" | |
| const clientSecret = "xxxxxx" | |
| const spotifyPlaylistName = "Retrowelle Playlist" | |
| // insert your IFTTT key and webhook url | |
| const iftttUrl = "https://maker.ifttt.com/trigger/add_track_to_spotify/with/key/" | |
| const iftttKey = "xxxxxx" |
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
| <!-- General Settings --> | |
| <advancedsettings> | |
| <loglevel hide="true">-1</loglevel> <!-- Comment: Disables logging --> | |
| <playcountminimumpercent>95</playcountminimumpercent> | |
| <skiploopfilter>0</skiploopfilter> <!-- Comment: For RPi or similar use 16 or higher (low CPU usage) --> | |
| <nodvdrom>true</nodvdrom> | |
| <!-- Streaming Optimization --> | |
| <network> | |
| <buffermode>1</buffermode> <!-- Comment: Default is 1 --> |