What is it

A simple javascript file that extracts the current Egyptian power grid consumption status from http://egyptera.org/ar/ that can be embedded into any webpage

Inspired by Mosab Ahmad's project

How to use

First, reference jquery in your page

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

Then either download the javascript file, include it in your website and reference it in your page, or just add

<script src="http://kashwaa.github.io/loadmeter/powermeter.js"></script>

Add an empty div in your page where you want the meter to appear

<div id="power"></div>

Finally add a call to powerMeter function after your document is loaded
powerMeter takes 3 arguments, the name of the div to display the meter in, the width of the meter and the refresh rate in seconds

  <script type="text/javascript">

This would put the meter in div "power", the meter will be 150 pixels wide and will refresh every 30 seconds