Skip to content

Commit

Permalink
generate static site
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenz-g committed Jul 15, 2024
1 parent 9f66c81 commit bff819a
Show file tree
Hide file tree
Showing 6 changed files with 311 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/ajax-data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"project_length": {"tesla_str": "(83)", "all_str": "(1248)"}}
{"project_length": {"tesla_str": "(84)", "all_str": "(1249)"}}
40 changes: 35 additions & 5 deletions docs/all-big-batteries.html

Large diffs are not rendered by default.

40 changes: 35 additions & 5 deletions docs/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/misc/big-battery-projects.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1371,3 +1371,4 @@ Ville-sur-Haine,,1393,,,belgium,200,,50,,Eneco,,tesla,megapack,,,planning,2023-0
Collie Battery Stage 2,,1394,,western australia,australia,1363,,341,,neoen,,tesla,megapack 2XL,,224,construction,,2024-05-01,,2025Q4,,,,-33.31,116.29,2,,,https://colliebattery.com.au,https://colliebattery.com.au/2024/05/01/construction-stage2/,,,
Orana BESS,wellington,1395,,new south wales,australia,1660,,415,EnergyAustralia,Akaysha Energy,,tesla,megapack 2XL,,,planning,2024-07-15,,,2026,650,AUD,0,-32.527608,148.958942,2,,,,https://x.com/SawyerMerritt/status/1812687836887281794,https://akayshaenergy.com/news/akaysha-energy-secures-largest-bess-financing-globally-at-650-million,,
Limondale,balranald,1396,,new south wales,australia,400,,50,,RWE,,tesla,megapack,,,planning,2024-05-28,,,2025Q4,,,,-34.774873,143.526866,2,,location from the balrnald supstation on google maps,,https://x.com/SawyerMerritt/status/1795348622864945179,https://reneweconomy.com.au/germany-energy-giant-presses-go-on-australias-first-eight-hour-big-battery/,,
Glenbrook,glenbrook,1397,,,new zealand,200,,100,,Contact Energy,,tesla,megapack 2XL,,,planning,,,,2026Q1,163,NZD,0,-37.203762,174.734204,2,,location from the steal site and substation,,https://x.com/SawyerMerritt/status/1807635731197702615,https://www.nzherald.co.nz/business/glenbrook-to-get-big-grid-scale-battery-as-contact-teams-up-with-tesla/5KULSHHUVFEWFBSXYU3G42ONEE/,https://www.pv-magazine-australia.com/2024/07/10/contact-teams-with-tesla-on-200-mwh-battery-for-nz/,
2 changes: 1 addition & 1 deletion docs/misc/big-battery-projects.json

Large diffs are not rendered by default.

238 changes: 238 additions & 0 deletions docs/projects/1397.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="shortcut icon" type="image/x-icon" href="/tesla-megapack-tracker/favicon.ico">


<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- Datatables CSS https://cdn.datatables.net/ -->
<link href="https://cdn.datatables.net/1.11.0/css/dataTables.bootstrap5.min.css" rel="stylesheet">
<!-- leaflet js css -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/>



<title>

1397 Glenbrook (200MWh)

</title>


<meta name="description" content="detail page for Glenbrook big battery">

<meta property="og:title" content="Glenbrook (200MWh)" />
<meta property="og:description" content="detail page for Glenbrook big battery" />
<meta property="og:image" content="https://lorenz-g.github.io/tesla-megapack-tracker/pics/logo.jpg" />

</head>
<body>

<nav class="navbar navbar-expand-lg navbar-light bg-white shadow py-3 px-1 mb-3">
<div class="container-fluid px-0">
<a class="navbar-brand" href="/tesla-megapack-tracker/">
<img src="/tesla-megapack-tracker/pics/logo.jpg" alt="logo" width="30" height="30">
Tesla Megapack Tracker
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">

<ul class="navbar-nav mb-2 mb-lg-0">
<li class="nav-item"><a class="nav-link" href="/tesla-megapack-tracker/">Megapack tracker <span id="project-length-tesla"></span></a></li>
<li class="nav-item"><a class="nav-link" href="/tesla-megapack-tracker/#cars-vs-stationary">Cars vs Stationary</a></li>
<li class="nav-item"><a class="nav-link" href="/tesla-megapack-tracker/all-big-batteries.html">Big battery tracker <span id="project-length-all"></span></a></li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Government data
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="/tesla-megapack-tracker/gov-us-eia.html">🇺🇸 US EIA data (>10MW)</a></li>
<li><a class="dropdown-item" href="/tesla-megapack-tracker/gov-uk-repd.html">🇬🇧 UK REPD data (>10MW)</a></li>
<li><a class="dropdown-item" href="/tesla-megapack-tracker/gov-de-mastr.html">🇩🇪 DE MaStR data (>10MW) </a></li>
<li>
<a class="dropdown-item" href="/tesla-megapack-tracker/gov-de-mastr-small-batteries.html">
🇩🇪 DE MaStR data (< 30kWh small batteries) <span class="badge bg-info">New</span>
</a>
</li>
</ul>
</li>
<li class="nav-item"><a class="nav-link" href="/tesla-megapack-tracker/blog.html">Blog</a></li>

<li class="nav-item"><a class="nav-link" href="/tesla-megapack-tracker/#contact">Contact</a></li>

</ul>
</div>
</div>
</nav>
<!-- https://getbootstrap.com/docs/5.0/layout/gutters/ -->
<!-- added the overflow-hidden to disable to gutter x on the row -->
<!-- then you -->
<div class="container-xl px-1 overflow-hidden">


<h3> Glenbrook <span data-toggle="tooltip" data-placement="top" title="user data available">👤</span> </h3>

<dt>Status </dt>
<dl><span class="">planning</span> </dl>

<dt>Country / State / Closest City </dt>
<dl>🇳🇿 new zealand / / glenbrook</dl>

<dt>Dates</dt>
<div class="row">
<div class="col-lg-4">
<table class="table table-bordered">
<tr>
<td>First heard</td>
<td></td>
</tr>
<tr>
<td>Construction start</td>
<td></td>
</tr>
<tr>
<td>Operation start</td>
<td></td>
</tr>
<tr>
<td>Estimated start</td>
<td>2026Q1</td>
</tr>

<tr>
<td>Construction time</td>
<td>

</td>
</tr>
</table>
</div>
</div>

<dt>Capacity in MWh </dt>
<dl>
200


</dl>


<dt>Maximum Power in MW </dt>
<dl>100</dl>

<dt>Manufacturer </dt>
<dl>tesla </dl>

<dt>Type / Number of Packs / Cells </dt>
<dl>megapack 2XL / / </dl>

<dt>Customer / Owner / Developer</dt>
<dl> / Contact Energy / </dl>


<dt>Use case </dt>
<dl></dl>

<dt>Link to google maps satellite view</dt>
<dl><a href="http://maps.google.com/maps?z=19&t=k&q=loc:-37.203762+174.734204" target="_blank">http://maps.google.com/maps?z=19&t=k&q=loc:-37.203762+174.734204</a> </dl>

<dt>Coordinates </dt>
<dl>
-37.203762, 174.734204
<br> ✅ The site is known, coords are +/- 1 kilometer
</dl>

<div class="row">
<div class="col-lg-6">
<div style="height: 300px;" id="mapid"></div>
</div>
</div>

<dt>Notes </dt>
<dl>

location from the steal site and substation <br>

</dl>

<dt>Project website </dt>
<dl><a href="" target="_blank"> </a> </dl>

<dt> Sources </dt>
<dl>

<a href="https://x.com/SawyerMerritt/status/1807635731197702615" target="_blank">https://x.com/SawyerMerritt/status/1807635731197702615 </a> <br>

<a href="https://www.nzherald.co.nz/business/glenbrook-to-get-big-grid-scale-battery-as-contact-teams-up-with-tesla/5KULSHHUVFEWFBSXYU3G42ONEE/" target="_blank">https://www.nzherald.co.nz/business/glenbrook-to-get-big-grid-scale-battery-as-contact-teams-up-with-tesla/5KULSHHUVFEWFBSXYU3G42ONEE/ </a> <br>

<a href="https://www.pv-magazine-australia.com/2024/07/10/contact-teams-with-tesla-on-200-mwh-battery-for-nz/" target="_blank">https://www.pv-magazine-australia.com/2024/07/10/contact-teams-with-tesla-on-200-mwh-battery-for-nz/ </a> <br>

</dl>

<dt> Internal / External id </dt>
<dl>
1397 /
</dl>


<!-- if p.has_gov_data -->

<!-- if p.has_gov_data -->


</div> <!-- end container-xl-->

<!-- Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!-- leafletjs -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<!-- script to load in the project length via ajax -->
<script>
$(document).ready(function() {
$.ajax({url: "/tesla-megapack-tracker/ajax-data.json", success: function(result){
$("#project-length-tesla").html(result.project_length.tesla_str);
$("#project-length-all").html(result.project_length.all_str);
}});

// enable bootstrap tooltips everywhere
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
});


</script>



<script src="/tesla-megapack-tracker/js/batteryMap.js" crossorigin="anonymous"></script>

<script>
// if defining sth here it can be accessed in the console with summary...
// var summary = "test";

$(document).ready(function() {
// insert the data via jinja here
// just a hack to parse it, o/w the color highlighting in VS Code is messed up.
// this does not work, why?
// var projects = '';
// projects = JSON.parse(projects)
// could also have the json as static file and load it here...
var projects = [ {"construction_speed_mwh_per_month": null, "construction_time_month": null, "coords_exact": true, "coords_help_str": "\u2705 The site is known, coords are +/- 1 kilometer", "coords_hint": 2, "country": "new zealand", "csv": {"capacity_mwh": "200", "cells": "", "city": "glenbrook", "coords_hint": "2", "cost_currency": "NZD", "cost_incl_solar": "0", "cost_million": "163", "country": "new zealand", "customer": "", "date_first_heard": "", "developer": "", "estimate_mwh": "", "external_id": "", "id": "1397", "lat": "-37.203762", "link1": "https://x.com/SawyerMerritt/status/1807635731197702615", "link2": "https://www.nzherald.co.nz/business/glenbrook-to-get-big-grid-scale-battery-as-contact-teams-up-with-tesla/5KULSHHUVFEWFBSXYU3G42ONEE/", "link3": "https://www.pv-magazine-australia.com/2024/07/10/contact-teams-with-tesla-on-200-mwh-battery-for-nz/", "link4": "", "long": "174.734204", "manufacturer": "tesla", "name": "Glenbrook", "no_of_battery_units": "", "notes": "location from the steal site and substation", "owner": "Contact Energy", "power_mw": "100", "project_website": "", "start_construction": "", "start_estimated": "2026Q1", "start_operation": "", "state": "", "status": "planning", "type": "megapack 2XL", "use_case": ""}, "date_first_heard": "", "emojis": "\ud83d\udc64", "emojis_with_tooltips": "\u003cspan data-toggle=\"tooltip\" data-placement=\"top\" title=\"user data available\"\u003e\ud83d\udc64\u003c/span\u003e", "external_id": "", "go_live": "0 ~ 2026Q1", "go_live_year_int": 2026, "google_maps_link": "http://maps.google.com/maps?z=19\u0026t=k\u0026q=loc:-37.203762+174.734204", "gov": {}, "gov_history": null, "has_gov_data": false, "has_user_data": true, "heart_tooltip": "", "in_construction": false, "in_operation": false, "in_planning": true, "internal_id": "1397", "is_active": true, "is_megapack": true, "is_tesla": true, "lat": "-37.203762", "links": ["https://x.com/SawyerMerritt/status/1807635731197702615", "https://www.nzherald.co.nz/business/glenbrook-to-get-big-grid-scale-battery-as-contact-teams-up-with-tesla/5KULSHHUVFEWFBSXYU3G42ONEE/", "https://www.pv-magazine-australia.com/2024/07/10/contact-teams-with-tesla-on-200-mwh-battery-for-nz/"], "long": "174.734204", "month_disappeared": "", "mw": 100, "mwh": 200, "mwh_estimate": 0, "mwh_is_estimate": false, "name": "Glenbrook", "name_short": "Glenbrook", "no_of_battery_units": 0, "notes_split": ["location from the steal site and substation"], "owner": "Contact Energy", "start_construction": "", "start_estimated": "2026Q1", "start_operation": "", "state": "", "status": "planning", "status_class": ""}];

generateBatteryMap(projects, 'mapid', zoom_to_first_project=true);

} );
</script>

</body>
</html>

0 comments on commit bff819a

Please sign in to comment.