<?php
// Instance Sensor object
$sensors = array('thb0', 'th0', 'rain0', 'wind0');
$units = array('local', 'hpa', 'c', 'mm', 'kmh');
$station =
new Station('all-sensors.xml', $sensors, $units);
// Get station attributes
echo $station->sensors->inside; // Return thb0
echo
$station->units->date; // Return local
// Get weather station values
// Short tags:
echo $station->actual_outside_temp // Return actual temperature of the outside sensor in the units defined in the Station constructor
echo $station->year1_total_rain // Return total rain of the actual year in the units defined in the Station constructor
// Long tags:
echo $station->actual_th0_temp_c // Return actual temperature of the th0(outside) sensor in degrees Celsius
echo $station->year1_rain0_total_mm // Return total rain of the actual year in mm