Solar Panel Project
- Raspberry PI
- Fixed IP: Static or DHCP Registered.
Port 80 open for Fixed IP on Edge FW.
- Packages Needed...
- http
- cron
- Script to prepare for download...
/bin/mv <file.csv> <downloadfile.csv>
/bin/touch <file.csv>
- Job to prepare download csv file...
OS file locking should ensure complete file move,
But wise to check and confirm first and last lines have all fields.
- AWS BingDev:watsolar
- Packages/functions Needed...
- remote file upload.
- remote DB connection.
- color graph creation.
- Test with wget to confirm connection and upload success.
- PHP SCRIPT One:
- Connect to raspbery PI and get csv file
file_get_contents()
- Do remote connection to AWS RDS and load file into database
$mysqli=new mysqli("bingdev-db.binghamton.edu","watsonsolar",<password>","watsonsolar");
- clean up
- crontab...
- Job to download csv file from Raspberry entry added.
- PHP SCRIPT two:
- Connect to RDS DB.
- Present Data in Graph form.
- Present Data in other format.
- Other.
Tara Dhakal
Daniel J Sidoti

Wed Feb 28 12:32:16 EST 2018