import json
import sys
from pathlib import Path


repo = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(repo))

from src.utils.ino import getArduinoPort, getInputMethod, requireArduino


requireArduino()
print(json.dumps({
    'ok': True, 'method': getInputMethod(), 'port': getArduinoPort(),
}))
