kopia lustrzana https://github.com/botheredbybees/kilnController
Moved python libs to ./lib
rodzic
704efca972
commit
4f7beb5238
|
@ -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():
|
||||
|
|
|
@ -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"}
|
||||
|
|
Ładowanie…
Reference in New Issue