diff --git a/startup.py b/startup.py index 61ea285..98a923c 100644 --- a/startup.py +++ b/startup.py @@ -56,7 +56,8 @@ def id_generator(size=6, chars=string.ascii_lowercase + string.digits): @app.route('/') def main(): - return render_template('index.html', ssids=getssid()) + piid = open('pi.id', 'r').read().strip() + return render_template('index.html', ssids=getssid(), message="Once connected you'll find IP address @ snaptext.live/{}.".format(piid,piid)) # Captive portal when connected with iOS or Android @app.route('/generate_204')