Revision: 3326
http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3326&view=rev
Author: hemna
Date: 2010-02-17 02:27:44 +0000 (Wed, 17 Feb 2010)
Log Message:
-----------
added
Added Paths:
-----------
trunk/open2300/bin/img_wx_string.php
Added: trunk/open2300/bin/img_wx_string.php
===================================================================
--- trunk/open2300/bin/img_wx_string.php (rev 0)
+++ trunk/open2300/bin/img_wx_string.php 2010-02-17 02:27:44 UTC (rev 3326)
@@ -0,0 +1,44 @@
+#!/home/waboring/local/php5/bin/php -q
+<?php
+/**
+ * This script is used to get the text to show
+ * on the webcam image
+ *
+ * @package open2300
+ */
+
+$lib_path = realpath('../lib');
+ini_set('include_path', '.:/usr/local/lib:'.$lib_path);
+
+define('PHPHTMLLIB', realpath('../lib/external/phphtmllib'));
+$GLOBALS['path_base'] = realpath('..');
+
+// autoload function for all our classes
+require($GLOBALS['path_base'].'/lib/autoload.inc');
+
+// setup error handling and required parameters
+require($GLOBALS['path_base'].'/lib/init.inc');
+
+$GLOBALS['config']->set('uncaught_exception_output', 'text');
+
+$db = open2300DB::singleton();
+
+$ret = $db->queryBindOneRowCache("select * from weather order by datetime desc limit 0,1", array(), 5);
+//var_dump($ret);
+echo $ret->temp_out;
+exit;
+
+//first we load the last entry from the DB
+$wx = weatherDataObject::find("1=1 order by datetime desc limit 0,1");
+
+//now construct the url call
+$log->debug("remote_update: called");
+//var_dump($wx);
+$temp_out = $wx->get_temp_out();
+settype($temp_out, "float");
+$temp_out +=1;
+$temp_out -=1;
+//var_dump($temp_out);
+
+echo "$temp_out F";
+?>
Property changes on: trunk/open2300/bin/img_wx_string.php
___________________________________________________________________
Added: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|