Welcome to the NYU Green Grant Electricity Monitoring Project
Project lead: Jeffrey LeBlanc, Interactive Telecommunications Program


About

This project investigates the use of networked electricity meters to help educate and inform the University Community on energy consumption, and serve as a tool for NYU Sustainability Initiatives.

Embedding data and graphs on a website

Each monitor's data stream will be saved on a webdatabase. You can include graphs and data on any website as follows.

Current Data
The database stores data every 10 seconds for the past 3 hours. Here is an example graph:

This graph can be included in a page by placing the following php snippet in your page:
< get("current_graph.php?id=current_00"); >
where 00 would be replaced with the number of the monitor

Here is an example page with graphs and data: current page


Historical Data
The database stores data every 5 minutes for all past time. Here is an example graph:

This graph can be included in a page by placing the following php snippet in your page:
< get("history_graph.php?id=history_XX&num_days=NUM&start_date='YYYY-MM-DD'); >
where XX would be replaced with the number of the monitor
where NUM would be replaced by how many days you would like to graph (minimum of 1)
where 'YYYY-MM-DD'would be replaced by the last date of the sequence (Optional, if not included, starts from today)

Here is an example page with graphs and data: history page from present
Here is an example page with graphs and data: history page from specific date