Skip to content

Commit

Permalink
gitignore added
Browse files Browse the repository at this point in the history
markyharris committed Mar 25, 2022
1 parent d1cdfe8 commit 81f8591
Showing 3 changed files with 5 additions and 5 deletions.
Binary file modified __pycache__/shutdown.cpython-39.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion templates/epaper.html → templates/metar.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ <h2>METAR E-Paper Display Selector</h2>
Provide requested information below. Use 4 char Airport ICAO ID. If left blank
the default values in settings will be used.<br>

<form action="{{ url_for('epaper') }}" method="post">
<form action="{{ url_for('metar') }}" method="post">

<label for="display"><b>Choose a Function:</b></label><br>
<select name="display" id="display">
8 changes: 4 additions & 4 deletions webapp.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# webapp.py - Mark Harris
# for E-Paper display
# This will provide a web interface to control the e-Paper display.
# This will provide a web interface to control the e-Paper display.

from flask import Flask, render_template, request, flash, redirect, url_for, send_file, Response
import os
@@ -19,7 +19,7 @@
@app.route("/", methods=["GET", "POST"])
@app.route("/index", methods=["GET", "POST"])
@app.route("/metar", methods=["GET", "POST"])
def epaper():
def metar():
data_field1, data_field2, data_field3, rem_data = airport, use_disp_format, interval, use_remarks
data_field1, data_field2, data_field3, rem_data = get_data()

@@ -54,9 +54,9 @@ def epaper():

print(data_field1) # debug
write_data(data_field1, data_field2, data_field3, rem_data)
return render_template("epaper.html", data_field1=data_field1, data_field2=data_field2, data_field3=data_field3, rem_data=rem_data)
return render_template("metar.html", data_field1=data_field1, data_field2=data_field2, data_field3=data_field3, rem_data=rem_data)
else:
return render_template("epaper.html", data_field1=data_field1, data_field2=data_field2, data_field3=data_field3, rem_data=rem_data)
return render_template("metar.html", data_field1=data_field1, data_field2=data_field2, data_field3=data_field3, rem_data=rem_data)


# Functions

0 comments on commit 81f8591

Please sign in to comment.