Notes

APC Environmental card

AP9512TH

IC1LM35Temperature Sensor
IC2LM358NDual Opamp
IC3LM78LVreg, 5V
BP1TDK CHS-UGRHumidity Sensor

AP9612

IC1ADC08348-Bit Serial I/O A/D Converter with Multiplexer Option
IC2MM74HC14NHex inverting Schmitt trigger
IC5P87C521 Controller

PCF8574 - 8-Bit I/O Expander for I2C-Bus

Retroreflective yarn

Timestamps

Convert Excel timestamp to unix time: =(EXCEL-25569)*86400

Convert unix time to Excel timestamp: =(UNIX/86400)+25569

5 hour timezone offset is (-5*3600)=18000 seconds

gnuplot.php


<?PHP
if(isset($_REQUEST["file"])) {
header('Content-type: image/png');
passthru("gnuplot ".escapeshellcmd($_REQUEST["file"]));
die();
}
$dir="/var/www/gnuplot/";
if (is_dir($dir)) {
	if ($dh = opendir($dir)) {
		while (($file = readdir($dh)) !== false) {
			$split=split("\.",$file);
			if(filetype($dir . $file)=="file" && $split[1]=="gnuplot"){
				echo "<a href=\"gnuplot.php?file=".$split[0].".gnuplot\">".$split[0]."<BR>";
			}
		}
		closedir($dh);
		}
} ?>
 
notes.txt · Last modified: 2014/11/13 10:50 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki