In index.html
, change the text to the last updated date.
- Open the file
data/regions.json
- Add the new regions:
- Use Google Search to find the coordinates
- Look for the flag on wikipedia, copy the URL of the SVG image, it must star with
https://upload.wikimedia.org/
and end with.svg
The carbon data comes from the officially published GCP carbon data on GitHub
To update to the latest yearly data:
- Make sure the new yearly data is present in a new
.csv
file in the official repo - Update
index.js
to point at this new CSV file.
Prices are currently based on the SKUs for Google Compute Engine E2 Instance Core.
To update to the latest pricing data:
- Open the Cloud Console
- Click Billing > Pricing
- Select "View all SKUs"
- Filter the table with:
Service ID:6F81-5844-456A
Product taxonomy:GCP > Compute > GCE > VMs On Demand > Cores: Per Core
SKU Description:E2 Instance Core
- Display the column
Geo taxonomy regions
. - Select the table using your mouse, copy the selection. (Do not try to use the Download icon, it doesn't download the currently displayed data)
- Create a new Google Sheet, and paste the selection.
- Manually copy all prices into
data/prices.json
TODO: instead of manually copying prices, export the sheet as CSV and parse the CSV (issue)
Alternatively, get the Google Compute Engine E2 Core prices from the documentation.
The list of countries and their coordinates is taken from this page, converted to JSON using this online tool.
- Open https://cloud.google.com/about/locations
- Open the browser console
- Copy the code from
parsers/locations/about-locations-parser.js
- Hit Enter
- Copy the output and paste it into
data/products.json