Web Interface
I have finally uploaded the /var/www directory to the reefuge ftp site.
In the past I did have trouble getting the one cgi file to run and setup apache2. However I have cleaned up the directory and file locations for the site and hopefully its alot easier. I just did a standard apache2 apt-get install, just left apache2 with its default virtual sites and only fixed up the server name as per the following
http://simonthepiman.com/how_to_setup_windows_file_server.php I did not install anything else, this site does NOT need php or mysql just apache2 so keep it simple.
The ftp site has a directory www rev 0 -original
If you place all the files and subdirectories in /var/www you are nearly done. There is one directory which is called usr_lib_cgi-bin there is two cgi files in this directory. One called test.cgi and the other aquatrend.cgi. You need to move these files into /usr/lib/cgi-bin I would try the test cgi file out first just to make sure Apache can run cgi files. For the cgi test in your browser type in xxx.xxx.xxx.xxx/cgi-bin/test.cgi That should run the test cgi file. Other than that it should be OK. /var/log/apache2/error.log will assist if something does not work. You may have trouble with file permissions however you should be able to work it out. The web site is very easy now with only a few files required.
Installing these files you should have a fully functional front end. The subdirectory already has an rrd database with data so you can pull up trends etc.
What is not uploaded is the script to gather data and populate rrd database and the text file aqua_tag.txt. You should be able to manually change aquatag.txt values and whilst the web site is in a browser press scan and the gauges will update.
You will need an ftp explorer as the files are not zipped and if you go into the link it will try and 1/2 load index.html and you will not see any files.
you only need this backup of my RPi directory place the contents in /var/www "www rev 0 -original"
http://raspberry.lavapixel.com
I just use the firefox addin (fire ftp) seems to work ok. You should not need a password
The web file does not quite display the slider bar correctlty click on the zoom and it displays, not sure whats this about.
I do plan to replace the dateslider with simple radio buttons 1 day 3 days 7 days or 1 month. and then have a separate page using the date slider function. However datslider does work in this site.