BTS Mesure BTS Mesure
NodeMCUArduinoCommuniqueGrapheTGauge
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="refresh" content="30"> <title> Courbe Temp. </title> <?php $TabT=""; // Lecture du fichier Ttab... $Ttab = fopen('Ttab.txt', 'r'); fseek($Ttab , 0); while (!feof($Ttab)) { $TabT .=fgets($Ttab, 4096); // . concaténer les chaînes.... } fclose($Ttab); ?> <script type="text/javascript" src="//www.google.com/jsapi"></script> <script type="text/javascript"> google.load('visualization', '1', {packages: ['corechart']}); </script> <script type="text/javascript"> // https://code.google.com/apis/ajax/playground/?type=visualization#line_chart function drawVisualization() { // Create and populate the data table. var data = google.visualization.arrayToDataTable([ ['Heure', 'T en C'], <?php echo $TabT; ?> ]); // Create and draw the visualization. new google.visualization.LineChart(document.getElementById('visualization')). draw(data, {curveType: "function", width: 1200, height: 1000, vAxis: {maxValue: 10}} ); } google.setOnLoadCallback(drawVisualization); </script> </head> <body> <div id="visualization" style="width: 1200px; height: 1000px;"></div> <button type="button" onclick="location.href='efface.php'">Remise a Zero</button> </body> </html>