diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2013-04-18 19:55:37 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2013-04-18 19:55:37 +0200 |
commit | c2d48c0082cdeb38eff3a3f8eb68ae7758fa4439 (patch) | |
tree | a73982922fc06779a2f630e7ead2487f90b921e1 /datastore-leveldb/bin/insert_testdata.py | |
parent | 87f4134201f0a0840415aab531e32ca714bc7a36 (diff) | |
download | ebus-alt-c2d48c0082cdeb38eff3a3f8eb68ae7758fa4439.tar.gz ebus-alt-c2d48c0082cdeb38eff3a3f8eb68ae7758fa4439.zip |
fix timezone handling in js
Diffstat (limited to 'datastore-leveldb/bin/insert_testdata.py')
-rw-r--r-- | datastore-leveldb/bin/insert_testdata.py | 7 |
1 files changed, 6 insertions, 1 deletions
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), |