import time import ebus.datastore d = ebus.datastore.Datastore("datastore-data",readonly=True) start = long(time.time()-60*60*5)*1000 end = long(time.time())*1000 start = 1364030373029 end = 1364116773029 data = d.get_range_n("heizkreisregler9.solarDaten.tempKollektor", start, end, 200) print len(list(data))