https://github.com/yangchang-n/HoYoLab-box
🎮 Update your pinned gist to show your HoYoverse gameplay stats
https://github.com/yangchang-n/HoYoLab-box
genshin-impact github-actions honkai-starrail hoyolab hoyolab-api hoyoverse mihoyo mihoyo-api pinned-gist profile python
Last synced: 18 days ago
JSON representation
🎮 Update your pinned gist to show your HoYoverse gameplay stats
- Host: GitHub
- URL: https://github.com/yangchang-n/HoYoLab-box
- Owner: yangchang-n
- License: mit
- Created: 2023-12-01T10:24:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-19T09:15:13.000Z (about 2 months ago)
- Last Synced: 2025-02-19T09:34:53.096Z (about 2 months ago)
- Topics: genshin-impact, github-actions, honkai-starrail, hoyolab, hoyolab-api, hoyoverse, mihoyo, mihoyo-api, pinned-gist, profile, python
- Language: Python
- Homepage:
- Size: 56.6 KB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pinned-gists - hoyolab-box - Update a pinned gist to show your Genshin Impact / Honkai: Star Rail play stats. (External Services)
README
# HoYoLab-box
![]()
HoYoLab-box
🎮 Update your pinned gist to show your HoYoverse gameplay stats
## Setup
### Prep Work
1. Create a new public GitHub Gist (https://gist.github.com/)
2. Create a token with the `gist` scope and copy it (https://github.com/settings/tokens/new)
3. Go to HoYoLab and login to your account (Make sure the stats are shown in your HoYoLab profile page!)
4. Press **F12** to open developer tools
5. Find and copy `ltoken_v2` and `ltmid_v2` in Cookies### Project Setup
1. Fork this repo
2. Go to the repo **Settings > Secrets and variables > Actions**
3. Add the following environment variables at **Repository secrets**
- **GIST_ID** : The ID portion from your gist url
- **GH_TOKEN** : The GitHub token generated above
- **HOYO_UID** : Your HoYoverse/HoYoLab UID
- **HOYO_TOKEN** : Your personal HoYoLab API access token (copied `ltoken_v2`)
- **HOYO_TMID** : Another key value to access API (copied `ltmid_v2`)
- **GAME_CODE** : One or two-digit number in the order in which you want to display (ex. `26` for the above image)- 1 : Honkai Impact 3rd
- 2 : Genshin Impact
- 6 : Honkai: Star Rail
- 8 : Zenless Zone Zero## References
- [steam-box](https://github.com/YouEclipse/steam-box)
- [youtube-box](https://github.com/SinaKhalili/youtube-box)
- [neko-box](https://github.com/RangerDigital/neko-box)
> For more pinned-gist projects like this one, check out : https://github.com/matchai/awesome-pinned-gists## Feedback and Contributions
- Always welcome in any way## License
- MIT License