Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Sep 20, 2023
1 parent 9154eb9 commit f5a903a
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Filter and view energy data in charts and tables.
[**Assets**](assets.md)<br />
Manage tracked assets. Create groups of assets for easier reporting.

[**Data**](data.md)<br />
[**Data Sources**](data.md)<br />
Add new energy data from supporting input files.

[**Reports**](reports.md)<br />
Expand Down
9 changes: 8 additions & 1 deletion docs/assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@

# Assets

![Assets](images/assets.png)
![Assets](images/assets.png)

**Assets** describe any entity that consumes energy. Arenas, administrative buildings,
and parks are all assets that may consume multiple energy types,
like electricity, natural gas, and water. EMILE can track multiple energy types
on each of the assets it tracks.

**Asset Groups** are a way to group together assets for the purpose of reporting on them together.
14 changes: 13 additions & 1 deletion docs/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,16 @@

# EMILE Dashboard

![Dashboard](images/dashboard.png)
![Dashboard](images/dashboard.png)

EMILE provides limited charting options, filtered by:

- Asset, Asset Category, or Asset Group.
- Start Date.
- End Date.

The data for each chart can be exported using the corresponding "Export" button.

Note that selecting a large number of assets and a large time range
can cause performance issues. For more complex reporting, it is recommended to export the data
into a reporting application like Microsoft Excel or Microsoft Power BI.
34 changes: 33 additions & 1 deletion docs/dataSources.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,36 @@

# Data Sources

![Data](images/data-pendingFiles.png)
![Data Sources](images/data-pendingFiles.png)

**Data Sources** are the places where energy data comes from.

Uploaded data files can be the following types.

- CSV files.
- Microsoft Excel files.
- [Green Button Download My Data® (DMD)](https://www.greenbuttonalliance.org/green-button-download-my-data-dmd) XML files.

Only files with defined parsers can be uploaded.
In the case of CSV and Excel files, those parsers are defined in EMILE's config file.

![Data Subscriptions](images/data-subscriptions.png)

EMILE also has the ability to receive data automatically using the
[Green Button Connect My Data® (CMD)](https://www.greenbuttonalliance.org/green-button-connect-my-data-cmd) standard.

⭐ Note that before EMILE can connect to your utility's servers,
you need to go through a third party application registration process
with the utility. Each utility provider has a unique registration
process, but once registered, should function similarly.

Tested Green Button® CMD implementations include:

- [PUC Services provided through Utility API](https://greenbutton.ssmpuc.com/).

For more information on tested implementations, see the
[Green Button® Subscriber for Node repository](https://github.com/cityssm/node-green-button-subscriber).

## Trademarks

® GREEN BUTTON is a registered trademark owned by Departments of the U.S. Government.
Binary file modified docs/images/data-pendingFiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/data-subscriptions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public-typescript/adminDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
rowElement.dataset.fileName = backupFile.fileName;
rowElement.innerHTML = `<td>${backupFile.fileName}</td>
<td>${backupFile.lastModifiedTime}</td>
<td class="has-text-right">${backupFile.sizeInMegabytes} MB</td>
<td class="has-text-right">${backupFile.sizeInMegabytes.toFixed(2)} MB</td>
<td>
<div class="field is-grouped">
<div class="control">
Expand Down
2 changes: 1 addition & 1 deletion public-typescript/adminDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ declare const cityssm: cityssmGlobal

rowElement.innerHTML = `<td>${backupFile.fileName}</td>
<td>${backupFile.lastModifiedTime}</td>
<td class="has-text-right">${backupFile.sizeInMegabytes} MB</td>
<td class="has-text-right">${backupFile.sizeInMegabytes.toFixed(2)} MB</td>
<td>
<div class="field is-grouped">
<div class="control">
Expand Down
2 changes: 1 addition & 1 deletion public/javascripts/adminDatabase.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions views/data.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
</div>
<% if (Object.keys(greenButtonSubscriptions).length > 0) { %>
<div class="tab-content is-hidden" id="tab--subscriptions">
<h2 class="title is-4">Green Button Connect My Data</h2>
<h2 class="title is-4">Green Button® Connect My Data</h2>
<table class="table is-fullwidth is-striped is-fade-hoverable has-sticky-header">
<thead>
Expand Down Expand Up @@ -139,11 +139,11 @@
<%- include('_footerA'); -%>
<script>
exports.Emile.assets = <%- JSON.stringify(assets) %>;
exports.Emile.assets = <%- JSON.stringify(assets ?? []) %>;
exports.pendingFiles = <%- JSON.stringify(pendingFiles) %>;
exports.processedFiles = <%- JSON.stringify(processedFiles) %>;
exports.parserClassesAndConfigurations = <%- JSON.stringify(parserClassesAndConfigurations) %>;
exports.pendingFiles = <%- JSON.stringify(pendingFiles ?? []) %>;
exports.processedFiles = <%- JSON.stringify(processedFiles ?? []) %>;
exports.parserClassesAndConfigurations = <%- JSON.stringify(parserClassesAndConfigurations ?? []) %>;
</script>
<script src="<%= urlPrefix %>/javascripts/data.min.js"></script>
Expand Down

0 comments on commit f5a903a

Please sign in to comment.