Moved python libs to ./lib

MAX31855-EH
chrono 2013-12-10 09:34:32 +00:00
rodzic 704efca972
commit 4f7beb5238
5 zmienionych plików z 8 dodań i 4 usunięć

10
picoreflowd.py 100644 → 100755
Wyświetl plik

@ -1,4 +1,7 @@
#!/usr/bin/env python
import os
import sys
import logging
import json
@ -17,6 +20,10 @@ logging.basicConfig(level=config.log_level, format=config.log_format)
log = logging.getLogger("picoreflowd")
log.info("Starting picoreflowd")
script_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, script_dir + '/lib')
profile_path = os.path.join(script_dir, "storage", "profiles")
from oven import Oven, Profile
from ovenWatcher import OvenWatcher
@ -24,9 +31,6 @@ app = bottle.Bottle()
oven = Oven()
ovenWatcher = OvenWatcher(oven)
script_dir = os.path.dirname(os.path.realpath(__file__))
profile_path = os.path.join(script_dir, "storage", "profiles")
@app.route('/')
def index():

Wyświetl plik

@ -1 +1 @@
{"type": "profile", "data": [[0, 20], [60, 100], [180.7938551407944, 82.5], [225.7138263665595, 176.25]], "name": "lead"}
{"type": "profile", "data": [[0, 20], [60, 100], [180, 82], [225, 176]], "name": "lead"}