Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
<meta charset="utf-8">
<title>Terms of Service - OpenESPI Third Party</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
Expand All @@ -16,12 +17,12 @@
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container">
<a class="navbar-brand" href="/">
<a class="navbar-brand" th:href="@{/}">
<i class="bi bi-lightning-charge-fill"></i>
OpenESPI Third Party
</a>
<div class="navbar-nav ms-auto">
<a class="nav-link" href="/">Home</a>
<a class="nav-link" th:href="@{/}">Home</a>
</div>
</div>
</nav>
Expand All @@ -31,16 +32,16 @@
<div class="col-lg-8 mx-auto">
<h1>Terms of Service</h1>
<p class="lead">Green Button Third Party Reference Implementation</p>

<div class="card">
<div class="card-body">
<h3>1. Acceptance of Terms</h3>
<p>By accessing and using this Green Button Third Party reference implementation, you accept and agree to be bound by the terms and provision of this agreement.</p>

<h3>2. Use License</h3>
<p>This software is provided under the Apache License, Version 2.0. You may obtain a copy of the License at:</p>
<p><a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a></p>

<h3>3. Data Privacy and Security</h3>
<p>This reference implementation demonstrates Green Button data exchange protocols. In a production environment:</p>
<ul>
Expand All @@ -49,20 +50,20 @@ <h3>3. Data Privacy and Security</h3>
<li>Customer consent is required before accessing their energy usage data</li>
<li>Data retention policies must comply with local regulations</li>
</ul>

<h3>4. Green Button Compliance</h3>
<p>This implementation follows the Green Button standard as defined by the North American Energy Standards Board (NAESB) REQ.21.</p>

<h3>5. Disclaimer</h3>
<p>This is a reference implementation for demonstration and development purposes. It should not be used in production without proper security hardening and compliance verification.</p>

<h3>6. Contact Information</h3>
<p>For more information about Green Button, visit: <a href="http://www.greenbuttondata.org" target="_blank">www.greenbuttondata.org</a></p>
</div>
</div>

<div class="mt-4">
<a href="/" class="btn btn-primary">
<a th:href="@{/}" class="btn btn-primary">
<i class="bi bi-arrow-left"></i>
Back to Home
</a>
Expand Down Expand Up @@ -90,4 +91,4 @@ <h5>Green Button Alliance</h5>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>

</body>
</html>
</html>
31 changes: 17 additions & 14 deletions openespi-thirdparty/src/main/resources/templates/UsagePolicy.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
<meta charset="utf-8">
<title>Usage Policy - OpenESPI Third Party</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
Expand All @@ -16,12 +17,12 @@
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container">
<a class="navbar-brand" href="/">
<a class="navbar-brand" th:href="@{/}">
<i class="bi bi-lightning-charge-fill"></i>
OpenESPI Third Party
</a>
<div class="navbar-nav ms-auto">
<a class="nav-link" href="/">Home</a>
<a class="nav-link" th:href="@{/}">Home</a>
</div>
</div>
</nav>
Expand All @@ -31,7 +32,7 @@
<div class="col-lg-8 mx-auto">
<h1>Usage Policy</h1>
<p class="lead">Green Button Third Party Data Usage Guidelines</p>

<div class="card">
<div class="card-body">
<h3>1. Data Collection and Use</h3>
Expand All @@ -42,7 +43,7 @@ <h3>1. Data Collection and Use</h3>
<li>Generating reports and visualizations of energy consumption</li>
<li>Enabling integration with third-party energy management systems</li>
</ul>

<h3>2. Data Protection</h3>
<p>We implement industry-standard security measures to protect your energy data:</p>
<ul>
Expand All @@ -51,23 +52,23 @@ <h3>2. Data Protection</h3>
<li>Access controls and audit logging</li>
<li>Regular security assessments and updates</li>
</ul>

<h3>3. Data Sharing</h3>
<p>Your energy usage data is never shared with third parties without your explicit consent, except:</p>
<ul>
<li>When required by law or legal process</li>
<li>For technical support purposes (with anonymized data)</li>
<li>With your explicit written permission</li>
</ul>

<h3>4. Data Retention</h3>
<p>Energy usage data is retained only as long as necessary to provide services to you:</p>
<ul>
<li>Active customer data: retained while service is active</li>
<li>Historical data: retained for 7 years for analysis purposes</li>
<li>Anonymized aggregated data: may be retained indefinitely for research</li>
</ul>

<h3>5. Customer Rights</h3>
<p>As a customer, you have the right to:</p>
<ul>
Expand All @@ -77,22 +78,24 @@ <h3>5. Customer Rights</h3>
<li>Withdraw consent for data processing</li>
<li>Export your data in a standard format</li>
</ul>

<h3>6. Compliance</h3>
<p>This implementation complies with:</p>
<ul>
<li>Green Button standard (NAESB REQ.21)</li>
<li>OAuth2 and OpenID Connect specifications</li>
<li>Industry data protection best practices</li>
</ul>

<h3>7. Contact</h3>
<p>For questions about this usage policy, contact: <a href="mailto:support@greenbuttonalliance.org">support@greenbuttonalliance.org</a></p>
<p>For questions about this usage policy, contact:
<a href="mailto:support@greenbuttonalliance.org">support@greenbuttonalliance.org</a>
</p>
</div>
</div>

<div class="mt-4">
<a href="/" class="btn btn-primary">
<a th:href="@{/}" class="btn btn-primary">
<i class="bi bi-arrow-left"></i>
Back to Home
</a>
Expand Down Expand Up @@ -120,4 +123,4 @@ <h5>Green Button Alliance</h5>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>

</body>
</html>
</html>
13 changes: 7 additions & 6 deletions openespi-thirdparty/src/main/resources/templates/error.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
<meta charset="utf-8">
<title>Error - OpenESPI Third Party</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
Expand All @@ -16,7 +17,7 @@
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container">
<a class="navbar-brand" href="/">
<a class="navbar-brand" th:href="@{/}">
<i class="bi bi-lightning-charge-fill"></i>
OpenESPI Third Party
</a>
Expand All @@ -32,16 +33,16 @@ <h1 class="mt-3" th:text="${status} ?: 'Error'">Error</h1>
<p class="lead text-muted" th:text="${error} ?: 'An unexpected error occurred'">
An unexpected error occurred
</p>

<div class="mt-4" th:if="${message}">
<div class="alert alert-danger" role="alert">
<strong>Error Details:</strong>
<span th:text="${message}"></span>
</div>
</div>

<div class="mt-4">
<a href="/" class="btn btn-primary">
<a th:href="@{/}" class="btn btn-primary">
<i class="bi bi-house"></i>
Return to Home
</a>
Expand Down Expand Up @@ -74,4 +75,4 @@ <h5>Green Button Alliance</h5>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>

</body>
</html>
</html>
Loading