<?php
// Only XML document URI
$station =
new Station('all-sensors.xml');
// OR With assigned sensors
$sensors = array('thb0', 'th0', 'rain0', 'wind0');
// OR
$sensors = array(
'S_INSIDE' => 'thb0',
'S_OUTSIDE'=> 'th0',
'S_RAIN' => 'rain0',
'S_WIND' => 'wind0');
$station =
new Station('all-sensors.xml', $sensors);
// OR with assigned units
$units = array('local', 'hpa', 'c', 'mm', 'kmh');
// OR
$units = array(
'U_DATE' => 'local',
'U_PRES' => 'hpa',
'U_TEMP' => 'c',
'U_RAIN' => 'mm',
'U_WIND' => 'kmh');
$station =
new Station('all-sensors.xml', $sensors, $units);