Commit 28e729c6 authored by Guillaume Blanchy's avatar Guillaume Blanchy
Browse files

add interface start in __main__

Showing with 8 additions and 2 deletions
+8 -2
......@@ -21,6 +21,7 @@ from termcolor import colored
import threading
from logging_setup import setup_loggers
from config import CONTROL_CONFIG
from subprocess import Popen
# finish import (done only when class is instantiated as some libs are only available on arm64 platform)
try:
......@@ -801,4 +802,9 @@ print(current_time.strftime("%Y-%m-%d %H:%M:%S"))
# for testing
if __name__ == "__main__":
ohmpi = OhmPi(settings='ohmpi_param.json')
\ No newline at end of file
# start interface
Popen(['python', CONTROL_CONFIG['interface']])
ohmpi = OhmPi(settings='ohmpi_param.json')
\ No newline at end of file
#!bin/bash
source ./ohmpy/bin/activate
python webserver.py
python ohmpi.py
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment