Get second-to-last value from influxdb to work around empty time buckets

5 jobs for 2018.12 in 2 minutes and 22 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Static Test
passed #22653
docs-test

00:00:44

passed #22651
pylint

00:00:54

passed #22652
unittests

00:00:49

14.0%
 
  Build
passed #22654
images

00:00:33

 
  Integration Test
passed #22655
api-test

00:00:55