From c2d48c0082cdeb38eff3a3f8eb68ae7758fa4439 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 18 Apr 2013 19:55:37 +0200 Subject: fix timezone handling in js --- datastore-leveldb/bin/insert_testdata.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'datastore-leveldb/bin') diff --git a/datastore-leveldb/bin/insert_testdata.py b/datastore-leveldb/bin/insert_testdata.py index d1fd74a..6ea1180 100644 --- a/datastore-leveldb/bin/insert_testdata.py +++ b/datastore-leveldb/bin/insert_testdata.py @@ -10,7 +10,12 @@ s = ["heizkreisregler9.solarDaten.tempKollektor", MINUTE = 1000 * 60 DAY = MINUTE * 60 * 24 NOW = long(time.time()*1000) -for i in range(NOW-14*DAY, NOW, MINUTE): + +FROM=NOW-DAY*30 +TO=NOW +STEP=MINUTE + +for i in range(FROM,TO,STEP): for j,sensor in zip(range(len(s)),s): x = (float(i)/DAY)+j requests.put("http://localhost:8080/api/value/"+sensor+"/"+str(i), -- cgit v1.2.1