From d58d7bcb3389d6213b2c4545085149e2c75c6f88 Mon Sep 17 00:00:00 2001 From: auxlife Date: Tue, 21 Aug 2018 13:42:24 -0700 Subject: [PATCH] Update dbload.php --- dbload.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dbload.php b/dbload.php index 40a1311..89e8040 100644 --- a/dbload.php +++ b/dbload.php @@ -14,8 +14,8 @@ function RandomString($Length) } return implode($randstring); } -rename("v1/dexcom.data" , "v1/data.old"); -$file = file_get_contents("v1/data.old"); +rename("api/v1/dexcom.data" , "api/v1/data.old"); +$file = file_get_contents("api/vvv1/data.old"); $file = str_replace('[','',$file); $file = explode("]",$file); $json = array(); @@ -71,7 +71,7 @@ function RandomString($Length) echo InsertValue($entry["dateString"], $entry["type"], $entry["mbg"] , '"payload":{"subType":"manual","time":"'.GetUTCTime($entry["dateString"]).'","timezoneOffset":'.GetUtcOffset().',"type":"smbg","units":"mmol/L","value":'.ConvertToMmol($entry["mbg"]).'}'); } DisconnectDB(); -rename("v1/data.old", "v1/olddata/".RandomString(12).".".RandomString(4)); +rename("api/v1/data.old", "api/v1/olddata/".RandomString(12).".".RandomString(4)); /* GetDeviceTime($entry["dateString"]) */ @@ -82,4 +82,4 @@ function RandomString($Length) //'"payload":{"internalTime":"'.GetDeviceTime($entry["dateString"]).'","noiseMode":"Clean","trend":"'. $entry["direction"].'","value":'.ConvertToMmol($entry["sgv"]).'}' //"payload":{"subType":"manual","time":"'.GetUTCTime($entry["dateString"]).'","timezoneOffset":'.GetUtcOffset().',"type":"smbg","units":"mmol/L","value":'.ConvertToMmol($entry["sgv"]).'} -?> \ No newline at end of file +?>