Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ok1cdj

Pages: [1]
1
Hi, you can use PHP and parse html pages. I'm using this way to read Analog input for rotator position and calibration.
// file rotator.php
$kalibrace=-10; //calibration
$dom = new domDocument;
loadHTMLFile('http://10.20.0.202/adin.egi');
$tables=$dom->getElementsByTagName('table');
$rows = $tables->item(0)->getElementsByTagName('tr');
$i=0;
foreach ($rows as $row)
     {
      if($i==4){
      $cols = $row->getElementsByTagName('td');
      $poloha=$cols->item(1)->nodeValue;
      }
      $i++;
     }
echo $poloha+$kalibrace; // print antenna position


This way you can get any info from webswitch.

73 Ondra OK1CDJ



Pages: [1]