Energy Display Scripts Outline version 1.0
- Java scripts harvest data directly from Modbus
- Perl scripts collects this data and put it in the Postgress database “energy” under the table “electrical_energy”
- electrical_energy attributes:
- area – what building.
- preal – kW hours for that instant.
- date – date of harvest.
- A final perl script (display/production|development/js-file-gen.pl) accesses this data and generates a .png graph using the Google graph API
- This script takes one parameter for either the production or development branches.
- The images generated (day, week, month, year) are put in a html frame on a page to display the data.
- This page refreshes every 5 minutes