mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-09-19 15:59:07 +02:00
Restore port config for 3.1
This commit is contained in:
@@ -304,7 +304,11 @@ class CraftBeerPI(object):
|
||||
self.sensor.init()
|
||||
self.actor.init()
|
||||
self.beep()
|
||||
self._socketio.run(self._app, host='0.0.0.0', port=5000)
|
||||
try:
|
||||
port = int(cbpi.get_config_parameter('port', '5000'))
|
||||
except ValueError:
|
||||
port = 5000
|
||||
self._socketio.run(self._app, host='0.0.0.0', port=port)
|
||||
|
||||
def beep(self):
|
||||
self.buzzer.beep()
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
Flask==0.11.1
|
||||
Flask-SocketIO==2.6.2
|
||||
flask_login==0.4.0
|
||||
flask_swagger==0.2.13
|
||||
eventlet==0.19.0
|
||||
greenlet==0.4.10
|
||||
python-dateutil==2.5.3
|
||||
@@ -11,4 +13,4 @@ requests==2.11.0
|
||||
Werkzeug==0.11.10
|
||||
httplib2==0.9.2
|
||||
flask-classy==0.6.10
|
||||
GitPython==2.1.3
|
||||
GitPython==2.1.3
|
||||
|
||||
Reference in New Issue
Block a user