Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Generate nicely-formatted spreadsheets on a clan's war participation data

Notifications You must be signed in to change notification settings

5HT2C/clanwar-spreadsheet-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Clan War data

  1. Get an API key from https://developer.clashofclans.com/.
  2. Create a .env:
TOKEN=clash api key goes here
  1. Run ./fetch_current.sh and it will fetch the current war into data/. This only works before a new war has been started.

Generating spreadsheet

  1. Run make.
  2. Run ./run.sh [data json file]. This will fetch the latest war data if you do not specify the path of said json file.

Using generated data

Optionally, nice formatting to steal can be found at https://frogg.ie/llama

  1. Add Sheet
  2. Ctrl + V
  3. Data → Split text to columns
  4. Format → Alternating Columns
  5. Select Column E
  6. Ctrl + H
  7. Find ~, Replace with =, Replace All
  8. Select Columns A to P → Right Click → Resize column → Fit to data
  9. Select Columns D to E → Insert → Checkbox