- 'id' => ($sessionId = $session->getId()),
- 'date' => $sessionDate,
- 'begin' => $sessionBegin,
- 'end' => $sessionEnd,
- #'begin' => new \DateTime($session->getDate()->format('Y-m-d')."\t".$session->getBegin()->format('H:i:sP')),
- #'end' => (new \DateTime($session->getDate()->format('Y-m-d')."\t".$session->getBegin()->format('H:i:sP')))->add(new \DateInterval($session->getLength()->format('\P\TH\Hi\Ms\S'))),
- #'length' => $session->getLength(),
- 'created' => $session->getCreated(),
- 'updated' => $session->getUpdated(),
- 'title' => $this->translator->trans('Session %id%', ['%id%' => $sessionId]),
+ 'id' => $id,
+ 'date' => $session['date'],
+ 'begin' => $session['begin'],
+ 'start' => $session['start'],
+ 'length' => $session['length'],
+ 'stop' => $session['stop'],
+ 'rainfall' => $session['rainfall'] !== null ? $session['rainfall'].' mm' : $session['rainfall'],
+ 'rainrisk' => $session['rainrisk'] !== null ? ($session['rainrisk']*100).' %' : $session['rainrisk'],
+ 'realfeel' => $session['realfeel'] !== null ? $session['realfeel'].' °C' : $session['realfeel'],
+ 'realfeelmin' => $session['realfeelmin'] !== null ? $session['realfeelmin'].' °C' : $session['realfeelmin'],
+ 'realfeelmax' => $session['realfeelmax'] !== null ? $session['realfeelmax'].' °C' : $session['realfeelmax'],
+ 'temperature' => $session['temperature'] !== null ? $session['temperature'].' °C' : $session['temperature'],
+ 'temperaturemin' => $session['temperaturemin'] !== null ? $session['temperaturemin'].' °C' : $session['temperaturemin'],
+ 'temperaturemax' => $session['temperaturemax'] !== null ? $session['temperaturemax'].' °C' : $session['temperaturemax'],
+ 'created' => $session['created'],
+ 'updated' => $session['updated'],
+ 'title' => $this->translator->trans('Session %id%', ['%id%' => $id]),