From 74032e41e5ba9d3a555462534ac7a0f70d7fdc45 Mon Sep 17 00:00:00 2001 From: Zack Date: Mon, 25 Jun 2018 06:13:53 -0700 Subject: [PATCH] show pid on index --- startup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')