diff --git a/CHANGELOG.md b/CHANGELOG.md index 75500f136c7091250357a1ccbdbd9f77eb1fc377..9a8a624917c5cb64bdf4603d614b54930474cf00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ EV3WebController project news 0.3 (2015-10-31) * detect if we are running on the EV3 as root; +* improved documentation for the installation. 0.2 (2015-10-29) * Beta release. It is possible to control the robot in four directions; diff --git a/conf.py b/conf.py index 481805c4153555fb780cfa5fc84cc09f70c285c9..5e3465bb64ee293e268ff4ab27b54c8b6d5edefb 100644 --- a/conf.py +++ b/conf.py @@ -20,10 +20,10 @@ import os, sys BASE_DIR = os.path.abspath(os.path.dirname(__file__)) PATH = os.path.abspath(".") -DEFAULTS = {"platform_url": "http://0.0.0.0:5000", +DEFAULTS = {"robot_external_address": "http://0.0.0.0:5000", "host": "0.0.0.0", "port": "5000", - "https": "true", + "https": "false", "debug": "true" } @@ -35,7 +35,7 @@ except: config = confparser.SafeConfigParser(defaults=DEFAULTS) config.read(os.path.join(BASE_DIR, "conf/conf.cfg")) -PLATFORM_URL = config.get('misc', 'platform_url') +ROBOT_EXTERNAL_ADDRESS = config.get('misc', 'robot_external_address') WEBSERVER_DEBUG = config.getboolean('webserver', 'debug') WEBSERVER_HOST = config.get('webserver', 'host') diff --git a/conf/conf.cfg-sample b/conf/conf.cfg-sample index bd0b96a449baaa563e8300b48dd1737c9eac6d13..9aa785022ad3eb8ef8893514b05d6cdd42228b12 100644 --- a/conf/conf.cfg-sample +++ b/conf/conf.cfg-sample @@ -1,5 +1,5 @@ [misc] -platform_url = http://0.0.0.0:5000 +robot_external_address = http://0.0.0.0:5000 [webserver] debug = 1 host = 0.0.0.0 diff --git a/web/__init__.py b/web/__init__.py index 6e0f83498b47e60b064c3f7b161ba8f1bfb45f8e..ba66c4f14070331cfc4b4cc315046db8b1ab4d8e 100644 --- a/web/__init__.py +++ b/web/__init__.py @@ -13,8 +13,8 @@ import os from flask import Flask -from ev3.ev3dev import Key, Motor -from ev3.lego import LargeMotor +from ev3.ev3dev import Motor +#from ev3.lego import LargeMotor from ev3.lego import TouchSensor from ev3.lego import InfraredSensor