###eis didactic SmartHome electrical simulator###
Description:
This scripts implements a simple electrical simulator of a SmartHome, where loads (cookers,washing machines, etc),
generators (PV, wind, etc.) and electrical storages (ups, etc.) can be present in a 3-phase or 1-phase configuration.
The simulator is written in PHP without object-oriented programming since the students had only a basic knowledge of C.
This simulator is also a practical demonstrator of several computer tecnologies introduced in the course (*nix,HTTP,Ajax, etc.)
It is based on HTTP and REST approach using JSON associative array. Also an advanced interface is available using
an interactive approach similar to the BOSH technology (PHP, UDP client-server, Javascript, HTML) in order to have
the HTML interface changed in realtime when an event happens. RGraph/jquery is used for widgets.
Tested OS's:
MacOSX Mountain Lion, Ubuntu Linux 12.04
Status:
The simulator is in development, working devices can be written and tested.
Requirements:
Working on Apache2, PHP 5.2.x, myql 5.5.27
On MacosX Apache2 and PHP are already present but must be enabled and configured, while mysql must be installed.
First time installation:
- Clone the entire github directory, usually a github folder in your home directory:
MacOSX --> /Users/...yourname.../github/eis
Linux --> /home/...yourname.../github/eis - goto the eis bin directory and run the installer as root
MacOSX --> cd /Users/...yourname.../github/eis/bin
Linux --> cd /home/...yourname.../github/eis/bin
sudo ./install your_root_mysql_username your_root_mysql_password - follow installer instructions
- when successfully installed, visit http://...your_ip.../eis with a browser
Update installation:
- Clone the entire github directory in the same directory you used the first time installation:
- visit http://...your_ip.../eis with a browser and follow instructions (run installer again if requested)
System check:
If installation was correct, check the system by visiting the page http://...your_ip.../eis
Using the console write: "eis.master exec ping test 55" and press Enter.
The first lines of output should be something like these:
call OK:
Array
(
[test] => 55
)
More info:
Visit the directory "doc" inside the eis folder.