|
|
@@ -15,12 +15,6 @@ import decorator |
|
|
|
import traceback |
|
|
|
import psutil |
|
|
|
|
|
|
|
try: |
|
|
|
cherrypy.tools.json_out |
|
|
|
except: # pragma: no cover |
|
|
|
sys.stderr.write("Cherrypy 3.2+ required\n") |
|
|
|
sys.exit(1) |
|
|
|
|
|
|
|
class NilmApp(object): |
|
|
|
def __init__(self, db): |
|
|
|
self.db = db |
|
|
@@ -191,7 +185,6 @@ class Stream(NilmApp): |
|
|
|
# /stream/insert?path=/newton/prep |
|
|
|
@cherrypy.expose |
|
|
|
@cherrypy.tools.json_out() |
|
|
|
#@cherrypy.tools.disable_prb() |
|
|
|
def insert(self, path, start, end): |
|
|
|
""" |
|
|
|
Insert new data into the database. Provide textual data |
|
|
|