Skip to content

Commit

Permalink
removed prod env for video feed
Browse files Browse the repository at this point in the history
  • Loading branch information
paulangton committed Apr 23, 2017
1 parent 8b28ac6 commit c28bbad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
7 changes: 1 addition & 6 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
prod = 'PROD' in os.environ and os.environ['PROD'] in [1, 'true', ]

if prod:
video = "<img id='stream' src='http://192.168.1.9:88/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=nuvision&pwd=nuvision'></img>"
else:
video = ""
prod = 'PROD' in os.environ and os.environ['PROD'] in [1, 'true', 'True']

@app.route('/')
def index():
Expand Down
Binary file modified static/resources/latestStill.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@
<!---------- /Navbar -------- -->

<div id="video">
<!-- Uncomment to allow background to be set -->
<img width="100%" src="{{ url_for('static', filename='images/mitlogo.png') }}">
{{video}}
<!--<img id="stream"
src="http://192.168.1.9:88/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=nuvision&pwd=nuvision"></img>-->
<img id='stream' src='http://192.168.1.9:88/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=nuvision&pwd=nuvision'></img>
</div>

<div class="container no-margin content full-height">
Expand Down

0 comments on commit c28bbad

Please sign in to comment.