Jaap Struyk wrote:
> On 31-05-09 17:31, Brian Fahrlander wrote:
>
>> This is all new for me;  can ya throw me a rope?
>
> I don't know about the php module but ownet.php is a frontend for 
> owserver, I attached an example piece of code I was working on...
>
> ------------------------------------------------------------------------
>
   I need the code that goes *** HERE***

    Something like "include ("path/to/php/module");"   or similar.
> read("/1D.E4D90D000000/counters.B",$parse_value=false)); 
> $rpm_eng=($ow->read("/1D.E4D90D000000/counters.A",$parse_value=false)); 
> $temp_cyl_1=($ow->read("/30.03DD95110000/typeK/temperature")); 
> $temp_cyl_2=($ow->read("/30.5FDF95110000/typeK/temperature")); 
> $temp_cyl_3=($ow->read("/30.4CE495110000/typeK/temperature")); 
> $temp_cyl_4=($ow->read("/30.08DD95110000/typeK/temperature")); 
> $temp_trb_air=($ow->read("/30.ADDD95110000/typeK/temperature")); 
> $pres_trb_air=($ow->read("/26.61D1BC000000/VAD")); $temp_eng_oil=0; 
> $pres_eng_oil=($ow->read("/26.61CDBC000000/VAD")); // Calculations 
> start here... list($usec, $sec) = explode(' ', microtime()); 
> $script_start = (float) $sec + (float) $usec; $data[rpm_eng]=$rpm_eng; 
> $data[temp_cyl_1]=round($temp_cyl_1, 0); 
> $data[temp_cyl_2]=round($temp_cyl_2, 0); 
> $data[temp_cyl_3]=round($temp_cyl_3, 0); 
> $data[temp_cyl_4]=round($temp_cyl_4, 0); 
> $data[temp_trb_air]=round($temp_trb_air, 0); 
> $pres_trb_air=(-0.5*($pres_trb_air*$pres_trb_air)+0.2*$pres_trb_air+7)*100; 
> $data[pres_trb_air]=round($pres_trb_air, 2); 
> $data[temp_eng_oil]=round($temp_eng_oil, 0); 
> $pres_eng_oil=(0.84*($pres_eng_oil*$pres_eng_oil)+-0.2*$pres_eng_oil+0.5)*100;
>  
> $data[pres_eng_oil]=round($pres_eng_oil, 2); list($usec, $sec) = 
> explode(' ', microtime()); $script_end = (float) $sec + (float) $usec; 
> $elapsed_time = round($script_end - $script_start, 5); // Print the 
> array in the console... print_r ($data); echo $elapsed_time . "\n";
Ive seen the 
"$rpm_eng=($ow->read("/1D.E4D90D000000/counters.A",$parse_value=false));" 
line before, and soon it will be very useful to me...but I need to know 
how to tell PHP to load our Ownet or Ow-something module.  I intend to 
use the owserver on the backend, so as to remove owfs and fuse...

    Thanks!

-- 
 ------------------------------------------------------------------------
 Brian Fahrländer                 Christian, Conservative, and Technomad
 Evansville, IN                                                         
 ICQ: 5119262                         AOL/Yahoo/GoogleTalk: WheelDweller
 ------------------------------------------------------------------------


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to