Git Product home page Git Product logo

genshin-stats's Introduction

Genshin stats

Repository that hosts code to show my genshin stats.
Automatically claims:

My stats

Deploy

Setup

You will need to have or create Deta account and optionally some website hosting that supports php scripts.

Deta

  1. Create account if you don't have one
  2. Deploy
  3. Configure environment variables
    1. Set key to GAME_UID and value to your UID in game
    2. Set COOKIE
      1. Go to https://www.hoyolab.com/.
      2. Login to your account.
      3. Press F12 to open Inspect Mode (ie. Developer Tools).
      4. Go to Console
      5. run copy(document.cookie)
        image
    3. (Optional) Set key to WEB_KEY and value to the generated key you created when you were editing index.php
    4. (Optional) Set key to WEB_URL and value to your web url
  4. Go to the URL it gives you and add /force-refresh after it (e.g. https://dawdad.deta.dev/force-refresh).
    It should take a while to load and either say it timed out or OK.
    If it says timed out, then refresh until it doesn't.

Website (optional)

Use some free hosting or your own.

  1. Edit index.php
    1. Change $KEY="" to $KEY="SOME_GENERATED_KEY" (eg. $KEY="f54as65f156a1f6as156dc156asc61asd56a64f65as46f4as6d")
  2. Upload file index.php
  3. Load the page and make sure it's not showing any errors, you should see a blank page or a warning that page.html is missing

genshin-stats's People

Contributors

handzcz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

genshin-stats's Issues

Optimize background-image for the mobile version

Background image isn't optimized for the mobile version unlike characters images turning into icons. Maybe adding some media queries could be a good fix ? Or disabling bg image when in phone mode.

Code redeem doesn't work

There's a new code listed on the website that you put in the python code but when you run python3 main.py on heroku, console show "no new code found". I don't remember if code redeem worked on the old genshin-stats or if you're already aware of this but yeah

Question about template.mako

Hi, I was editing template.mako for customization only and was wondering if it's possible to reverse the order of the areas in the "exploration" part ? (Mondstadt first, then Liyue, Dragonspine, ..., underground mines of the chasm)
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.