Skip to content

Commit 49f99bf

Browse files
author
Fabian Widmann
committed
removed print statements, updated readme
1 parent 1787a49 commit 49f99bf

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ all the parameters.
2828
- Allow the user to split queried variables from the predefined groups by the dwd to single variables.
2929
- Add distance from station to the queried point
3030
- Added Fractal support
31-
31+
- Added experimental support to find data faster
3232

3333
## Todo
3434
- Cache nearest station for one crawler task (can't be done as of now, as each variable may have other active controllers.)

src/fwidm/dwdHourlyCrawler/hourly/services/AbstractHourlyService.php

-3
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,12 @@ public function parseHourlyData(String $content, DWDStation $nearestStation, Coo
156156
$lines = explode(";eor", $content);
157157
$data = [];
158158
$startIndex = $this->binarySearch($start, $lines);
159-
print "go station=$nearestStation<br>";
160159
for ($i = (int)$startIndex; $i < count($lines); $i++) {
161160
$cols = explode(';', $lines[$i]);
162161
$date = Carbon::createFromFormat($this->getTimeFormat(), $cols[1], 'utc');
163162

164-
print $i . ": " . $date->toIso8601String() . ">>> DIFF=" . $endDate->diff($date)->h . "<br>";
165163

166164
if ($date <= $endDate && $date >= $startDate) {
167-
print "1.=".(int)($date <= $endDate)." 2.=".(int)($date >= $startDate)."<br>";
168165
$temp = $this->createParameter($cols, $date, $nearestStation, $coordinate);
169166
$data[] = $temp;
170167
} else

0 commit comments

Comments
 (0)