Automated Reptile Control System(webserver, Data Logging, RTC and much more)

barbudancristian:
You have right with Firefox work fine. Please tell me I try to translate the webpage in my language and I deal with strange issue.
You make for View Recorded Data one HTML. I try to translate it in htmldata.h changing the code into this:
"<Table border = "1">"
""
"<td align = "center">Date"
"<td align = "center">Time"
"<td align = "center">Temperatura 1"
"<td align = "center">Temperatura 2"
"<td align = "center">Temperatura 3"
"<td align = "center">Medie Temperatura Ambient"
"<td align = "center">Umiditate Medie"
"<td align = "center">Releu 1"
"<td align = "center">Releu 2"
"<td align = "center">Releu 3"
"<td align = "center">Releu 4"
"<td align = "center">Releu 5"
"<td align = "center">Releu 6"
"";
After I re-upload the code, the HTML report is no changed on table header showing me like the original one.
Please tell me where is the mistake.

Thanks

to translate, you should not have to edit the htmldata.h file, but the webserver file.

look for this code:

if (data_log_enabled == 1 && ((SDUSEDSPACE() / volumesize) * 100) <99 && abs(((second + (minute*60) + (hour*3600)) - last_time_data_saved)) >= data_log_period){//is data logging enabled by the user and there is space available on the card?
       last_time_data_saved = (second + (minute*60) + (hour*3600));
       char newfile[12] = "";//variable for the log file name
       sprintf(newfile,"%.2d%.2d%.2d.htm", month, dayOfMonth, year);//generate the file name in the followin format "010513.htm" for a file created on January 13th, 2013
       if (counter != dayOfMonth){//if the day is a new day, then we need to add the header information to the log file
         counter = dayOfMonth;//set the counter to the current day so the system knows we have gon through this code before until the next day
         if (!file.open(root,newfile, O_READ)){//does the file already exist?
           file.open(root,newfile , O_CREAT | O_APPEND | O_WRITE); // no the file does not exist, lets create the file
           wdt_reset();
           //add the header information to the log file
           file.print(F("<Table border = \"1\">"
			"<tr>"
				"<td align = \"center\">Date</td>"
				"<td align = \"center\">Time</td>"
				"<td align = \"center\">Cold Side Ground Temperature</td>"
				"<td align = \"center\">Middle Ground Temperature</td>"
				"<td align = \"center\">Hot Side Ground Temperature</td>"
				"<td align = \"center\">Average Ambient Temperature</td>"
				"<td align = \"center\">Average Humidity</td>"
				"<td align = \"center\">Cold Side Ground Heater Status</td>"
				"<td align = \"center\">Middle Ground Heater Status</td>"
				"<td align = \"center\">Hot Side Ground Heater Status</td>"
				"<td align = \"center\">Humidifier Status</td>"
				"<td align = \"center\">Heat Lamp Status</td>"
				"<td align = \"center\">UV Light Status</td>"
			"</tr>"));
            file.close();
            wdt_reset();
         }else{
           //yes the file exists, close the file and move on
           file.close();
           wdt_reset();
         }
       }else{
         //we hae already created the file, now we need to append the log data to it as the headers are already written to it. 
         file.open(root,newfile , O_APPEND | O_WRITE); // Tested OK
         wdt_reset();
         file.print(F("<tr>"));
         file.print(F("<td align = \"center\">"));
         sprintf(newfile, "%.2d/%.2d/%.2d", month, dayOfMonth, year);
         file.print(newfile);
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         sprintf (newfile, "%.2d:%.2d:%.2d", hour, minute, second);
         file.print(newfile);
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         file.print(cold_side_temp_whole);
         file.print(".");
         file.print(cold_side_temp_fract);
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         file.print(middle_temp_whole);
         file.print(".");
         file.print(middle_temp_fract);
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         file.print(hot_side_temp_whole);
         wdt_reset();
         file.print(".");
         file.print(hot_side_temp_fract);
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         file.print((((float)ambient_temp_2_whole + (float)ambient_temp_1_whole + ((float)ambient_temp_2_fract / 100) + ((float)ambient_temp_1_fract / 100))/2));
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         file.print(RH);
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         if (cold_side_status == 1){
           file.print(F("ON"));
         }else{
           file.print(F("OFF"));
         }
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         wdt_reset();
         if (middle_status == 1){
           file.print(F("ON"));
         }else{
           file.print(F("OFF"));
         }
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         if (hot_side_status == 1){
           file.print(F("ON"));
         }else{
           file.print(F("OFF"));
         }
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         if (humidifier_status == 1){
           file.print(F("ON"));
         }else{
           file.print(F("OFF"));
         }
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         if (heat_lamp_status == 1){
           file.print(F("ON"));
         }else{
           file.print(F("OFF"));
         }
         file.print(F("</td>"));
         file.print(F("<td align = \"center\">"));
         if (UV_Light_status == 1){
           file.print(F("ON"));
         }else{
           file.print(F("OFF"));
         }
         file.print(F("</td>"));
         file.print("</tr>");
         file.close(); 
         wdt_reset();
       }
     }

and edit the table header entries there. i was going to add that to the htmldata.h file, but never implemented it :cold_sweat: