diff --git a/recent b/recent
index b046821..7b183ec 100644
--- a/recent
+++ b/recent
@@ -1 +1 @@
-Temperatur: 13.43 C
Luftfeuchtigkeit: 89.5 %
Helligkeit: 0.01 Lux
Luftdruck: 982.473mbar
\ No newline at end of file
+Temperatur: 10.37 C
Luftfeuchtigkeit: 70.2 %
Helligkeit: 0.01 Lux
Luftdruck: 981.66mbar
\ No newline at end of file
diff --git a/update.php b/update.php
index 3f06e08..6c4eaa2 100644
--- a/update.php
+++ b/update.php
@@ -7,11 +7,17 @@ $db=new DBLib();
$db=new DBLib($database['host'],$database['user'],$database['password'],$database['database']);
+function markerFile($file="newData"){
+ if (! file_exists($file)){
+ file_put_contents($file,"");
+ }
+}
+
$dir=scandir('data');
$temp=$humi=$ambi=$baro=0;
foreach($dir as $file){
if(validFile($file)){
- file_put_contents('newData',"");
+ markerFile();
echo "parsing file: ".$file."\n";
importLogfiletoDatabase('data/'.$file);
//recent records on frontpage: