summaryrefslogtreecommitdiff
path: root/ebus-datastore/testfiles/test.py
blob: 506439cb0ce9f11e935da34c488c1eb134525943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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))