Added README and LICENSE, moved test file to testing

This commit is contained in:
2014-07-27 18:53:14 +02:00
parent 75e20d8481
commit b9e6fc57c3
4 changed files with 37 additions and 1 deletions

View File

@@ -124,7 +124,7 @@ if (!preg_grep("/^$district$/", $availDistricts))
// Retrive the data
//$data = file_get_contents("smhi_alla_varningar.xml"); //For testing purposes
//$data = file_get_contents("testing/smhi_alla_varningar.xml"); //For testing purposes
$data = shell_exec("curl -s http://www.smhi.se/weatherSMHI2/varningar/smhi_alla_varningar.xml");
// Regex the area (1st paranthesis is area, 2nd is warning class, 3rd is warning msg)