Welcome to the
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 |
|
< 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) |