USL LSS-100 User Manual
Page 24

LSS−100P Installation & Operation Manual
24
<Value>98.1</Value>
<Units>%</Units>
<Minimum>90</Minimum>
<Maximum>150</Maximum>
<OutsideLimits>0</OutsideLimits>
<SerialNumber>0157</SerialNumber>
<TheaterName>Obispo</TheaterName>
<TheaterNumber></TheaterNumber>
<AuditoriumNumber>1</AuditoriumNumber>
<Comments>HW Rev F</Comments>
<Firmware>140530</Firmware>
<Hardware>F</Hardware>
<IpAddress>192.168.1.153</IpAddress>
</Record>
<Record>
<RecordNum>37</RecordNum>
<DateTime>1401739149</DateTime>
<Description>Posted t
<Value>3.26e+03</Value>
<Units></Units>
<Minimum>-9e+09</Minimum>
<Maximum>9e+09</Maximum>
<OutsideLimits>0</OutsideLimits>
<SerialNumber>0157</SerialNumber>
<TheaterName>Obispo</TheaterName>
<TheaterNumber></TheaterNumber>
<AuditoriumNumber>1</AuditoriumNumber>
<Comments>HW Rev F</Comments>
<Firmware>140530</Firmware>
<Hardware>F</Hardware>
<IpAddress>192.168.1.153</IpAddress>
</Record>
</LssLogPost>
The web server can parse the XML to a database for further analysis and reporting. A simple PHP script
that appends each new LSS-100P XML report to a file and mails each report is shown below. This is a
good starting point to verify that things are working.
<?php
$PostData=file_get_contents("php://input"); // get post data into a string
file_put_contents("/tmp/PostTest.txt",$PostData,FILE_APPEND); // append post data to a
file
// Set up to mail data
$to='[email protected]';
$subject='LSS-100 Post Data';
$headers= 'From: [email protected]';
mail($to, $subject, $PostData, $headers);
?>