Add via Browser input to your stream. Display your last game, win rate, current elo and more.
Rename config.sample.php to config.php and set all variables.
Open /?yourHTTPPassword
api_key
- override api_key set in config.php via URLtitle
- title to display in template. In above picture it is set to "Season 12"champion
- get stats only for specific champion you playedgameAfter
- get only games after UNIX timestamp with ms, example value: 1641575632000design
- specify template to use
You can create new templates in template folder. You have 2 objects available:
$error
can havemessage
andprogress
attributes. Ifmessage
is nonempty, you need to display error message on your template.$data
can have a lot of data in it. Check index.php for all available data to display. You can alsovar_dump
it and see.
All data gathering is done in index.php.
You can then use &design
parameter in URL set to your folder name to use your design.
This was put together very quickly and is in no way a nice or scalable code. It will do the job and that was enough for me on this project.