Skip to content

Commit

Permalink
Added a fix time period for last value.
Browse files Browse the repository at this point in the history
Signed-off-by: chanhoonseng <[email protected]>
  • Loading branch information
chanhoonseng committed Sep 22, 2016
1 parent 3e2864e commit cb6679c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import datetime
from shutil import copyfile
from time import gmtime, strftime
import time


import tornado.escape
Expand Down Expand Up @@ -86,10 +87,13 @@ def fetchDataADEI():
return

cache_data = {}
print time.time()
curtime = int(time.time())
time_range = str((curtime-3600)) + "-" + str(curtime)
for param in varname:
print param
dest = config['server'] + config['script']
url = dest + "?" + varname[param] + "&window=-1"
url = dest + "?" + varname[param] + "&window=" + time_range
print url
data = requests.get(url,
auth=(config['username'],
Expand Down
Binary file added static/WGTS_Status_Display.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cb6679c

Please sign in to comment.