add_hint("external_line1",$lines[0]); $item->add_hint("external_line2",$lines[1]); $item->add_hint("external_line3",$lines[2]); $item->add_hint("external_line4",$lines[3]); $data_time = time(); } else { warn("ExternalScript ReadData: Not enough lines read from external script ($i read, 4 expected) [WMEXT02]\n"); } } } debug ("ExternalScript ReadData: Returning (".($data[IN]===NULL?'NULL':$data[IN]).",".($data[OUT]===NULL?'NULL':$data[OUT]).",$data_time)\n"); return( array($data[IN], $data[OUT], $data_time) ); } } // vim:ts=4:sw=4: ?>
weathermap |
Subversion Repositories: |
Rev 1 | Rev 85 |
---|