Browse Source

updated bess3d

Signed-off-by: Nicholas Jerome <nicholas.jerome@kit.edu>
Nicholas Jerome 7 years ago
parent
commit
f119571078
3 changed files with 5 additions and 4 deletions
  1. 2 2
      config.yaml
  2. 2 1
      core.py
  3. 1 1
      index.html

+ 2 - 2
config.yaml

@@ -1,5 +1,5 @@
 background: cps_02.png
-password: s0lar
+password: PCE_D4t3nb4nk!
 polling: '120'
 port: '9567'
 pw_designer: ipe-test
@@ -7,4 +7,4 @@ script: services/getdata.php
 server: http://pcebessadei.competence-e.kit.edu/adei-battery/
 title: Bess
 type: adei
-username: bess
+username: pcedatabase

+ 2 - 1
core.py

@@ -81,7 +81,8 @@ def fetchDataADEI():
     cache_data = {}
     curtime = int(time.time())
     #time_range = str((curtime-3600)) + "-" + str(curtime) 
-    time_range = str((curtime-1800)) + "-" + str(curtime) 
+    #time_range = str((curtime-1800)) + "-" + str(curtime)
+    time_range = "-1" 
     for param in varname:
         print param
         dest = config['server'] + config['script']

+ 1 - 1
index.html

@@ -3497,7 +3497,7 @@ function myTimer() {
                     if (value <= 0) {
                         colour = "0xff0000";
                     } else {
-                        colour = "0x00ff00";
+                        colour = "0x242b72";
                     }
                 
                     object = scene.getObjectByName( prop, true );